Class AbstractEvent
- java.lang.Object
-
- org.pepstock.charba.client.events.Event
-
- org.pepstock.charba.client.events.AbstractEvent
-
- All Implemented Interfaces:
HasNativeEvent
- Direct Known Subclasses:
AnimationCompleteEvent
,AnimationProgressEvent
,AxisClickEvent
,AxisEnterEvent
,AxisHoverEvent
,AxisLeaveEvent
,ChartClickEvent
,ChartHoverEvent
,ChartResizeEvent
,DatasetRangeCleanSelectionEvent
,DatasetRangeSelectionEvent
,DatasetSelectionEvent
,LegendClickEvent
,LegendHoverEvent
,LegendLeaveEvent
,SubtitleClickEvent
,SubtitleEnterEvent
,SubtitleLeaveEvent
,TitleClickEvent
,TitleEnterEvent
,TitleLeaveEvent
public abstract class AbstractEvent extends Event implements HasNativeEvent
Abstract event for all events which must contain a native event.
This event contains the chart instance as source.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractEvent(NativeBaseEvent nativeEvent, EventType type)
Creates an event using a native event
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsChart
getChart()
Returns the chart instance, stored in the event as source.NativeBaseEvent
getNativeEvent()
Returns the native event instance.EventType
getType()
Returns the event type used to register this event to find handlers of the appropriate class.
-
-
-
Constructor Detail
-
AbstractEvent
protected AbstractEvent(NativeBaseEvent nativeEvent, EventType type)
Creates an event using a native event- Parameters:
nativeEvent
- native event of this custom eventtype
- type of event
-
-
Method Detail
-
getType
public final EventType getType()
Description copied from class:Event
Returns the event type used to register this event to find handlers of the appropriate class.
-
getNativeEvent
public final NativeBaseEvent getNativeEvent()
Returns the native event instance.- Specified by:
getNativeEvent
in interfaceHasNativeEvent
- Returns:
- the nativeEvent
-
getChart
public IsChart getChart()
Returns the chart instance, stored in the event as source.- Returns:
- the chart instance
-
-