Class DatasetRangeSelectionEvent
- java.lang.Object
-
- org.pepstock.charba.client.events.Event
-
- org.pepstock.charba.client.events.AbstractEvent
-
- org.pepstock.charba.client.events.DatasetRangeSelectionEvent
-
- All Implemented Interfaces:
HasNativeEvent
public final class DatasetRangeSelectionEvent extends AbstractEvent
Event which is fired when the user selects an area on the chart, byDatasetsItemsSelector.ID
plugin.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description DatasetRangeSelectionEvent(NativeCustomEvent nativeEvent, ScaleValueItem from, ScaleValueItem to)
Creates the event with start and end values of selected scale
-
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.ScaleValueItem
getFrom()
Returns the starting value of selected scale.ScaleValueItem
getTo()
Returns the ending value of selected scale.-
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
-
DatasetRangeSelectionEvent
public DatasetRangeSelectionEvent(NativeCustomEvent nativeEvent, ScaleValueItem from, ScaleValueItem to)
Creates the event with start and end values of selected scale- Parameters:
nativeEvent
- native event of this custom eventfrom
- starting value of selected scaleto
- ending value of selected scale
-
-
Method Detail
-
getFrom
public ScaleValueItem getFrom()
Returns the starting value of selected scale.- Returns:
- the starting value of selected scale
-
getTo
public ScaleValueItem getTo()
Returns the ending value of selected scale.- Returns:
- the ending value of selected scale
-
dispatch
protected void dispatch(EventHandler handler)
Description copied from class:Event
Implemented by subclasses to dispatch event on the handler.
-
-