public final class ChartHoverEvent extends AbstractEvent
| Constructor and Description |
|---|
ChartHoverEvent(BaseNativeEvent nativeEvent,
Chart functionContext,
List<DatasetItem> items)
Creates the event with a list of items with dataset metadata related to the hover
|
| 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, getTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChart, getContext, getKey, getNativeEventpublic static final EventType TYPE
public ChartHoverEvent(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 hoverprotected void dispatch(EventHandler handler)
Eventpublic final List<DatasetItem> getItems()
getItems in interface IsChartEventpublic final Chart getContext()
public final Key getKey()