public final class ChartClickEvent extends AbstractEvent
Constructor and Description |
---|
ChartClickEvent(BaseNativeEvent nativeEvent,
Chart functionContext,
List<DatasetItem> items)
Creates the event with a list of items with dataset metadata related to the click
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(EventHandler handler)
Implemented by subclasses to dispatch event on the handler.
|
Chart |
getContext()
Returns the java script function context of CHART.JS events.
|
List<DatasetItem> |
getItems()
Returns a list of items with dataset metadata related to the click
|
Key |
getKey()
Returns the options key where default function is stored.
|
getChart, getNativeEvent, getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChart, getContext, getKey, getNativeEvent
public static final EventType TYPE
public ChartClickEvent(BaseNativeEvent nativeEvent, Chart functionContext, List<DatasetItem> items)
nativeEvent
- native event of this custom eventfunctionContext
- function context provided by CHART.JSitems
- a list of items with dataset metadata related to the clickprotected void dispatch(EventHandler handler)
Event
public final List<DatasetItem> getItems()
getItems
in interface IsChartEvent
public final Chart getContext()
public final Key getKey()