Package org.pepstock.charba.client.items
Class LegendHitBoxItem
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.items.SizeItem
-
- org.pepstock.charba.client.items.LegendHitBoxItem
-
public final class LegendHitBoxItem extends SizeItem
This is a wrapper of the CHART.JS item which contains the legends hit box.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getLeft()
Returns the padding left in pixel.double
getTop()
Returns the padding top 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
-
getLeft
public double getLeft()
Returns the padding left in pixel.- Returns:
- the padding left in pixel.
-
getTop
public double getTop()
Returns the padding top in pixel.- Returns:
- the padding top 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
-
-