public final class Animation extends AbstractNode implements IsAnimation
| Modifier and Type | Method and Description |
|---|---|
protected D |
getDefaultValues()
Returns the default values.
|
int |
getDelay()
Returns the delay before starting the animations.
|
DelayCallback |
getDelayCallback()
Returns the callback to set the delay before starting the animations.
|
int |
getDuration()
Returns the number of milliseconds an animation takes.
|
DurationCallback |
getDurationCallback()
Returns the callback to set the number of milliseconds an animation takes.
|
Easing |
getEasing()
Returns the animation easing.
|
EasingCallback |
getEasingCallback()
Returns the callback to set the animation easing.
|
LoopCallback |
getLoopCallback()
Returns the callback to loop the animations endlessly.
|
String |
getScope()
Returns the scope of the options, which is the options are used for defaults, chart defaults or chart.
|
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. |
boolean |
isLoop()
If set to
true, loops the animations endlessly. |
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 |
setDelay(DelayCallback delayCallback)
Sets the delay before starting the animations by a callback.
|
void |
setDelay(int delay)
Sets the delay before starting the animations.
|
void |
setDelay(NativeCallback delayCallback)
Sets the delay before starting the animations by a callback.
|
void |
setDuration(DurationCallback durationCallback)
Sets the number of milliseconds an animation takes by a callback.
|
void |
setDuration(int milliseconds)
Sets the number of milliseconds an animation takes.
|
void |
setDuration(NativeCallback durationCallback)
Sets the number of milliseconds an animation takes by a callback.
|
void |
setEasing(Easing easing)
Sets the animation easing.
|
void |
setEasing(EasingCallback easingCallback)
Sets the animation easing by a callback.
|
void |
setEasing(NativeCallback easingCallback)
Sets the animation easing by a callback.
|
void |
setLoop(boolean loop)
If set to
true, loops the animations endlessly. |
void |
setLoop(LoopCallback loopCallback)
Sets to loop the animations endlessly by a callback.
|
void |
setLoop(NativeCallback loopCallback)
Sets to loop the animations endlessly by a callback.
|
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParentcheckDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetDelay, setDelay, setDelay, setDuration, setDuration, setDuration, setEasing, setEasing, setEasing, setLoop, setLoop, setLoopgetDelay, getDelayCallback, getDuration, getDurationCallback, getEasing, getEasingCallback, getLoopCallback, isLoopextractScopepublic void setAnimateRotate(boolean animateRotate)
true, the chart will animate in with a rotation animation.setAnimateRotate in interface IsAnimationanimateRotate - 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.setAnimateScale in interface IsAnimationanimateScale - 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.protected final D getDefaultValues()
public final String getScope()
HasCallbackScopegetScope in interface HasCallbackScopepublic final void setEasing(Easing easing)
easing - animation easing.public final Easing getEasing()
getEasing in interface IsDefaultBaseAnimationpublic final void setDuration(int milliseconds)
milliseconds - the number of milliseconds an animation takes.public final int getDuration()
getDuration in interface IsDefaultBaseAnimationpublic final void setDelay(int delay)
delay - the delay before starting the animationspublic final int getDelay()
getDelay in interface IsDefaultBaseAnimationpublic final void setLoop(boolean loop)
true, loops the animations endlessly.loop - true if loops the animations endlessly.public final boolean isLoop()
true, loops the animations endlessly.isLoop in interface IsDefaultBaseAnimationtrue if loops the animations endlessly.public DurationCallback getDurationCallback()
getDurationCallback in interface IsDefaultBaseAnimationpublic void setDuration(DurationCallback durationCallback)
durationCallback - the callback instance to usepublic void setDuration(NativeCallback durationCallback)
durationCallback - the callback instance to usepublic DelayCallback getDelayCallback()
getDelayCallback in interface IsDefaultBaseAnimationpublic void setDelay(DelayCallback delayCallback)
delayCallback - the callback instance to usepublic void setDelay(NativeCallback delayCallback)
delayCallback - the callback instance to usepublic LoopCallback getLoopCallback()
getLoopCallback in interface IsDefaultBaseAnimationpublic void setLoop(LoopCallback loopCallback)
loopCallback - the callback instance to usepublic void setLoop(NativeCallback loopCallback)
loopCallback - the callback instance to usepublic EasingCallback getEasingCallback()
getEasingCallback in interface IsDefaultBaseAnimationpublic void setEasing(EasingCallback easingCallback)
easingCallback - the callback instance to usepublic void setEasing(NativeCallback easingCallback)
easingCallback - the callback instance to use