public class Animation extends AbstractModel<Options,IsDefaultAnimation> implements IsDefaultAnimation
| Modifier and Type | Method and Description |
|---|---|
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. |
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.
|
checkAndAddToParent, getChildKey, getDefaultValues, getParent, setCallbackToModel, setEventToModelgetArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typepublic void setEasing(Easing easing)
easing - animation easing.public Easing getEasing()
getEasing in interface IsDefaultAnimationpublic void setDuration(int milliseconds)
milliseconds - the number of milliseconds an animation takes.public int getDuration()
getDuration in interface IsDefaultAnimationpublic void setAnimateRotate(boolean animateRotate)
true, the chart will animate in with a rotation animation.animateRotate - If true, the chart will animate in with a rotation animation.public boolean isAnimateRotate()
true, the chart will animate in with a rotation animation.isAnimateRotate in interface IsDefaultAnimationtrue, the chart will animate in with a rotation animation.public void setAnimateScale(boolean animateScale)
true, will animate scaling the chart from the center outwards.animateScale - If true, will animate scaling the chart from the center outwards.public boolean isAnimateScale()
true, will animate scaling the chart from the center outwards.isAnimateScale in interface IsDefaultAnimationtrue, will animate scaling the chart from the center outwards.