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 SummaryAll Methods Instance Methods Concrete Methods Default 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(NativeAbstractMouseEvent event)Returnstrueif the chart event is inside of this box, otherwisefalse.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.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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 
- 
 
- 
- 
- 
Method Detail- 
getToppublic final double getTop() Returns the top of chart area.
 - 
getRightpublic final double getRight() Returns the right of chart area.
 - 
getBottompublic final double getBottom() Returns the bottom of chart area.
 - 
getLeftpublic final double getLeft() Returns the left of chart area.
 - 
getWidthpublic final double getWidth() Returns the width in pixel.
 - 
getHeightpublic final double getHeight() Returns the height in pixel.
 - 
isInsidepublic boolean isInside(NativeAbstractMouseEvent 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, otherwise- false
 
 - 
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
 
 
- 
 
-