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, type
public static final TransitionKey UPDATE
public UpdateConfiguration()
public void setEasing(Easing easing)
setEasing
in interface IsAnimation
easing
- animation easing.public Easing getEasing()
getEasing
in interface IsDefaultBaseAnimation
public void setDuration(int milliseconds)
setDuration
in interface IsAnimation
milliseconds
- the number of milliseconds an animation takes.public int getDuration()
getDuration
in interface IsDefaultBaseAnimation
public void setDelay(int delay)
setDelay
in interface IsAnimation
delay
- the delay before starting the animationspublic int getDelay()
getDelay
in interface IsDefaultBaseAnimation
public void setLoop(boolean loop)
true
, loops the animations endlessly.setLoop
in interface IsAnimation
loop
- true
if loops the animations endlessly.public boolean isLoop()
true
, loops the animations endlessly.isLoop
in interface IsDefaultBaseAnimation
true
if loops the animations endlessly.public void setAnimateRotate(boolean animateRotate)
true
, the chart will animate in with a rotation animation.setAnimateRotate
in interface IsAnimation
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 IsDefaultAnimation
true
, 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 IsAnimation
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 IsDefaultAnimation
true
, will animate scaling the chart from the center outwards.public DurationCallback getDurationCallback()
IsDefaultBaseAnimation
getDurationCallback
in interface IsDefaultBaseAnimation
public DelayCallback getDelayCallback()
IsDefaultBaseAnimation
getDelayCallback
in interface IsDefaultBaseAnimation
public LoopCallback getLoopCallback()
IsDefaultBaseAnimation
getLoopCallback
in interface IsDefaultBaseAnimation
public EasingCallback getEasingCallback()
IsDefaultBaseAnimation
getEasingCallback
in interface IsDefaultBaseAnimation
public void setDuration(DurationCallback durationCallback)
IsAnimation
setDuration
in interface IsAnimation
durationCallback
- the callback instance to usepublic void setDelay(DelayCallback delayCallback)
IsAnimation
setDelay
in interface IsAnimation
delayCallback
- the callback instance to usepublic void setLoop(LoopCallback loopCallback)
IsAnimation
setLoop
in interface IsAnimation
loopCallback
- the callback instance to usepublic void setEasing(EasingCallback easingCallback)
IsAnimation
setEasing
in interface IsAnimation
easingCallback
- the callback instance to usepublic void setDuration(NativeCallback durationCallback)
IsAnimation
setDuration
in interface IsAnimation
durationCallback
- the callback instance to usepublic void setDelay(NativeCallback delayCallback)
IsAnimation
setDelay
in interface IsAnimation
delayCallback
- the callback instance to usepublic void setLoop(NativeCallback loopCallback)
IsAnimation
setLoop
in interface IsAnimation
loopCallback
- the callback instance to usepublic void setEasing(NativeCallback easingCallback)
IsAnimation
setEasing
in interface IsAnimation
easingCallback
- the callback instance to usepublic void setEnabled(AnimationCollectionKey collection, boolean enabled)
setEnabled
in interface IsAnimations
collection
- 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 IsAnimations
collection
- collection instance used to check in the animation optionstrue
if the animation collection is enabled, otherwise false
public boolean has(AnimationCollectionKey collection)
true
if an animation collection instance is stored in the the animation options.has
in interface IsDefaultAnimations
collection
- 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 IsDefaultAnimations
get
in interface IsAnimations
collection
- collection instance used to get for animation optionsnull
if does not existspublic void set(AnimationCollectionKey collection, AnimationCollection animationCollection)
set
in interface IsAnimations
collection
- collection instance used to get for animation optionsanimationCollection
- an animation collection instance to setpublic AnimationCollection create(AnimationCollectionKey collection)
create
in interface IsAnimations
collection
- collection key used to create the animation collectionspublic void remove(AnimationCollectionKey collection)
remove
in interface IsAnimations
collection
- collection instance used to remove from animation options