public final class DatasetRangeSelectionEvent extends AbstractEvent
DatasetsItemsSelector.ID
plugin.Modifier and Type | Field and Description |
---|---|
static int |
CLEAR_SELECTION
Value -2147483648 of FROM and TO when the event is representing a clear of selection
|
static EventType |
TYPE
Event type
|
Constructor and Description |
---|
DatasetRangeSelectionEvent(BaseNativeEvent nativeEvent)
Creates the event when the clear of current selection has been requested.
|
DatasetRangeSelectionEvent(BaseNativeEvent nativeEvent,
int from,
int to)
Creates the event with start and end index of selected datasets.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(EventHandler handler)
Implemented by subclasses to dispatch event on the handler.
|
int |
getFrom()
Returns the starting index of of selected datasets items.
If equals to CLEAR_SELECTION , the event is related to a clear of selection area. |
int |
getTo()
Returns the ending index of of selected datasets items.
If equals to CLEAR_SELECTION , the event is related to a clear of selection area. |
getChart, getNativeEvent, getType
public static final int CLEAR_SELECTION
public static final EventType TYPE
public DatasetRangeSelectionEvent(BaseNativeEvent nativeEvent)
nativeEvent
- native event of this custom eventpublic DatasetRangeSelectionEvent(BaseNativeEvent nativeEvent, int from, int to)
nativeEvent
- native event of this custom eventfrom
- starting index of selected datasetto
- ending index of selected datasetpublic int getFrom()
CLEAR_SELECTION
, the event is related to a clear of selection area.public int getTo()
CLEAR_SELECTION
, the event is related to a clear of selection area.protected void dispatch(EventHandler handler)
Event