public final class LegendClickEvent extends AbstractEvent
| Constructor and Description |
|---|
LegendClickEvent(ChartEventContext eventContext,
LegendItem item)
Creates the event with legend item related to the click
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatch(EventHandler handler)
Implemented by subclasses to dispatch event on the handler.
|
IsChart |
getChart()
Returns the chart instance, stored in the event as source.
|
ChartEventContext |
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.
|
getNativeEvent, getTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChart, getContext, getKey, getNativeEventpublic static final EventType TYPE
public LegendClickEvent(ChartEventContext eventContext, LegendItem item)
eventContext - event context generated by CHART.jsitem - legend item related to the clickprotected void dispatch(EventHandler handler)
Eventpublic final LegendItem getItem()
getItem in interface IsLegendEventpublic final ChartEventContext getContext()
public final Key getKey()
public IsChart getChart()
getChart in class AbstractEvent