Note
the main difference to the standard JavaFX TilePane is that the tiles are stretched to fill the entire width of each row.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private DoubleProperty | |
| private DoubleProperty |
| Access | Constructor and Description |
|---|---|
| public | |
| public | StretchingTilePane(double
the horizontal gap between the tiles. hgap, double the vertical gap between the tiles. vgap)Constructs a new tile pane with the given horizontal and vertical gap. |
| public | StretchingTilePane(double
the horizontal gap between the tiles. hgap, double the vertical gap between the tiles. vgap, Node... the child nodes to be added to the tile pane. children)Constructs a new tile pane with the specified horizontal and vertical gaps and an optional list of child nodes. |
| Modifier and Type | Method and Description |
|---|---|
| private double | |
| private double | |
| protected double | computeMinHeight(double width)
Overrides javafx. Computes the minimum height of this region. |
| protected double | computePrefHeight(double width)
Overrides javafx. 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. |
| public static List | getClassCssMetaData()
Hides javafx. Gets the |
| public Orientation | Returns: the content bias.Overrides javafx. We need the content bias to be horizontal so that the component's width will be considered for layout purposes. |
| public List | getCssMetaData()
Overrides javafx. Implements javafx. This method should delegate to |
| public final double | |
| public final double | |
| public final DoubleProperty | |
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| public final void | |
| public final void | |
| public final DoubleProperty |
| hgap | back to summary |
|---|---|
| private DoubleProperty hgap | |
| vgap | back to summary |
|---|---|
| private DoubleProperty vgap | |
| StretchingTilePane | back to summary |
|---|---|
| public StretchingTilePane() Constructs a new tile pane with an horizontal gap of 0 and a vertical gap of 0. | |
| StretchingTilePane | back to summary |
|---|---|
| public StretchingTilePane(double hgap, double vgap) Constructs a new tile pane with the given horizontal and vertical gap.
| |
| StretchingTilePane | back to summary |
|---|---|
| public StretchingTilePane(double hgap, double vgap, Node... children) Constructs a new tile pane with the specified horizontal and vertical gaps and an optional list of child nodes.
| |
| computeMaximumPreferredTileHeight | back to summary |
|---|---|
| private double computeMaximumPreferredTileHeight(double w) | |
| computeMaximumPreferredTileWidth | back to summary |
|---|---|
| private double computeMaximumPreferredTileWidth() | |
| computeMinHeight | back to summary |
|---|---|
| protected double computeMinHeight(double width) Overrides javafx. Doc from javafx. 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.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width) Overrides javafx. Doc from javafx. 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.
| |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Doc from javafx. Gets the | |
| getContentBias | back to summary |
|---|---|
| public Orientation getContentBias() Overrides javafx. We need the content bias to be horizontal so that the component's width will be considered for layout purposes.
| |
| getCssMetaData | back to summary |
|---|---|
| public List Overrides javafx. Implements javafx. Doc from javafx. This method should delegate to
| |
| getHgap | back to summary |
|---|---|
| public final double getHgap() | |
| getVgap | back to summary |
|---|---|
| public final double getVgap() | |
| hgapProperty | back to summary |
|---|---|
| public final DoubleProperty hgapProperty() The horizontal gap between the tiles.
| |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren() Overrides javafx. Doc from javafx. Invoked during the layout pass to layout the children in this
Subclasses should override this function to layout content as needed.
| |
| setHgap | back to summary |
|---|---|
| public final void setHgap(double value) | |
| setVgap | back to summary |
|---|---|
| public final void setVgap(double value) | |
| vgapProperty | back to summary |
|---|---|
| public final DoubleProperty vgapProperty() The vertical gap between the tiles.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final CssMetaData | |
| private static final List | |
| private static final CssMetaData |
| Access | Constructor and Description |
|---|---|
| private |
| HGAP | back to summary |
|---|---|
| private static final CssMetaData<StretchingTilePane, Number> HGAP | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| VGAP | back to summary |
|---|---|
| private static final CssMetaData<StretchingTilePane, Number> VGAP | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |