public final class ChartResizeEvent extends AbstractEvent
| Constructor and Description |
|---|
ChartResizeEvent(ChartEventContext eventContext,
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.
|
IsChart |
getChart()
Returns the chart instance, stored in the event as source.
|
ChartEventContext |
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
|
getNativeEvent, getTypepublic static final EventType TYPE
public ChartResizeEvent(ChartEventContext eventContext, SizeItem size)
eventContext - event context generated by CHART.jssize - item with the new size of the chartpublic SizeItem getSize()
protected void dispatch(EventHandler handler)
Eventpublic final ChartEventContext getContext()
public final Key getKey()
public IsChart getChart()
getChart in class AbstractEvent