public final class LegendNode extends BaseBoxNodeItem
Constructor and Description |
---|
LegendNode(ChartEnvelop<NativeObject> envelop)
Creates the item using an envelop with the native java script object which contains all properties.
|
Modifier and Type | Method and Description |
---|---|
List<Double> |
getColumnHeights()
Returns the list of columns heights.
|
List<Double> |
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<Double> |
getLineWidths()
Returns the list of line widths.
|
boolean |
isDoughnutMode()
Returns if it is in doughnut mode.
|
boolean |
isInside(BaseNativeEvent event)
Returns
true if the chart event is inside of this box, otherwise false . |
getMaxHeight, getMaxWidth, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPosition, getWeight, isActive, isFullSize
getBottom, getHeight, getLeft, getRight, getTop, getWidth
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isConsistent
public LegendNode(ChartEnvelop<NativeObject> envelop)
envelop
- envelop with the native java script object which contains all properties.public boolean isDoughnutMode()
true
it is in doughnut mode.public List<Double> getLineWidths()
public List<Double> getColumnWidths()
public List<Double> getColumnHeights()
public List<LegendHitBoxItem> getHitBoxes()
public List<LegendItem> getItems()
public boolean isInside(BaseNativeEvent event)
BaseBoxItem
true
if the chart event is inside of this box, otherwise false
.isInside
in class BaseBoxItem
event
- event to check if inside the boxtrue
if the chart event is inside of this box, otherwise false