public final class LegendClickEvent extends AbstractChartEvent<LegendClickEventHandler> implements IsLegendEvent
GwtEvent.Type<H>
Modifier and Type | Field and Description |
---|---|
static GwtEvent.Type<LegendClickEventHandler> |
TYPE
Event type
|
Constructor and Description |
---|
LegendClickEvent(NativeEvent nativeEvent,
Chart functionContext,
LegendItem item)
Creates the event with legend item related to the click
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(LegendClickEventHandler handler) |
GwtEvent.Type<LegendClickEventHandler> |
getAssociatedType() |
LegendItem |
getItem()
Returns the legend item related to the click
|
getContext, getKey
getChart, getNativeEvent
assertLive, getSource, isLive, kill, revive
setSource, toDebugString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChart, getContext, getKey, getNativeEvent
public static final GwtEvent.Type<LegendClickEventHandler> TYPE
public LegendClickEvent(NativeEvent nativeEvent, Chart functionContext, LegendItem item)
nativeEvent
- native event of this custom eventfunctionContext
- function context provided by CHART.JSitem
- legend item related to the clickpublic LegendItem getItem()
getItem
in interface IsLegendEvent
public GwtEvent.Type<LegendClickEventHandler> getAssociatedType()
getAssociatedType
in class GwtEvent<LegendClickEventHandler>
protected void dispatch(LegendClickEventHandler handler)
dispatch
in class GwtEvent<LegendClickEventHandler>