public final class ChartResizeEvent extends AbstractEvent<H>
GwtEvent.Type<H>| Modifier and Type | Field and Description |
|---|---|
static GwtEvent.Type<ChartResizeEventHandler> |
TYPE
Event type
|
| Constructor and Description |
|---|
ChartResizeEvent(NativeEvent 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(ChartResizeEventHandler handler) |
GwtEvent.Type<ChartResizeEventHandler> |
getAssociatedType() |
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, getNativeEventassertLive, getSource, isLive, kill, revivesetSource, toDebugString, toStringpublic static final GwtEvent.Type<ChartResizeEventHandler> TYPE
public ChartResizeEvent(NativeEvent 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()
public GwtEvent.Type<ChartResizeEventHandler> getAssociatedType()
getAssociatedType in class GwtEvent<ChartResizeEventHandler>protected void dispatch(ChartResizeEventHandler handler)
dispatch in class GwtEvent<ChartResizeEventHandler>public final Chart getContext()
public final Key getKey()