| Modifier and Type | Class and Description |
|---|---|
| public static class | Legend.
A item to be displayed on a Legend |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private ObjectProperty | items
The legend items to display in this legend |
| private ListChangeListener | |
| private BooleanProperty | vertical
The legend items should be laid out vertically in columns rather than horizontally in rows |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected double | computePrefHeight(double
the width that should be used if preferred height depends
on it forWidth)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. |
| protected double | computePrefWidth(double
the height that should be used if preferred width depends
on it forHeight)Overrides javafx. Computes the preferred width of this region for the given height. |
| public final ObservableList | |
| public final boolean | |
| public final ObjectProperty | |
| public final void | |
| public final void | |
| public final BooleanProperty |
| GAP | back to summary |
|---|---|
| private static final int GAP | |
| items | back to summary |
|---|---|
| private ObjectProperty<ObservableList<Legend. The legend items to display in this legend | |
| itemsListener | back to summary |
|---|---|
| private ListChangeListener<Legend. | |
| vertical | back to summary |
|---|---|
| private BooleanProperty vertical The legend items should be laid out vertically in columns rather than horizontally in rows | |
| Legend | back to summary |
|---|---|
| public Legend() | |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double forWidth) 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.
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double forHeight) Overrides javafx. Doc from javafx. 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.
| |
| getItems | back to summary |
|---|---|
| public final ObservableList | |
| isVertical | back to summary |
|---|---|
| public final boolean isVertical() | |
| itemsProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| setItems | back to summary |
|---|---|
| public final void setItems(ObservableList<Legend. | |
| setVertical | back to summary |
|---|---|
| public final void setVertical(boolean value) | |
| verticalProperty | back to summary |
|---|---|
| public final BooleanProperty verticalProperty() | |
| Modifier and Type | Field and Description |
|---|---|
| private Label | label
Label used to represent the legend item |
| private ObjectProperty | symbol
The symbol to use next to the item text, set to null for no symbol. |
| private StringProperty | text
The item text |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final Node | |
| public final String | |
| public final void | |
| public final void | |
| public final ObjectProperty | |
| public final StringProperty |
| label | back to summary |
|---|---|
| private Label label Label used to represent the legend item | |
| symbol | back to summary |
|---|---|
| private ObjectProperty<Node> symbol The symbol to use next to the item text, set to null for no symbol. The default is a simple square of symbolFill | |
| text | back to summary |
|---|---|
| private StringProperty text The item text | |
| LegendItem | back to summary |
|---|---|
| public LegendItem(String text) | |
| LegendItem | back to summary |
|---|---|
| public LegendItem(String text, Node symbol) | |
| getSymbol | back to summary |
|---|---|
| public final Node getSymbol() | |
| getText | back to summary |
|---|---|
| public final String getText() | |
| setSymbol | back to summary |
|---|---|
| public final void setSymbol(Node value) | |
| setText | back to summary |
|---|---|
| public final void setText(String value) | |
| symbolProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| textProperty | back to summary |
|---|---|
| public final StringProperty textProperty() | |