public final class Legend extends AbstractItem
Modifier and Type | Method and Description |
---|---|
LegendLabels |
getLabels() |
Position |
getPosition()
Returns the position of the legend.
|
boolean |
isDisplay()
Returns if the legend is shown.
|
boolean |
isFullWidth()
Returns if marks that this box should take the full width of the canvas (pushing down other boxes)
|
boolean |
isReverse()
Returns if the legend will show datasets in reverse order.
|
void |
setDisplay(boolean display)
Sets if the legend is shown.
|
void |
setFullWidth(boolean fullWidth)
Marks that this box should take the full width of the canvas (pushing down other boxes).
|
void |
setPosition(Position position)
Sets the position of the legend.
|
void |
setReverse(boolean reverse)
Sets the legend will show datasets in reverse order.
|
checkAndAddToParent, hasProperty
checkAndGetDoubleValues, checkAndGetEnumValues, checkAndGetIntegerValues, checkAndGetStringValues, checkAndSetDoubleValues, checkAndSetEnumValues, checkAndSetIntegerValues, checkAndSetStringValues, getDoubleArray, getIntegerArray, getJavaScriptObject, getObjectArray, getStringArray, getValue, getValue, getValue, getValue, getValue, getValue, getValue, has, has, hasToBeRegistered, isEmpty, keys, remove, remove, removeIfExists, setDoubleArray, setEnumValueArray, setIntegerArray, setObjectArray, setStringArray, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, type
public LegendLabels getLabels()
public void setDisplay(boolean display)
display
- if the legend is shown.public boolean isDisplay()
public void setFullWidth(boolean fullWidth)
fullWidth
- Marks that this box should take the full width of the canvas (pushing down other boxes)public boolean isFullWidth()
public void setReverse(boolean reverse)
reverse
- legend will show datasets in reverse order.public boolean isReverse()
public void setPosition(Position position)
position
- Position of the legend.Position
public Position getPosition()
Position.top
.Position