Top Description Inners Fields Constructors Methods
javafx.scene.layout

public Class TilePane

extends Pane
Class Inheritance
Imports
java.util.ArrayList, .Collections, .List, javafx.beans.property.DoubleProperty, .IntegerProperty, .ObjectProperty, .ReadOnlyDoubleProperty, .ReadOnlyDoublePropertyBase, javafx.css.CssMetaData, .StyleableDoubleProperty, .StyleableIntegerProperty, .StyleableObjectProperty, .StyleableProperty, .Styleable, javafx.geometry.HPos, .Insets, .Orientation, .Pos, .VPos, javafx.scene.Node, javafx.css.converter.EnumConverter, .SizeConverter, javafx.util.Callback

TilePane lays out its children in a grid of uniformly sized "tiles".

A horizontal tilepane (the default) will tile nodes in rows, wrapping at the tilepane's width. A vertical tilepane will tile nodes in columns, wrapping at the tilepane's height.

The size of each "tile" defaults to the size needed to encompass the largest preferred width and height of the tilepane's children and the tilepane will recompute the size of the tiles as needed to accommodate the largest preferred size of its children as it changes. The application may also control the size of the tiles directly by setting prefTileWidth/prefTileHeight properties to a value other than USE_COMPUTED_SIZE (the default).

Applications should initialize either prefColumns (for horizontal) or prefRows (for vertical) to establish the tilepane's preferred size (the arbitrary default is 5). Note that prefColumns/prefRows is used only for calculating the preferred size and may not reflect the actual number of rows or columns, which may change as the tilepane is resized and the tiles are wrapped at its actual boundaries.

The alignment property controls how the rows and columns are aligned within the bounds of the tilepane and defaults to Pos.TOP_LEFT. It is also possible to control the alignment of nodes within the individual tiles by setting tileAlignment, which defaults to Pos.CENTER.

A horizontal tilepane example:

TilePane tile = new TilePane();
   tile.setHgap(8);
   tile.setPrefColumns(4);
   for (int i = 0; i < 20; i++) {
       tile.getChildren().add(new ImageView(...));
   }

A vertical TilePane example:

TilePane tile = new TilePane(Orientation.VERTICAL);
   tile.setTileAlignment(Pos.CENTER_LEFT);
   tile.setPrefRows(10);
   for (int i = 0; i < 50; i++) {
       tile.getChildren().add(new ImageView(...));
   }
The TilePane will attempt to resize each child to fill its tile. If the child could not be sized to fill the tile (either because it was not resizable or its size limits prevented it) then it will be aligned within the tile using tileAlignment.

Resizable Range

A tilepane's parent will resize the tilepane within the tilepane's resizable range during layout. By default the tilepane computes this range based on its content as outlined in the tables below.

Horizontal
widthheight
minimum left/right insets plus the tile width. top/bottom insets plus height required to display all tiles when wrapped at a specified width with a vgap between each row.
preferred left/right insets plus prefColumns multiplied by the tile width. top/bottom insets plus height required to display all tiles when wrapped at a specified width with a vgap between each row.
maximum Double.MAX_VALUEDouble.MAX_VALUE

Vertical
widthheight
minimum left/right insets plus width required to display all tiles when wrapped at a specified height with an hgap between each column. top/bottom insets plus the tile height.
preferred left/right insets plus width required to display all tiles when wrapped at the specified height with an hgap between each column. top/bottom insets plus prefRows multiplied by the tile height.
maximum Double.MAX_VALUEDouble.MAX_VALUE

A tilepane's unbounded maximum width and height are an indication to the parent that it may be resized beyond its preferred size to fill whatever space is assigned to it.

TilePane provides properties for setting the size range directly. These properties default to the sentinel value Region.USE_COMPUTED_SIZE, however the application may set them to other values as needed:


    tilePane.setMaxWidth(500);
Applications may restore the computed values by setting these properties back to Region.USE_COMPUTED_SIZE.

TilePane does not clip its content by default, so it is possible that children's' bounds may extend outside the tiles (and possibly the tilepane bounds) if a child's pref size prevents it from being fit within its tile. Also, if the tilepane is resized smaller than its preferred size, it may not be able to fit all the tiles within its bounds and the content will extend outside.

Optional Layout Constraints

An application may set constraints on individual children to customize TilePane's layout. For each constraint, TilePane provides a static method for setting it on the child.

TilePane Constraint Table
ConstraintTypeDescription
alignmentjavafx.geometry.PosThe alignment of the child within its tile.
marginjavafx.geometry.InsetsMargin space around the outside of the child.

Example:

TilePane tilepane = new TilePane();
    for (int i = 0; i < 20; i++) {
       Label title = new Label(imageTitle[i]):
       Imageview imageview = new ImageView(new Image(imageName[i]));
       TilePane.setAlignment(label, Pos.BOTTOM_RIGHT);
       tilepane.getChildren().addAll(title, imageview);
    }
Since
JavaFX 2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private abstract class

Field Summary

Modifier and TypeField and Description
private double
private double
private int
private int
private ObjectProperty<Pos>
private static final String
private DoubleProperty
private static final String
private static final Callback<Node, Insets>
private ObjectProperty<Orientation>
private IntegerProperty
private IntegerProperty
private DoubleProperty
private DoubleProperty
private ObjectProperty<Pos>
private TilePane.TileSizeProperty
private TilePane.TileSizeProperty
private DoubleProperty

Constructor Summary

AccessConstructor and Description
public
TilePane()

Creates a horizontal TilePane layout with prefColumn = 5 and hgap/vgap = 0.

public
TilePane(Orientation
the direction the tiles should flow & wrap
orientation
)

Creates a TilePane layout with the specified orientation, prefColumn/prefRows = 5 and hgap/vgap = 0.

public
TilePane(double
the amount of horizontal space between each tile
hgap
,
double
the amount of vertical space between each tile
vgap
)

Creates a horizontal TilePane layout with prefColumn = 5 and the specified hgap/vgap.

public
TilePane(Orientation
the direction the tiles should flow & wrap
orientation
,
double
the amount of horizontal space between each tile
hgap
,
double
the amount of vertical space between each tile
vgap
)

Creates a TilePane layout with the specified orientation, hgap/vgap, and prefRows/prefColumns = 5.

public
TilePane(Node...
The initial set of children for this pane.
children
)

Creates a horizontal TilePane layout with prefColumn = 5 and hgap/vgap = 0.

public
TilePane(Orientation
the direction the tiles should flow & wrap
orientation
,
Node...
The initial set of children for this pane.
children
)

Creates a TilePane layout with the specified orientation, prefColumn/prefRows = 5 and hgap/vgap = 0.

public
TilePane(double
the amount of horizontal space between each tile
hgap
,
double
the amount of vertical space between each tile
vgap
,
Node...
The initial set of children for this pane.
children
)

Creates a horizontal TilePane layout with prefColumn = 5 and the specified hgap/vgap.

public
TilePane(Orientation
the direction the tiles should flow & wrap
orientation
,
double
the amount of horizontal space between each tile
hgap
,
double
the amount of vertical space between each tile
vgap
,
Node...
The initial set of children for this pane.
children
)

Creates a TilePane layout with the specified orientation, hgap/vgap, and prefRows/prefColumns = 5.

Method Summary

Modifier and TypeMethod and Description
public final ObjectProperty<Pos>

Returns:

the overall alignment of the tilepane's content within its width and height
alignmentProperty
()

The overall alignment of the tilepane's content within its width and height.

public static void
clearConstraints(Node
the child node
child
)

Removes all tilepane constraints from the child node.

private int
computeColumns(double width, double tilewidth)

private double
computeContentHeight(int rows, double tileheight)

private double
computeContentWidth(int columns, double tilewidth)

protected double
computeMinHeight(double width)

Overrides javafx.scene.layout.Region.computeMinHeight.

Computes the minimum height of this region.

protected double
computeMinWidth(double height)

Overrides javafx.scene.layout.Region.computeMinWidth.

Computes the minimum width of this region.

private int
computeOther(int numNodes, int numCells)

protected double
computePrefHeight(double forWidth)

Overrides javafx.scene.layout.Region.computePrefHeight.

Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy.

protected double
computePrefWidth(double forHeight)

Overrides javafx.scene.layout.Region.computePrefWidth.

Computes the preferred width of this region for the given height.

private int
computeRows(double height, double tileheight)

private double
private double
public static Pos

Returns:

the alignment position for the child or null if no alignment was set
getAlignment
(Node
the child node of a tilepane
node
)

Returns the child's alignment constraint if set.

public final Pos
private Pos
public static List<CssMetaData<? extends Styleable, ?>>

Returns:

the CssMetaData
getClassCssMetaData
()

Hides javafx.scene.layout.Region.getClassCssMetaData.

Gets the CssMetaData associated with this class, which may include the CssMetaData of its superclasses.

public Orientation
getContentBias()

Overrides javafx.scene.Node.getContentBias.

Returns the orientation of a node's resizing bias for layout purposes.

public List<CssMetaData<? extends Styleable, ?>>
getCssMetaData()

Overrides javafx.scene.layout.Region.getCssMetaData.

Implements javafx.css.Styleable.getCssMetaData.

This method should delegate to Node#getClassCssMetaData() so that a Node's CssMetaData can be accessed without the need for reflection.

public final double
public static Insets

Returns:

the margin for the child or null if no margin was set
getMargin
(Node
the child node of a tilepane
node
)

Returns the child's margin constraint if set.

public final Orientation
public final int
public final int
public final double
public final double
public final Pos
private Pos
public final double
public final double
public final double
public final DoubleProperty

Returns:

the amount of horizontal space between each tile in a row
hgapProperty
()

The amount of horizontal space between each tile in a row.

private void
private void
protected void
layoutChildren()

Overrides javafx.scene.Parent.layoutChildren.

Invoked during the layout pass to layout the children in this Parent.

public final ObjectProperty<Orientation>

Returns:

the orientation of this tilepane
orientationProperty
()

The orientation of this tilepane.

public final IntegerProperty

Returns:

the preferred number of columns for a horizontal tilepane
prefColumnsProperty
()

The preferred number of columns for a horizontal tilepane.

public final IntegerProperty

Returns:

the preferred number of rows for a vertical tilepane
prefRowsProperty
()

The preferred number of rows for a vertical tilepane.

public final DoubleProperty

Returns:

the preferred height of each tile
prefTileHeightProperty
()

The preferred height of each tile.

public final DoubleProperty

Returns:

the preferred width of each tile
prefTileWidthProperty
()

The preferred width of each tile.

public void
requestLayout()

Overrides javafx.scene.Parent.requestLayout.

Requests a layout pass to be performed before the next scene is rendered.

public static void
setAlignment(Node
the child node of a tilepane
node
,
Pos
the alignment position for the child
value
)

Sets the alignment for the child when contained by a tilepane.

public final void
public final void
setHgap(double value)

public static void
setMargin(Node
the child node of a tilepane
node
,
Insets
the margin of space around the child
value
)

Sets the margin for the child when contained by a tilepane.

public final void
public final void
setPrefColumns(int value)

public final void
setPrefRows(int value)

public final void
setPrefTileHeight(double value)

public final void
setPrefTileWidth(double value)

public final void
public final void
setVgap(double value)

public final ObjectProperty<Pos>

Returns:

the default alignment of each child within its tile
tileAlignmentProperty
()

The default alignment of each child within its tile.

public final ReadOnlyDoubleProperty

Returns:

the actual height of each tile
tileHeightProperty
()

The actual height of each tile.

public final ReadOnlyDoubleProperty

Returns:

the actual width of each tile
tileWidthProperty
()

The actual width of each tile.

public final DoubleProperty

Returns:

the amount of vertical space between each tile in a column
vgapProperty
()

The amount of vertical space between each tile in a column.

Inherited from javafx.scene.layout.Pane:
getChildrengetConstraintsetConstraint

Field Detail

_tileHeightback to summary
private double _tileHeight
_tileWidthback to summary
private double _tileWidth
actualColumnsback to summary
private int actualColumns
actualRowsback to summary
private int actualRows
alignmentback to summary
private ObjectProperty<Pos> alignment
ALIGNMENT_CONSTRAINTback to summary
private static final String ALIGNMENT_CONSTRAINT
hgapback to summary
private DoubleProperty hgap
MARGIN_CONSTRAINTback to summary
private static final String MARGIN_CONSTRAINT
marginAccessorback to summary
private static final Callback<Node, Insets> marginAccessor
orientationback to summary
private ObjectProperty<Orientation> orientation
prefColumnsback to summary
private IntegerProperty prefColumns
prefRowsback to summary
private IntegerProperty prefRows
prefTileHeightback to summary
private DoubleProperty prefTileHeight
prefTileWidthback to summary
private DoubleProperty prefTileWidth
tileAlignmentback to summary
private ObjectProperty<Pos> tileAlignment
tileHeightback to summary
private TilePane.TileSizeProperty tileHeight
tileWidthback to summary
private TilePane.TileSizeProperty tileWidth
vgapback to summary
private DoubleProperty vgap

Constructor Detail

TilePaneback to summary
public TilePane()

Creates a horizontal TilePane layout with prefColumn = 5 and hgap/vgap = 0.

TilePaneback to summary
public TilePane(Orientation orientation)

Creates a TilePane layout with the specified orientation, prefColumn/prefRows = 5 and hgap/vgap = 0.

Parameters
orientation:Orientation

the direction the tiles should flow & wrap

TilePaneback to summary
public TilePane(double hgap, double vgap)

Creates a horizontal TilePane layout with prefColumn = 5 and the specified hgap/vgap.

Parameters
hgap:double

the amount of horizontal space between each tile

vgap:double

the amount of vertical space between each tile

TilePaneback to summary
public TilePane(Orientation orientation, double hgap, double vgap)

Creates a TilePane layout with the specified orientation, hgap/vgap, and prefRows/prefColumns = 5.

Parameters
orientation:Orientation

the direction the tiles should flow & wrap

hgap:double

the amount of horizontal space between each tile

vgap:double

the amount of vertical space between each tile

TilePaneback to summary
public TilePane(Node... children)

Creates a horizontal TilePane layout with prefColumn = 5 and hgap/vgap = 0.

Parameters
children:Node[]

The initial set of children for this pane.

Since
JavaFX 8.0
TilePaneback to summary
public TilePane(Orientation orientation, Node... children)

Creates a TilePane layout with the specified orientation, prefColumn/prefRows = 5 and hgap/vgap = 0.

Parameters
orientation:Orientation

the direction the tiles should flow & wrap

children:Node[]

The initial set of children for this pane.

Since
JavaFX 8.0
TilePaneback to summary
public TilePane(double hgap, double vgap, Node... children)

Creates a horizontal TilePane layout with prefColumn = 5 and the specified hgap/vgap.

Parameters
hgap:double

the amount of horizontal space between each tile

vgap:double

the amount of vertical space between each tile

children:Node[]

The initial set of children for this pane.

Since
JavaFX 8.0
TilePaneback to summary
public TilePane(Orientation orientation, double hgap, double vgap, Node... children)

Creates a TilePane layout with the specified orientation, hgap/vgap, and prefRows/prefColumns = 5.

Parameters
orientation:Orientation

the direction the tiles should flow & wrap

hgap:double

the amount of horizontal space between each tile

vgap:double

the amount of vertical space between each tile

children:Node[]

The initial set of children for this pane.

Since
JavaFX 8.0

Method Detail

alignmentPropertyback to summary
public final ObjectProperty<Pos> alignmentProperty()

The overall alignment of the tilepane's content within its width and height.

For a horizontal tilepane, each row will be aligned within the tilepane's width using the alignment's hpos value, and the rows will be aligned within the tilepane's height using the alignment's vpos value.

For a vertical tilepane, each column will be aligned within the tilepane's height using the alignment's vpos value, and the columns will be aligned within the tilepane's width using the alignment's hpos value.

Returns:ObjectProperty<Pos>

the overall alignment of the tilepane's content within its width and height

clearConstraintsback to summary
public static void clearConstraints(Node child)

Removes all tilepane constraints from the child node.

Parameters
child:Node

the child node

computeColumnsback to summary
private int computeColumns(double width, double tilewidth)
computeContentHeightback to summary
private double computeContentHeight(int rows, double tileheight)
computeContentWidthback to summary
private double computeContentWidth(int columns, double tilewidth)
computeMinHeightback to summary
protected double computeMinHeight(double width)

Overrides javafx.scene.layout.Region.computeMinHeight.

Doc from javafx.scene.layout.Region.computeMinHeight.

Computes the minimum height of this region. Returns the sum of the top and bottom insets by default. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.

Annotations
@Override
computeMinWidthback to summary
protected double computeMinWidth(double height)

Overrides javafx.scene.layout.Region.computeMinWidth.

Doc from javafx.scene.layout.Region.computeMinWidth.

Computes the minimum width of this region. Returns the sum of the left and right insets by default. region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.

Annotations
@Override
computeOtherback to summary
private int computeOther(int numNodes, int numCells)
computePrefHeightback to summary
protected double computePrefHeight(double forWidth)

Overrides javafx.scene.layout.Region.computePrefHeight.

Doc from javafx.scene.layout.Region.computePrefHeight.

Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.

Annotations
@Override
computePrefWidthback to summary
protected double computePrefWidth(double forHeight)

Overrides javafx.scene.layout.Region.computePrefWidth.

Doc from javafx.scene.layout.Region.computePrefWidth.

Computes the preferred width of this region for the given height. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.

Annotations
@Override
computeRowsback to summary
private int computeRows(double height, double tileheight)
computeTileHeightback to summary
private double computeTileHeight()
computeTileWidthback to summary
private double computeTileWidth()
getAlignmentback to summary
public static Pos getAlignment(Node node)

Returns the child's alignment constraint if set.

Parameters
node:Node

the child node of a tilepane

Returns:Pos

the alignment position for the child or null if no alignment was set

getAlignmentback to summary
public final Pos getAlignment()
getAlignmentInternalback to summary
private Pos getAlignmentInternal()
getClassCssMetaDataback to summary
public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData()

Hides javafx.scene.layout.Region.getClassCssMetaData.

Gets the CssMetaData associated with this class, which may include the CssMetaData of its superclasses.

Returns:List<CssMetaData<? extends Styleable, ?>>

the CssMetaData

Since
JavaFX 8.0
getContentBiasback to summary
public Orientation getContentBias()

Overrides javafx.scene.Node.getContentBias.

Doc from javafx.scene.Node.getContentBias.

Returns the orientation of a node's resizing bias for layout purposes. If the node type has no bias, returns null. If the node is resizable and it's height depends on its width, returns HORIZONTAL, else if its width depends on its height, returns VERTICAL.

Resizable subclasses should override this method to return an appropriate value.

Annotations
@Override
getCssMetaDataback to summary
public List<CssMetaData<? extends Styleable, ?>> getCssMetaData()

Overrides javafx.scene.layout.Region.getCssMetaData.

Implements javafx.css.Styleable.getCssMetaData.

Doc from javafx.scene.layout.Region.getCssMetaData.

This method should delegate to Node#getClassCssMetaData() so that a Node's CssMetaData can be accessed without the need for reflection.

Annotations
@Override
Since
JavaFX 8.0
getHgapback to summary
public final double getHgap()
getMarginback to summary
public static Insets getMargin(Node node)

Returns the child's margin constraint if set.

Parameters
node:Node

the child node of a tilepane

Returns:Insets

the margin for the child or null if no margin was set

getOrientationback to summary
public final Orientation getOrientation()
getPrefColumnsback to summary
public final int getPrefColumns()
getPrefRowsback to summary
public final int getPrefRows()
getPrefTileHeightback to summary
public final double getPrefTileHeight()
getPrefTileWidthback to summary
public final double getPrefTileWidth()
getTileAlignmentback to summary
public final Pos getTileAlignment()
getTileAlignmentInternalback to summary
private Pos getTileAlignmentInternal()
getTileHeightback to summary
public final double getTileHeight()
getTileWidthback to summary
public final double getTileWidth()
getVgapback to summary
public final double getVgap()
hgapPropertyback to summary
public final DoubleProperty hgapProperty()

The amount of horizontal space between each tile in a row.

Returns:DoubleProperty

the amount of horizontal space between each tile in a row

invalidateTileHeightback to summary
private void invalidateTileHeight()
invalidateTileWidthback to summary
private void invalidateTileWidth()
layoutChildrenback to summary
protected void layoutChildren()

Overrides javafx.scene.Parent.layoutChildren.

Doc from javafx.scene.Parent.layoutChildren.

Invoked during the layout pass to layout the children in this Parent. By default it will only set the size of managed, resizable content to their preferred sizes and does not do any node positioning.

Subclasses should override this function to layout content as needed.

Annotations
@Override
orientationPropertyback to summary
public final ObjectProperty<Orientation> orientationProperty()

The orientation of this tilepane. A horizontal tilepane lays out children in tiles, left to right, wrapping tiles at the tilepane's width boundary. A vertical tilepane lays out children in tiles, top to bottom, wrapping at the tilepane's height. The default is horizontal.

Returns:ObjectProperty<Orientation>

the orientation of this tilepane

prefColumnsPropertyback to summary
public final IntegerProperty prefColumnsProperty()

The preferred number of columns for a horizontal tilepane. This value is used only to compute the preferred size of the tilepane and may not reflect the actual number of rows, which may change if the tilepane is resized to something other than its preferred height. This property is ignored for a vertical tilepane.

It is recommended that the application initialize this value for a horizontal tilepane.

Returns:IntegerProperty

the preferred number of columns for a horizontal tilepane

prefRowsPropertyback to summary
public final IntegerProperty prefRowsProperty()

The preferred number of rows for a vertical tilepane. This value is used only to compute the preferred size of the tilepane and may not reflect the actual number of rows, which may change if the tilepane is resized to something other than its preferred height. This property is ignored for a horizontal tilepane.

It is recommended that the application initialize this value for a vertical tilepane.

Returns:IntegerProperty

the preferred number of rows for a vertical tilepane

prefTileHeightPropertyback to summary
public final DoubleProperty prefTileHeightProperty()

The preferred height of each tile. If equal to USE_COMPUTED_SIZE (the default) the tile height will be automatically recomputed by the tilepane when the preferred size of children changes to accommodate the tallest child. If the application sets this property to value greater than 0, then tiles will be set to that height and the tilepane will attempt to resize children to fit within that height (if they are resizable and their min-max height range allows it).

Returns:DoubleProperty

the preferred height of each tile

prefTileWidthPropertyback to summary
public final DoubleProperty prefTileWidthProperty()

The preferred width of each tile. If equal to USE_COMPUTED_SIZE (the default) the tile width will be automatically recomputed by the tilepane when the preferred size of children changes to accommodate the widest child. If the application sets this property to value greater than 0, then tiles will be set to that width and the tilepane will attempt to resize children to fit within that width (if they are resizable and their min-max width range allows it).

Returns:DoubleProperty

the preferred width of each tile

requestLayoutback to summary
public void requestLayout()

Overrides javafx.scene.Parent.requestLayout.

Doc from javafx.scene.Parent.requestLayout.

Requests a layout pass to be performed before the next scene is rendered. This is batched up asynchronously to happen once per "pulse", or frame of animation.

If this parent is either a layout root or unmanaged, then it will be added directly to the scene's dirty layout list, otherwise requestParentLayout will be invoked.

Annotations
@Override
setAlignmentback to summary
public static void setAlignment(Node node, Pos value)

Sets the alignment for the child when contained by a tilepane. If set, will override the tilepane's default alignment for children within their 'tiles'. Setting the value to null will remove the constraint.

Parameters
node:Node

the child node of a tilepane

value:Pos

the alignment position for the child

setAlignmentback to summary
public final void setAlignment(Pos value)
setHgapback to summary
public final void setHgap(double value)
setMarginback to summary
public static void setMargin(Node node, Insets value)

Sets the margin for the child when contained by a tilepane. If set, the tilepane will layout the child with the margin space around it. Setting the value to null will remove the constraint.

Parameters
node:Node

the child node of a tilepane

value:Insets

the margin of space around the child

setOrientationback to summary
public final void setOrientation(Orientation value)
setPrefColumnsback to summary
public final void setPrefColumns(int value)
setPrefRowsback to summary
public final void setPrefRows(int value)
setPrefTileHeightback to summary
public final void setPrefTileHeight(double value)
setPrefTileWidthback to summary
public final void setPrefTileWidth(double value)
setTileAlignmentback to summary
public final void setTileAlignment(Pos value)
setVgapback to summary
public final void setVgap(double value)
tileAlignmentPropertyback to summary
public final ObjectProperty<Pos> tileAlignmentProperty()

The default alignment of each child within its tile. This may be overridden on individual children by setting the child's alignment constraint.

Returns:ObjectProperty<Pos>

the default alignment of each child within its tile

tileHeightPropertyback to summary
public final ReadOnlyDoubleProperty tileHeightProperty()

The actual height of each tile. This property is read-only.

Returns:ReadOnlyDoubleProperty

the actual height of each tile

tileWidthPropertyback to summary
public final ReadOnlyDoubleProperty tileWidthProperty()

The actual width of each tile. This property is read-only.

Returns:ReadOnlyDoubleProperty

the actual width of each tile

vgapPropertyback to summary
public final DoubleProperty vgapProperty()

The amount of vertical space between each tile in a column.

Returns:DoubleProperty

the amount of vertical space between each tile in a column

javafx.scene.layout back to summary

private Class TilePane.StyleableProperties

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final CssMetaData<TilePane, Pos>
private static final CssMetaData<TilePane, Number>
private static final CssMetaData<TilePane, Orientation>
private static final CssMetaData<TilePane, Number>
private static final CssMetaData<TilePane, Number>
private static final CssMetaData<TilePane, Number>
private static final CssMetaData<TilePane, Number>
private static final List<CssMetaData<? extends Styleable, ?>>
private static final CssMetaData<TilePane, Pos>
private static final CssMetaData<TilePane, Number>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ALIGNMENTback to summary
private static final CssMetaData<TilePane, Pos> ALIGNMENT
HGAPback to summary
private static final CssMetaData<TilePane, Number> HGAP
ORIENTATIONback to summary
private static final CssMetaData<TilePane, Orientation> ORIENTATION
PREF_COLUMNSback to summary
private static final CssMetaData<TilePane, Number> PREF_COLUMNS
PREF_ROWSback to summary
private static final CssMetaData<TilePane, Number> PREF_ROWS
PREF_TILE_HEIGHTback to summary
private static final CssMetaData<TilePane, Number> PREF_TILE_HEIGHT
PREF_TILE_WIDTHback to summary
private static final CssMetaData<TilePane, Number> PREF_TILE_WIDTH
STYLEABLESback to summary
private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES
TILE_ALIGNMENTback to summary
private static final CssMetaData<TilePane, Pos> TILE_ALIGNMENT
VGAPback to summary
private static final CssMetaData<TilePane, Number> VGAP

Constructor Detail

StyleablePropertiesback to summary
private StyleableProperties()
javafx.scene.layout back to summary

private abstract Class TilePane.TileSizeProperty

extends ReadOnlyDoublePropertyBase
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final String
private boolean
private double

Constructor Summary

AccessConstructor and Description
pack-priv
TileSizeProperty(String name, double initSize)

Method Summary

Modifier and TypeMethod and Description
public abstract double
public double
get()

Implements javafx.beans.value.ObservableDoubleValue.get.

Returns the current value of this ObservableDoubleValue.

public Object
getBean()

Implements javafx.beans.property.ReadOnlyProperty.getBean.

Returns the Object that contains this property.

public String
getName()

Implements javafx.beans.property.ReadOnlyProperty.getName.

Returns the name of this property.

public void
Inherited from javafx.beans.property.ReadOnlyDoublePropertyBase:
addListeneraddListenerfireValueChangedEventremoveListenerremoveListener

Field Detail

nameback to summary
private final String name
validback to summary
private boolean valid
valueback to summary
private double value

Constructor Detail

TileSizePropertyback to summary
pack-priv TileSizeProperty(String name, double initSize)

Method Detail

computeback to summary
public abstract double compute()
getback to summary
public double get()

Implements javafx.beans.value.ObservableDoubleValue.get.

Doc from javafx.beans.value.ObservableDoubleValue.get.

Returns the current value of this ObservableDoubleValue.

Annotations
@Override
getBeanback to summary
public Object getBean()

Implements javafx.beans.property.ReadOnlyProperty.getBean.

Doc from javafx.beans.property.ReadOnlyProperty.getBean.

Returns the Object that contains this property. If this property is not contained in an Object, null is returned.

Annotations
@Override
getNameback to summary
public String getName()

Implements javafx.beans.property.ReadOnlyProperty.getName.

Doc from javafx.beans.property.ReadOnlyProperty.getName.

Returns the name of this property. If the property does not have a name, this method returns an empty String.

Annotations
@Override
invalidateback to summary
public void invalidate()