public final class Animation extends EventProvider
| Modifier and Type | Method and Description |
|---|---|
protected <H extends com.google.gwt.event.shared.EventHandler> |
addHandler(com.google.gwt.event.shared.GwtEvent.Type<H> type)
Notifies the event provider when a new handler has been added.
|
int |
getDuration()
Returns the number of milliseconds an animation takes.
|
Easing |
getEasing()
Returns the animation easing.
|
boolean |
isAnimateRotate()
If true, the chart will animate in with a rotation animation.
|
boolean |
isAnimateScale()
If true, will animate scaling the chart from the center outwards.
|
protected void |
onComplete(GenericJavaScriptObject item)
Callback called at the end of an animation.
|
protected void |
onProgress(GenericJavaScriptObject item)
Callback called on each step of an animation.
|
protected <H extends com.google.gwt.event.shared.EventHandler> |
removeHandler(com.google.gwt.event.shared.GwtEvent.Type<H> type)
Notifies the event provider when a new handler has been deregistered
|
void |
setAnimateRotate(boolean animateRotate)
If true, the chart will animate in with a rotation animation.
|
void |
setAnimateScale(boolean animateScale)
If true, will animate scaling the chart from the center outwards.
|
void |
setDuration(int milliseconds)
Sets the number of milliseconds an animation takes.
|
void |
setEasing(Easing easing)
Sets the animation easing.
|
onAdd, onRemovegetChartcheckAndGetDoubleValues, checkAndGetEnumValues, checkAndGetIntegerValues, checkAndGetStringValues, checkAndSetDoubleValues, checkAndSetEnumValues, checkAndSetIntegerValues, checkAndSetStringValues, getDoubleArray, getIntegerArray, getJavaScriptObject, getObjectArray, getStringArray, getValue, getValue, getValue, getValue, getValue, getValue, getValue, has, has, hasToBeRegistered, isEmpty, keys, remove, remove, removeIfExists, setDoubleArray, setEnumValueArray, setIntegerArray, setObjectArray, setStringArray, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, typepublic void setEasing(Easing easing)
easing - animation easing.Easingpublic Easing getEasing()
Options.getAnimation().Easingpublic void setDuration(int milliseconds)
milliseconds - the number of milliseconds an animation takes.public int getDuration()
Options.getAnimation().public void setAnimateRotate(boolean animateRotate)
animateRotate - If true, the chart will animate in with a rotation animation.public boolean isAnimateRotate()
Options.getAnimation().public void setAnimateScale(boolean animateScale)
animateScale - If true, will animate scaling the chart from the center outwards.public boolean isAnimateScale()
Options.getAnimation().protected <H extends com.google.gwt.event.shared.EventHandler> void addHandler(com.google.gwt.event.shared.GwtEvent.Type<H> type)
EventProvideraddHandler in class EventProviderH - type of event handlertype - type of eventprotected <H extends com.google.gwt.event.shared.EventHandler> void removeHandler(com.google.gwt.event.shared.GwtEvent.Type<H> type)
EventProviderremoveHandler in class EventProviderH - type of event handlertype - type of event handlerprotected void onProgress(GenericJavaScriptObject item)
item - animation item info.protected void onComplete(GenericJavaScriptObject item)
item - animation item info.