public static class Legend.LegendItem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Label |
label
Label used to represent the legend item
|
private ObjectProperty<Node> |
symbol
The symbol to use next to the item text, set to null for no symbol.
|
private StringProperty |
text
The item text
|
Constructor and Description |
---|
LegendItem(java.lang.String text) |
LegendItem(java.lang.String text,
Node symbol) |
Modifier and Type | Method and Description |
---|---|
Node |
getSymbol() |
java.lang.String |
getText() |
void |
setSymbol(Node value) |
void |
setText(java.lang.String value) |
ObjectProperty<Node> |
symbolProperty() |
StringProperty |
textProperty() |
private Label label
private StringProperty text
private ObjectProperty<Node> symbol
public LegendItem(java.lang.String text)
public LegendItem(java.lang.String text, Node symbol)
public final java.lang.String getText()
public final void setText(java.lang.String value)
public final StringProperty textProperty()
public final Node getSymbol()
public final void setSymbol(Node value)
public final ObjectProperty<Node> symbolProperty()