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 allget
methods to change java script object properties.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getBottom()
Returns the bottom of chart area.double
getHeight()
Returns the height in pixel.double
getLeft()
Returns the left of chart area.double
getRight()
Returns the right of chart area.double
getTop()
Returns the top of chart area.double
getWidth()
Returns the width in pixel.boolean
isInside(BaseNativeEvent event)
Returnstrue
if 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)
Returnstrue
if the chart event is inside of this box, otherwisefalse
.- Parameters:
event
- event to check if inside the box- Returns:
true
if the chart event is inside of this box, otherwisefalse
-
-