public final class LegendHoverEvent extends AbstractEvent<H> implements IsLegendEvent
GwtEvent.Type<H>| Modifier and Type | Field and Description |
|---|---|
static GwtEvent.Type<LegendHoverEventHandler> |
TYPE
Event type
|
| Constructor and Description |
|---|
LegendHoverEvent(NativeEvent nativeEvent,
Chart functionContext,
LegendItem item)
Creates the event with legend item related to the hover
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatch(LegendHoverEventHandler handler) |
GwtEvent.Type<LegendHoverEventHandler> |
getAssociatedType() |
Chart |
getContext()
Returns the java script function context of CHART.JS events.
|
LegendItem |
getItem()
Returns the legend item 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<LegendHoverEventHandler> TYPE
public LegendHoverEvent(NativeEvent nativeEvent, Chart functionContext, LegendItem item)
nativeEvent - native event of this custom eventfunctionContext - function context provided by CHART.JSitem - legend item related to the hoverpublic LegendItem getItem()
getItem in interface IsLegendEventpublic GwtEvent.Type<LegendHoverEventHandler> getAssociatedType()
getAssociatedType in class GwtEvent<LegendHoverEventHandler>protected void dispatch(LegendHoverEventHandler handler)
dispatch in class GwtEvent<LegendHoverEventHandler>public final Chart getContext()
public final Key getKey()