public final class AnimationCollection extends AbstractNode implements IsDefaultAnimationCollection
| 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.
|
double |
getFrom()
Returns the start value for the animation as number.
|
boolean |
getFromAsBoolean()
Returns the start value for the animation as number.
|
IsColor |
getFromAsColor()
Returns the start value for the animation as color.
|
String |
getFromAsString()
Returns the start value for the animation as color string.
|
FromCallback |
getFromCallback()
Returns the callback to set the start value for the animation.
|
LoopCallback |
getLoopCallback()
Returns the callback to loop the animations endlessly.
|
List<AnimationPropertyKey> |
getProperties()
Returns the properties defined in the the animation collection.
|
String |
getScope()
Returns the scope of the options, which is the options are used for defaults, chart defaults or chart.
|
double |
getTo()
Returns the end value for the animation as number.
|
boolean |
getToAsBoolean()
Returns the end value for the animation as number.
|
IsColor |
getToAsColor()
Returns the end value for the animation as color.
|
String |
getToAsString()
Returns the end value for the animation as color string.
|
ToCallback |
getToCallback()
Returns the callback to set the end value for the animation.
|
AnimationType |
getType()
Returns the type of
from property and determines the interpolator used. |
boolean |
isLoop()
If set to
true, loops the animations endlessly. |
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 |
setFrom(boolean from)
Sets the end value for the animation as number.
|
void |
setFrom(double from)
Sets the start value for the animation as number.
|
void |
setFrom(FromCallback fromCallback)
Sets the start value for the animation by a callback.
|
void |
setFrom(IsColor from)
Sets the start value for the animation as color.
|
void |
setFrom(NativeCallback fromCallback)
Sets the start value for the animation by a callback.
|
void |
setFrom(String from)
Sets the start value for the animation as color string.
|
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.
|
void |
setProperties(AnimationPropertyKey... properties)
Sets the properties to be defined in the the animation collection.
|
void |
setProperties(List<AnimationPropertyKey> properties)
Sets the properties to be defined in the the animation collection.
|
void |
setTo(boolean to)
Sets the end value for the animation as number.
|
void |
setTo(double to)
Sets the end value for the animation as number.
|
void |
setTo(IsColor to)
Sets the end value for the animation as color.
|
void |
setTo(NativeCallback toCallback)
Sets the end value for the animation by a callback.
|
void |
setTo(String to)
Sets the end value for the animation as color string.
|
void |
setTo(ToCallback toCallback)
Sets the end value for the animation by a callback.
|
void |
setType(AnimationType type)
Sets the type of
from property and determines the interpolator used. |
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, waitgetDelay, getDelayCallback, getDuration, getDurationCallback, getEasing, getEasingCallback, getLoopCallback, isLoopextractScopepublic void setType(AnimationType type)
from property and determines the interpolator used.type - the type of from property and determines the interpolator used.public AnimationType getType()
from property and determines the interpolator used.getType in interface IsDefaultAnimationCollectionfrom property and determines the interpolator used.public void setFrom(boolean from)
from - the start end for the animation as number.public void setFrom(double from)
from - the start value for the animation as number.public void setFrom(String from)
from - the start value for the animation as color string.public void setFrom(IsColor from)
from - the start value for the animation as color.public double getFrom()
getFrom in interface IsDefaultAnimationCollectionpublic boolean getFromAsBoolean()
getFromAsBoolean in interface IsDefaultAnimationCollectionpublic String getFromAsString()
getFromAsString in interface IsDefaultAnimationCollectionpublic IsColor getFromAsColor()
public void setTo(boolean to)
to - the end value for the animation as number.public void setTo(double to)
to - the end value for the animation as number.public void setTo(String to)
to - the end value for the animation as color string.public void setTo(IsColor to)
to - the end value for the animation as color.public double getTo()
getTo in interface IsDefaultAnimationCollectionpublic boolean getToAsBoolean()
getToAsBoolean in interface IsDefaultAnimationCollectionpublic String getToAsString()
getToAsString in interface IsDefaultAnimationCollectionpublic IsColor getToAsColor()
public void setProperties(AnimationPropertyKey... properties)
properties - the properties to be defined in the the animation collectionpublic void setProperties(List<AnimationPropertyKey> properties)
properties - the properties to be defined in the the animation collectionpublic List<AnimationPropertyKey> getProperties()
getProperties in interface IsDefaultAnimationCollectionpublic FromCallback getFromCallback()
getFromCallback in interface IsDefaultAnimationCollectionpublic void setFrom(FromCallback fromCallback)
fromCallback - the callback instance to use to set the start value for the animationpublic void setFrom(NativeCallback fromCallback)
fromCallback - the callback instance to use to set the start value for the animationpublic ToCallback getToCallback()
getToCallback in interface IsDefaultAnimationCollectionpublic void setTo(ToCallback toCallback)
toCallback - the callback instance to use to set the end value for the animationpublic void setTo(NativeCallback toCallback)
toCallback - the callback instance to use to set the end value for the animationprotected 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