Package org.pepstock.charba.client.items
Class BaseBoxItem
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.items.BaseBoxItem
-
- All Implemented Interfaces:
IsArea
- Direct Known Subclasses:
BaseBoxNodeItem,ChartAreaNode
public abstract class BaseBoxItem extends NativeObjectContainer implements IsArea
Base object which maps the CHART.JS chart items which represents a box.
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 doublegetBottom()Returns the bottom of chart area.doublegetHeight()Returns the height in pixel.doublegetLeft()Returns the left of chart area.doublegetRight()Returns the right of chart area.doublegetTop()Returns the top of chart area.doublegetWidth()Returns the width in pixel.booleanisInside(BaseNativeEvent event)Returnstrueif the chart event is inside of this box, otherwisefalse.-
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
-
getTop
public final double getTop()
Returns the top of chart area.
-
getRight
public final double getRight()
Returns the right of chart area.
-
getBottom
public final double getBottom()
Returns the bottom of chart area.
-
getLeft
public final double getLeft()
Returns the left of chart area.
-
getWidth
public final double getWidth()
Returns the width in pixel.
-
getHeight
public final double getHeight()
Returns the height in pixel.
-
isInside
public boolean isInside(BaseNativeEvent event)
Returnstrueif the chart event is inside of this box, otherwisefalse.- Parameters:
event- event to check if inside the box- Returns:
trueif the chart event is inside of this box, otherwisefalse
-
-