Class AbstractEvent
- java.lang.Object
-
- org.pepstock.charba.client.events.Event
-
- org.pepstock.charba.client.events.AbstractEvent
-
- 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
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 protectedAbstractEvent(BaseNativeEvent nativeEvent, EventType type)Creates an event using a native event
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsChartgetChart()Returns the chart instance, stored in the event as source.BaseNativeEventgetNativeEvent()Returns the native event instance.EventTypegetType()Returns the event type used to register this event to find handlers of the appropriate class.
-
-
-
Constructor Detail
-
AbstractEvent
protected AbstractEvent(BaseNativeEvent 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:EventReturns the event type used to register this event to find handlers of the appropriate class.
-
getNativeEvent
public final BaseNativeEvent getNativeEvent()
Returns the native event instance.- Returns:
- the nativeEvent
-
getChart
public IsChart getChart()
Returns the chart instance, stored in the event as source.- Returns:
- the chart instance
-
-