public final class ChartResizeEvent extends AbstractEvent
| Constructor and Description |
|---|
ChartResizeEvent(BaseNativeEvent nativeEvent,
Chart functionContext,
SizeItem size)
Creates the event with a item with new size of the chart
|
| 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.
|
Key |
getKey()
Returns the options key where default function is stored.
|
SizeItem |
getSize()
Returns item with the new size of the chart
|
getChart, getNativeEvent, getTypepublic static final EventType TYPE
public ChartResizeEvent(BaseNativeEvent nativeEvent, Chart functionContext, SizeItem size)
nativeEvent - native event of this custom eventfunctionContext - function context provided by CHART.JSsize - item with the new size of the chartpublic SizeItem getSize()
protected void dispatch(EventHandler handler)
Eventpublic final Chart getContext()
public final Key getKey()