public final class LegendNode extends BaseBoxNodeItem
Constructor and Description |
---|
LegendNode(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
Modifier and Type | Method and Description |
---|---|
List<Integer> |
getColumnWidths()
Returns the list of columns widths.
|
List<LegendHitBoxItem> |
getHitBoxes()
Returns the list of hit boxes of the legend.
|
List<LegendItem> |
getItems()
Returns the list of items of the legend.
|
List<Integer> |
getLineWidths()
Returns the list of line widths.
|
boolean |
isDoughnutMode()
Returns if it is in doughnut mode.
|
getHeight, getMargins, getMaxHeight, getMaxWidth, getMinSize, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPosition, getWeight, getWidth, isFullWidth
getBottom, getLeft, getRight, getTop
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 LegendNode(NativeObject nativeObject)
nativeObject
- native java script object which contains all properties.public boolean isDoughnutMode()
true
it is in doughnut mode. Default is
UndefinedValues.BOOLEAN
.public List<Integer> getLineWidths()
public List<Integer> getColumnWidths()
public List<LegendHitBoxItem> getHitBoxes()
public List<LegendItem> getItems()