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, getTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChart, getContext, getKey, getNativeEventpublic 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)
Eventpublic final LegendItem getItem()
getItem in interface IsLegendEventpublic final Chart getContext()
public final Key getKey()