public final class ChartHoverEvent extends AbstractEvent
Constructor and Description |
---|
ChartHoverEvent(ChartEventContext eventContext,
List<DatasetReference> items)
Creates the event with a list of items with dataset references related to the hover
|
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.
|
List<DatasetReference> |
getItems()
Returns a list of items with dataset references related to the click.
|
Key |
getKey()
Returns the options key where default function is stored.
|
getNativeEvent, getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChart, getContext, getKey, getNativeEvent
public static final EventType TYPE
public ChartHoverEvent(ChartEventContext eventContext, List<DatasetReference> items)
eventContext
- event context generated by CHART.jsitems
- a list of items with dataset references related to the hoverprotected void dispatch(EventHandler handler)
Event
public final List<DatasetReference> getItems()
getItems
in interface IsChartEvent
public final ChartEventContext getContext()
public final Key getKey()
public IsChart getChart()
getChart
in class AbstractEvent