Package org.pepstock.charba.client.items
Class BaseBoxNodeItem<T extends Key>
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.items.BaseBoxItem
- 
- org.pepstock.charba.client.items.BaseBoxNodeItem<T>
 
 
 
- 
- Type Parameters:
- T- type of position,- Positionof- AxisPosition
 - All Implemented Interfaces:
- IsArea
 - Direct Known Subclasses:
- LegendNode,- ScaleItem,- SubtitleNode,- TitleNode
 
 public abstract class BaseBoxNodeItem<T extends Key> extends BaseBoxItem Base object which maps the CHART.JS chart items and represents main nodes of chart java script object.
 This is a wrapper of the CHART.JS item with all needed info.
 Implements allgetmethods to change java script object properties.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description doublegetMaxHeight()Returns the max height in pixel.doublegetMaxWidth()Returns the max width in pixel.intgetPaddingBottom()Returns the padding bottom in pixel.intgetPaddingLeft()Returns the padding left in pixel.intgetPaddingRight()Returns the padding right in pixel.intgetPaddingTop()Returns the padding top in pixel.TgetPosition()Returns the position of node.doublegetWeight()Returns the weight.booleanisActive()Returnstrueif the element is active.booleanisFullSize()Returnstrueif marks that this box should take the full width/height of the canvas (moving other boxes).default booleanisInside(NativeBaseEvent event)Returnstrueif the chart event is inside of a chart element, otherwisefalse.default booleanisInside(HasNativeEvent container)Returnstrueif the chart event is inside of this box, otherwisefalse.- 
Methods inherited from class org.pepstock.charba.client.items.BaseBoxItemgetBottom, getHeight, getLeft, getRight, getTop, getWidth, isInside
 - 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckAndGetColor, 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, 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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 
- 
 
- 
- 
- 
Method Detail- 
isActivepublic final boolean isActive() Returnstrueif the element is active.- Returns:
- trueif the element is active.
 
 - 
isFullSizepublic final boolean isFullSize() Returnstrueif marks that this box should take the full width/height of the canvas (moving other boxes).- Returns:
- trueif marks that this box should take the full width/height of the canvas (moving other boxes)
 
 - 
getPositionpublic final T getPosition() Returns the position of node.- Returns:
- the position of node.
 
 - 
getWeightpublic final double getWeight() Returns the weight.- Returns:
- the weight.
 
 - 
getMaxWidthpublic final double getMaxWidth() Returns the max width in pixel.- Returns:
- the max width in pixel.
 
 - 
getMaxHeightpublic final double getMaxHeight() Returns the max height in pixel.- Returns:
- the max height in pixel.
 
 - 
getPaddingToppublic final int getPaddingTop() Returns the padding top in pixel.- Returns:
- the padding top in pixel.
 
 - 
getPaddingRightpublic final int getPaddingRight() Returns the padding right in pixel.- Returns:
- the padding right in pixel.
 
 - 
getPaddingBottompublic final int getPaddingBottom() Returns the padding bottom in pixel.- Returns:
- the padding bottom in pixel.
 
 - 
getPaddingLeftpublic final int getPaddingLeft() Returns the padding left in pixel.- Returns:
- the padding left in pixel.
 
 - 
isInsidepublic default boolean isInside(NativeBaseEvent event) Returnstrueif the chart event is inside of a chart element, otherwisefalse.- Parameters:
- event- event to check if inside of a chart element.
- Returns:
- trueif the chart event is inside a chart element, otherwise- false
 
 - 
isInsidepublic default boolean isInside(HasNativeEvent container) Returnstrueif the chart event is inside of this box, otherwisefalse.- Parameters:
- container- event container to check if inside the box
- Returns:
- trueif the chart event is inside of this box, otherwise- false
 
 
- 
 
-