- java.lang.Object
-
- eu.ess.xaos.ui.plot.Legend.LegendItem
-
- Enclosing class:
- Legend
public static class Legend.LegendItem extends Object
A item to be displayed on a Legend.It is realized by a
CheckBox
whose text is the series name, and its color is the series one.- CSS Style Class Name:
chart-legend-item
for the legend text.,chart-legend-item-symbol
It should be defined if a special default symbol is wanted. If defined it will take precedence of the others.,chart-symbol
,default-color1.chart-symbol
,default-color2.chart-symbol
,default-color3.chart-symbol
,default-color4.chart-symbol
,default-color5.chart-symbol
,default-color6.chart-symbol
anddefault-color6.chart-symbol
for scatter charts.,chart-line-symbol
for line charts.,chart-area-symbol
andarea-legend-symbol
for area charts.,bubble-legend-symbol
for bubble charts.,bar-legend-symbol
for bar charts.
-
-
Property Summary
Properties Type Property Description ObjectProperty<Node>
line
ObjectProperty<Node>
symbol
StringProperty
text
-
Constructor Summary
Constructors Constructor Description LegendItem(String text, Consumer<Boolean> checkBoxSelectionHandler)
LegendItem(String text, Consumer<Boolean> checkBoxSelectionHandler, boolean selected)
LegendItem(String text, Node symbol, Consumer<Boolean> checkBoxSelectionHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node
getLine()
Gets the value of the property line.Node
getSymbol()
Gets the value of the property symbol.String
getText()
Gets the value of the property text.boolean
isSelected()
ObjectProperty<Node>
lineProperty()
void
setLine(Node value)
Sets the value of the property line.void
setSelected(boolean selected)
void
setSymbol(Node value)
Sets the value of the property symbol.void
setText(String value)
Sets the value of the property text.ObjectProperty<Node>
symbolProperty()
StringProperty
textProperty()
String
toString()
-
-
-
Property Detail
-
symbol
public final ObjectProperty<Node> symbolProperty
- See Also:
getSymbol()
,setSymbol(Node)
-
line
public final ObjectProperty<Node> lineProperty
- See Also:
getLine()
,setLine(Node)
-
text
public final StringProperty textProperty
- See Also:
getText()
,setText(String)
-
-
Method Detail
-
symbolProperty
public final ObjectProperty<Node> symbolProperty()
- See Also:
getSymbol()
,setSymbol(Node)
-
getSymbol
public final Node getSymbol()
Gets the value of the property symbol.- Property description:
-
setSymbol
public final void setSymbol(Node value)
Sets the value of the property symbol.- Property description:
-
lineProperty
public final ObjectProperty<Node> lineProperty()
- See Also:
getLine()
,setLine(Node)
-
getLine
public final Node getLine()
Gets the value of the property line.- Property description:
-
setLine
public final void setLine(Node value)
Sets the value of the property line.- Property description:
-
textProperty
public final StringProperty textProperty()
- See Also:
getText()
,setText(String)
-
getText
public final String getText()
Gets the value of the property text.- Property description:
-
setText
public final void setText(String value)
Sets the value of the property text.- Property description:
-
isSelected
public final boolean isSelected()
-
setSelected
public final void setSelected(boolean selected)
-
-