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,PositionofAxisPosition
- 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 Summary
All Methods Instance Methods Concrete 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).-
Methods inherited from class org.pepstock.charba.client.items.BaseBoxItem
getBottom, getHeight, getLeft, getRight, getTop, getWidth, isInside
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Method Detail
-
isActive
public final boolean isActive()
Returnstrueif the element is active.- Returns:
trueif the element is active.
-
isFullSize
public 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)
-
getPosition
public final T getPosition()
Returns the position of node.- Returns:
- the position of node.
-
getWeight
public final double getWeight()
Returns the weight.- Returns:
- the weight.
-
getMaxWidth
public final double getMaxWidth()
Returns the max width in pixel.- Returns:
- the max width in pixel.
-
getMaxHeight
public final double getMaxHeight()
Returns the max height in pixel.- Returns:
- the max height in pixel.
-
getPaddingTop
public final int getPaddingTop()
Returns the padding top in pixel.- Returns:
- the padding top in pixel.
-
getPaddingRight
public final int getPaddingRight()
Returns the padding right in pixel.- Returns:
- the padding right in pixel.
-
getPaddingBottom
public final int getPaddingBottom()
Returns the padding bottom in pixel.- Returns:
- the padding bottom in pixel.
-
getPaddingLeft
public final int getPaddingLeft()
Returns the padding left in pixel.- Returns:
- the padding left in pixel.
-
-