public final class UpdateConfiguration extends NativeObjectContainer implements IsAnimation, IsAnimations
| Modifier and Type | Field and Description |
|---|---|
static TransitionKey |
UPDATE
Default animation mode key, used for chart updating.
|
| Constructor and Description |
|---|
UpdateConfiguration()
Creates an empty animation mode to use for chart updating.
|
| Modifier and Type | Method and Description |
|---|---|
AnimationCollection |
create(AnimationCollectionKey collection)
Creates an animation collection instance and stores in the the animation options.
|
AnimationCollection |
get(AnimationCollectionKey collection)
Returns an animation collection instance if stored in the the animation options.
|
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.
|
boolean |
has(AnimationCollectionKey collection)
Returns
true if an animation collection instance is stored in the the animation options. |
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 |
isEnabled(AnimationCollectionKey collection)
Returns
true if the animation collection is enabled, otherwise false. |
boolean |
isLoop()
If set to
true, loops the animations endlessly. |
void |
remove(AnimationCollectionKey collection)
Removes an animation collection previously added.
|
void |
set(AnimationCollectionKey collection,
AnimationCollection animationCollection)
Sets an animation collection instance to store in the animation options.
|
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 |
setEnabled(AnimationCollectionKey collection,
boolean enabled)
Enables or disables an animation collection instance in the animation options.
|
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.
|
checkDefaultValuesArgument, 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, typepublic static final TransitionKey UPDATE
public UpdateConfiguration()
public void setEasing(Easing easing)
setEasing in interface IsAnimationeasing - animation easing.public Easing getEasing()
getEasing in interface IsDefaultBaseAnimationpublic void setDuration(int milliseconds)
setDuration in interface IsAnimationmilliseconds - the number of milliseconds an animation takes.public int getDuration()
getDuration in interface IsDefaultBaseAnimationpublic void setDelay(int delay)
setDelay in interface IsAnimationdelay - the delay before starting the animationspublic int getDelay()
getDelay in interface IsDefaultBaseAnimationpublic void setLoop(boolean loop)
true, loops the animations endlessly.setLoop in interface IsAnimationloop - true if loops the animations endlessly.public boolean isLoop()
true, loops the animations endlessly.isLoop in interface IsDefaultBaseAnimationtrue if loops the animations endlessly.public 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.public DurationCallback getDurationCallback()
IsDefaultBaseAnimationgetDurationCallback in interface IsDefaultBaseAnimationpublic DelayCallback getDelayCallback()
IsDefaultBaseAnimationgetDelayCallback in interface IsDefaultBaseAnimationpublic LoopCallback getLoopCallback()
IsDefaultBaseAnimationgetLoopCallback in interface IsDefaultBaseAnimationpublic EasingCallback getEasingCallback()
IsDefaultBaseAnimationgetEasingCallback in interface IsDefaultBaseAnimationpublic void setDuration(DurationCallback durationCallback)
IsAnimationsetDuration in interface IsAnimationdurationCallback - the callback instance to usepublic void setDelay(DelayCallback delayCallback)
IsAnimationsetDelay in interface IsAnimationdelayCallback - the callback instance to usepublic void setLoop(LoopCallback loopCallback)
IsAnimationsetLoop in interface IsAnimationloopCallback - the callback instance to usepublic void setEasing(EasingCallback easingCallback)
IsAnimationsetEasing in interface IsAnimationeasingCallback - the callback instance to usepublic void setDuration(NativeCallback durationCallback)
IsAnimationsetDuration in interface IsAnimationdurationCallback - the callback instance to usepublic void setDelay(NativeCallback delayCallback)
IsAnimationsetDelay in interface IsAnimationdelayCallback - the callback instance to usepublic void setLoop(NativeCallback loopCallback)
IsAnimationsetLoop in interface IsAnimationloopCallback - the callback instance to usepublic void setEasing(NativeCallback easingCallback)
IsAnimationsetEasing in interface IsAnimationeasingCallback - the callback instance to usepublic void setEnabled(AnimationCollectionKey collection, boolean enabled)
setEnabled in interface IsAnimationscollection - collection instance used to check in the animation optionsenabled - if true it enables an animation collectionpublic boolean isEnabled(AnimationCollectionKey collection)
true if the animation collection is enabled, otherwise false.isEnabled in interface IsAnimationscollection - collection instance used to check in the animation optionstrue if the animation collection is enabled, otherwise falsepublic boolean has(AnimationCollectionKey collection)
true if an animation collection instance is stored in the the animation options.has in interface IsDefaultAnimationscollection - collection instance used to check in the animation optionstrue if an animation collection instance is stored in the the animation optionspublic AnimationCollection get(AnimationCollectionKey collection)
get in interface IsDefaultAnimationsget in interface IsAnimationscollection - collection instance used to get for animation optionsnull if does not existspublic void set(AnimationCollectionKey collection, AnimationCollection animationCollection)
set in interface IsAnimationscollection - collection instance used to get for animation optionsanimationCollection - an animation collection instance to setpublic AnimationCollection create(AnimationCollectionKey collection)
create in interface IsAnimationscollection - collection key used to create the animation collectionspublic void remove(AnimationCollectionKey collection)
remove in interface IsAnimationscollection - collection instance used to remove from animation options