public final class LegendLeaveEvent extends AbstractEvent
Constructor and Description |
---|
LegendLeaveEvent(BaseNativeEvent nativeEvent,
Chart functionContext,
LegendItem item)
Creates the event with legend item related to the leaving.
|
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.
|
LegendItem |
getItem()
Returns the legend item 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 LegendLeaveEvent(BaseNativeEvent nativeEvent, Chart functionContext, LegendItem item)
nativeEvent
- native event of this custom eventfunctionContext
- function context provided by CHART.JSitem
- legend item related to the leavingprotected void dispatch(EventHandler handler)
Event
public final LegendItem getItem()
getItem
in interface IsLegendEvent
public final Chart getContext()
public final Key getKey()