public class Animation extends EventProvider<ExtendedOptions>
Modifier and Type | Method and Description |
---|---|
protected <H extends EventHandler> |
addHandler(GwtEvent.Type<H> type)
Notifies the event provider when a new handler has been added.
|
AbstractChart<?,?> |
getChart()
Returns the chart instance
|
protected T |
getConfiguration()
Returns the configuration element.
|
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 <H extends EventHandler> |
removeHandler(GwtEvent.Type<H> type)
Notifies the event provider when a new handler has been unregistered
|
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.
|
protected void |
setConfiguration(T configuration) |
void |
setDuration(int milliseconds)
Sets the number of milliseconds an animation takes.
|
void |
setEasing(Easing easing)
Sets the animation easing.
|
String |
toJSON()
Returns the JSON representation of the object.
|
onAdd, onRemove
public void setEasing(Easing easing)
easing
- animation easing.public Easing getEasing()
public void setDuration(int milliseconds)
milliseconds
- the number of milliseconds an animation takes.public int getDuration()
public void setAnimateRotate(boolean animateRotate)
animateRotate
- If true, the chart will animate in with a rotation animation.public boolean isAnimateRotate()
public void setAnimateScale(boolean animateScale)
animateScale
- If true, will animate scaling the chart from the center outwards.public boolean isAnimateScale()
protected final <H extends EventHandler> void addHandler(GwtEvent.Type<H> type)
EventProvider
addHandler
in class EventProvider<ExtendedOptions>
H
- type of event handlertype
- type of eventprotected final <H extends EventHandler> void removeHandler(GwtEvent.Type<H> type)
EventProvider
removeHandler
in class EventProvider<ExtendedOptions>
H
- type of event handlertype
- type of event handlerprotected final void setConfiguration(T configuration)
configuration
- the configuration to setprotected final T getConfiguration()
public final String toJSON()
public final AbstractChart<?,?> getChart()