Class AxisEnterEvent
- java.lang.Object
-
- org.pepstock.charba.client.events.Event
-
- org.pepstock.charba.client.events.AbstractEvent
-
- org.pepstock.charba.client.events.AxisEnterEvent
-
- All Implemented Interfaces:
HasNativeEvent
public final class AxisEnterEvent extends AbstractEvent
Event which is fired when the user is entering on the axis of the chart.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description AxisEnterEvent(NativeAbstractMouseEvent nativeEvent, ScaleItem item, Axis axis)
Creates the event with axis related to the enter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dispatch(EventHandler handler)
Implemented by subclasses to dispatch event on the handler.Axis
getAxis()
Returns the axis configuration instance if exists.ScaleItem
getItem()
Returns the scale item related to the actionNativeAbstractMouseEvent
getNativeMouseEvent()
Returns the native event asNativeMouseEvent
.-
Methods inherited from class org.pepstock.charba.client.events.AbstractEvent
getChart, getNativeEvent, getType
-
-
-
-
Field Detail
-
TYPE
public static final EventType TYPE
Event type
-
-
Constructor Detail
-
AxisEnterEvent
public AxisEnterEvent(NativeAbstractMouseEvent nativeEvent, ScaleItem item, Axis axis)
Creates the event with axis related to the enter- Parameters:
nativeEvent
- native event of this custom eventitem
- scale item related to the enteraxis
- axis configuration instance
-
-
Method Detail
-
dispatch
protected void dispatch(EventHandler handler)
Description copied from class:Event
Implemented by subclasses to dispatch event on the handler.
-
getItem
public final ScaleItem getItem()
Returns the scale item related to the action- Returns:
- the scale item related to the action
-
getAxis
public final Axis getAxis()
Returns the axis configuration instance if exists. The chart can be implemented without any axis (using defaults) and therefore can returnnull
.- Returns:
- the axis configuration instance or
null
if no axis configuration has been provided to chart
-
getNativeMouseEvent
public final NativeAbstractMouseEvent getNativeMouseEvent()
Returns the native event asNativeMouseEvent
.- Returns:
- the native event as
NativeMouseEvent
.
-
-