public final class ChartHoverEvent extends AbstractEvent<H> implements IsChartEvent
GwtEvent.Type<H>| Modifier and Type | Field and Description |
|---|---|
static GwtEvent.Type<ChartHoverEventHandler> |
TYPE
Event type
|
| Constructor and Description |
|---|
ChartHoverEvent(NativeEvent 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(ChartHoverEventHandler handler) |
GwtEvent.Type<ChartHoverEventHandler> |
getAssociatedType() |
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 hover
|
Key |
getKey()
Returns the options key where default function is stored.
|
getChart, getNativeEventassertLive, getSource, isLive, kill, revivesetSource, toDebugString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChart, getContext, getKey, getNativeEventpublic static final GwtEvent.Type<ChartHoverEventHandler> TYPE
public ChartHoverEvent(NativeEvent 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 hoverpublic List<DatasetItem> getItems()
getItems in interface IsChartEventpublic GwtEvent.Type<ChartHoverEventHandler> getAssociatedType()
getAssociatedType in class GwtEvent<ChartHoverEventHandler>protected void dispatch(ChartHoverEventHandler handler)
dispatch in class GwtEvent<ChartHoverEventHandler>public final Chart getContext()
public final Key getKey()