public final class Legend extends AbstractModel<Options,IsDefaultLegend> implements IsDefaultLegend
Modifier and Type | Method and Description |
---|---|
LegendLabels |
getLabels()
Returns the legend labels element.
|
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, getChildKey, getDefaultValues, getParent, setCallbackToModel, setEventToModel
getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public LegendLabels getLabels()
getLabels
in interface IsDefaultLegend
public void setDisplay(boolean display)
display
- if the legend is shown.public boolean isDisplay()
isDisplay
in interface IsDefaultLegend
true
if the legend is shown.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()
isFullWidth
in interface IsDefaultLegend
true
if marks that this box should take the full width of the canvas (pushing down other boxes).public void setReverse(boolean reverse)
reverse
- legend will show datasets in reverse order.public boolean isReverse()
isReverse
in interface IsDefaultLegend
true
if legend will show datasets in reverse order.public void setPosition(Position position)
position
- Position of the legend.public Position getPosition()
getPosition
in interface IsDefaultLegend