Package org.pepstock.charba.client
Class UpdateConfiguration
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.UpdateConfiguration
 
 
- 
- All Implemented Interfaces:
- IsDefaultAnimation,- IsDefaultAnimations,- IsDefaultBaseAnimation,- IsAnimation,- IsAnimations
 
 public final class UpdateConfiguration extends NativeObjectContainer implements IsAnimation, IsAnimations Object can be provided with additional configuration for the update process.
 This is useful when update is manually called inside an event handler and some different animation is desired.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Field SummaryFields Modifier and Type Field Description static TransitionModeUPDATEDefault animation mode key, used for chart updating.
 - 
Constructor SummaryConstructors Constructor Description UpdateConfiguration()Creates an empty animation mode to use for chart updating.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(Key collection)Returnstrueif an animation collection instance is stored in the animation options.AnimationCollectioncreate(Key collection)Creates an animation collection instance and stores in the animation options.voiddelete(Key collection)Removes an animation collection previously added.AnimationCollectionget(Key collection)Returns an animation collection instance if stored in the animation options.intgetDelay()Returns the delay before starting the animations.DelayCallbackgetDelayCallback()Returns the callback to set the delay before starting the animations.intgetDuration()Returns the number of milliseconds an animation takes.DurationCallbackgetDurationCallback()Returns the callback to set the number of milliseconds an animation takes.EasinggetEasing()Returns the animation easing.EasingCallbackgetEasingCallback()Returns the callback to set the animation easing.LoopCallbackgetLoopCallback()Returns the callback to loop the animations endlessly.booleanisAnimateRotate()Iftrue, the chart will animate in with a rotation animation.booleanisAnimateScale()Iftrue, will animate scaling the chart from the center outwards.booleanisEnabled(Key collection)Returnstrueif the animation collection is enabled, otherwisefalse.booleanisLoop()If set totrue, loops the animations endlessly.voidset(Key collection, AnimationCollection animationCollection)Sets an animation collection instance to store in the animation options.voidsetAnimateRotate(boolean animateRotate)Iftrue, the chart will animate in with a rotation animation.voidsetAnimateScale(boolean animateScale)Iftrue, will animate scaling the chart from the center outwards.voidsetDelay(int delay)Sets the delay before starting the animations.voidsetDelay(DelayCallback delayCallback)Sets the delay before starting the animations by a callback.voidsetDelay(NativeCallback delayCallback)Sets the delay before starting the animations by a callback.voidsetDuration(int milliseconds)Sets the number of milliseconds an animation takes.voidsetDuration(DurationCallback durationCallback)Sets the number of milliseconds an animation takes by a callback.voidsetDuration(NativeCallback durationCallback)Sets the number of milliseconds an animation takes by a callback.voidsetEasing(EasingCallback easingCallback)Sets the animation easing by a callback.voidsetEasing(NativeCallback easingCallback)Sets the animation easing by a callback.voidsetEasing(Easing easing)Sets the animation easing.voidsetEnabled(Key collection, boolean enabled)Enables or disables an animation collection instance in the animation options.voidsetLoop(boolean loop)If set totrue, loops the animations endlessly.voidsetLoop(LoopCallback loopCallback)Sets to loop the animations endlessly by a callback.voidsetLoop(NativeCallback loopCallback)Sets to loop the animations endlessly by a callback.- 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckAndGetColor, 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, 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, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.pepstock.charba.client.options.IsAnimationscreate, delete, get, isEnabled, set, setEnabled
 - 
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultAnimationscontains
 
- 
 
- 
- 
- 
Field Detail- 
UPDATEpublic static final TransitionMode UPDATE Default animation mode key, used for chart updating.
 
- 
 - 
Method Detail- 
setEasingpublic void setEasing(Easing easing) Sets the animation easing.- Specified by:
- setEasingin interface- IsAnimation
- Parameters:
- easing- animation easing.
 
 - 
getEasingpublic Easing getEasing() Returns the animation easing.- Specified by:
- getEasingin interface- IsDefaultBaseAnimation
- Returns:
- animation easing.
 
 - 
setDurationpublic void setDuration(int milliseconds) Sets the number of milliseconds an animation takes.- Specified by:
- setDurationin interface- IsAnimation
- Parameters:
- milliseconds- the number of milliseconds an animation takes.
 
 - 
getDurationpublic int getDuration() Returns the number of milliseconds an animation takes.- Specified by:
- getDurationin interface- IsDefaultBaseAnimation
- Returns:
- the number of milliseconds an animation takes.
 
 - 
setDelaypublic void setDelay(int delay) Sets the delay before starting the animations.- Specified by:
- setDelayin interface- IsAnimation
- Parameters:
- delay- the delay before starting the animations
 
 - 
getDelaypublic int getDelay() Returns the delay before starting the animations.- Specified by:
- getDelayin interface- IsDefaultBaseAnimation
- Returns:
- the delay before starting the animations
 
 - 
setLooppublic void setLoop(boolean loop) If set totrue, loops the animations endlessly.- Specified by:
- setLoopin interface- IsAnimation
- Parameters:
- loop-- trueif loops the animations endlessly.
 
 - 
isLooppublic boolean isLoop() If set totrue, loops the animations endlessly.- Specified by:
- isLoopin interface- IsDefaultBaseAnimation
- Returns:
- trueif loops the animations endlessly.
 
 - 
setAnimateRotatepublic void setAnimateRotate(boolean animateRotate) Iftrue, the chart will animate in with a rotation animation.- Specified by:
- setAnimateRotatein interface- IsAnimation
- Parameters:
- animateRotate- If- true, the chart will animate in with a rotation animation.
 
 - 
isAnimateRotatepublic boolean isAnimateRotate() Iftrue, the chart will animate in with a rotation animation.- Specified by:
- isAnimateRotatein interface- IsDefaultAnimation
- Returns:
- if true, the chart will animate in with a rotation animation.
 
 - 
setAnimateScalepublic void setAnimateScale(boolean animateScale) Iftrue, will animate scaling the chart from the center outwards.- Specified by:
- setAnimateScalein interface- IsAnimation
- Parameters:
- animateScale- If- true, will animate scaling the chart from the center outwards.
 
 - 
isAnimateScalepublic boolean isAnimateScale() Iftrue, will animate scaling the chart from the center outwards.- Specified by:
- isAnimateScalein interface- IsDefaultAnimation
- Returns:
- If true, will animate scaling the chart from the center outwards.
 
 - 
getDurationCallbackpublic DurationCallback getDurationCallback() Description copied from interface:IsDefaultBaseAnimationReturns the callback to set the number of milliseconds an animation takes.- Specified by:
- getDurationCallbackin interface- IsDefaultBaseAnimation
- Returns:
- the callback instance to use
 
 - 
getDelayCallbackpublic DelayCallback getDelayCallback() Description copied from interface:IsDefaultBaseAnimationReturns the callback to set the delay before starting the animations.- Specified by:
- getDelayCallbackin interface- IsDefaultBaseAnimation
- Returns:
- the callback instance to use
 
 - 
getLoopCallbackpublic LoopCallback getLoopCallback() Description copied from interface:IsDefaultBaseAnimationReturns the callback to loop the animations endlessly.- Specified by:
- getLoopCallbackin interface- IsDefaultBaseAnimation
- Returns:
- the callback instance to use
 
 - 
getEasingCallbackpublic EasingCallback getEasingCallback() Description copied from interface:IsDefaultBaseAnimationReturns the callback to set the animation easing.- Specified by:
- getEasingCallbackin interface- IsDefaultBaseAnimation
- Returns:
- the callback instance to use
 
 - 
setDurationpublic void setDuration(DurationCallback durationCallback) Description copied from interface:IsAnimationSets the number of milliseconds an animation takes by a callback.- Specified by:
- setDurationin interface- IsAnimation
- Parameters:
- durationCallback- the callback instance to use
 
 - 
setDelaypublic void setDelay(DelayCallback delayCallback) Description copied from interface:IsAnimationSets the delay before starting the animations by a callback.- Specified by:
- setDelayin interface- IsAnimation
- Parameters:
- delayCallback- the callback instance to use
 
 - 
setLooppublic void setLoop(LoopCallback loopCallback) Description copied from interface:IsAnimationSets to loop the animations endlessly by a callback.- Specified by:
- setLoopin interface- IsAnimation
- Parameters:
- loopCallback- the callback instance to use
 
 - 
setEasingpublic void setEasing(EasingCallback easingCallback) Description copied from interface:IsAnimationSets the animation easing by a callback.- Specified by:
- setEasingin interface- IsAnimation
- Parameters:
- easingCallback- the callback instance to use
 
 - 
setDurationpublic void setDuration(NativeCallback durationCallback) Description copied from interface:IsAnimationSets the number of milliseconds an animation takes by a callback.- Specified by:
- setDurationin interface- IsAnimation
- Parameters:
- durationCallback- the callback instance to use
 
 - 
setDelaypublic void setDelay(NativeCallback delayCallback) Description copied from interface:IsAnimationSets the delay before starting the animations by a callback.- Specified by:
- setDelayin interface- IsAnimation
- Parameters:
- delayCallback- the callback instance to use
 
 - 
setLooppublic void setLoop(NativeCallback loopCallback) Description copied from interface:IsAnimationSets to loop the animations endlessly by a callback.- Specified by:
- setLoopin interface- IsAnimation
- Parameters:
- loopCallback- the callback instance to use
 
 - 
setEasingpublic void setEasing(NativeCallback easingCallback) Description copied from interface:IsAnimationSets the animation easing by a callback.- Specified by:
- setEasingin interface- IsAnimation
- Parameters:
- easingCallback- the callback instance to use
 
 - 
setEnabledpublic void setEnabled(Key collection, boolean enabled) Enables or disables an animation collection instance in the animation options.- Specified by:
- setEnabledin interface- IsAnimations
- Parameters:
- collection- collection instance used to check in the animation options
- enabled- if- trueit enables an animation collection
 
 - 
isEnabledpublic boolean isEnabled(Key collection) Returnstrueif the animation collection is enabled, otherwisefalse.- Specified by:
- isEnabledin interface- IsAnimations
- Parameters:
- collection- collection instance used to check in the animation options
- Returns:
- trueif the animation collection is enabled, otherwise- false
 
 - 
containspublic boolean contains(Key collection) Returnstrueif an animation collection instance is stored in the animation options.- Specified by:
- containsin interface- IsDefaultAnimations
- Parameters:
- collection- collection instance used to check in the animation options
- Returns:
- trueif an animation collection instance is stored in the animation options
 
 - 
getpublic AnimationCollection get(Key collection) Returns an animation collection instance if stored in the animation options.- Specified by:
- getin interface- IsAnimations
- Specified by:
- getin interface- IsDefaultAnimations
- Parameters:
- collection- collection instance used to get for animation options
- Returns:
- an animation collection instance or nullif does not exists
 
 - 
setpublic void set(Key collection, AnimationCollection animationCollection) Sets an animation collection instance to store in the animation options.- Specified by:
- setin interface- IsAnimations
- Parameters:
- collection- collection instance used to get for animation options
- animationCollection- an animation collection instance to set
 
 - 
createpublic AnimationCollection create(Key collection) Creates an animation collection instance and stores in the animation options.- Specified by:
- createin interface- IsAnimations
- Parameters:
- collection- collection key used to create the animation collections
- Returns:
- a collection animation options
 
 - 
deletepublic void delete(Key collection) Removes an animation collection previously added.- Specified by:
- deletein interface- IsAnimations
- Parameters:
- collection- collection instance used to remove from animation options
 
 
- 
 
-