Class Transitions
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.commons.AbstractNode
- 
- org.pepstock.charba.client.options.Transitions
 
 
 
- 
- All Implemented Interfaces:
- HasCallbackScope,- IsDefaultTransitions,- IsTransitions
 
 public final class Transitions extends AbstractNode implements IsTransitions, HasCallbackScope It animates charts out of the box.
 A number of options are provided to configure how the animation looks and how long it takes.
 This configuration item is configuring the common transitions properties, TRANSITIONS name space.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description AnimationTransitioncreate(TransitionKey transition)Creates an animation transition instance and stores in the animation options.AnimationTransitionget(TransitionKey transition)Returns an animation transition instance if stored in the animation options.StringgetScope()Returns the scope of the options, which is the options are used for defaults, chart defaults or chart.booleanhas(TransitionKey transition)Returnstrueif an animation transition instance is stored in the animation options.voidremove(TransitionKey transition)Removes an animation transition previously added.voidset(TransitionKey transition, AnimationTransition animationTransition)Sets an animation transition instance to store in the animation options.- 
Methods inherited from class org.pepstock.charba.client.commons.AbstractNodecheckAndAddToParent, getChildKey, getParentNode, getRootNode, getUpdateListener, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setUpdateListener, setValueAndAddToParent, 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, setValueOrArrayAndAddToParent
 - 
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, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 
- 
 
- 
- 
- 
Method Detail- 
getScopepublic String getScope() Description copied from interface:HasCallbackScopeReturns the scope of the options, which is the options are used for defaults, chart defaults or chart.- Specified by:
- getScopein interface- HasCallbackScope
- Returns:
- the scope of the options
 
 - 
haspublic boolean has(TransitionKey transition) Returnstrueif an animation transition instance is stored in the animation options.- Specified by:
- hasin interface- IsDefaultTransitions
- Parameters:
- transition- transition instance used to check in the animation options
- Returns:
- trueif an animation transition instance is stored in the animation options
 
 - 
getpublic AnimationTransition get(TransitionKey transition) Returns an animation transition instance if stored in the animation options.- Specified by:
- getin interface- IsDefaultTransitions
- Specified by:
- getin interface- IsTransitions
- Parameters:
- transition- transition instance used to get for animation options
- Returns:
- an animation transition instance or nullif does not exists
 
 - 
setpublic void set(TransitionKey transition, AnimationTransition animationTransition) Sets an animation transition instance to store in the animation options.- Specified by:
- setin interface- IsTransitions
- Parameters:
- transition- transition instance used to get for animation options
- animationTransition- an animation transition instance to set
 
 - 
createpublic AnimationTransition create(TransitionKey transition) Creates an animation transition instance and stores in the animation options.- Specified by:
- createin interface- IsTransitions
- Parameters:
- transition- transition key used to create the animation transitions
- Returns:
- a transition animation options
 
 - 
removepublic void remove(TransitionKey transition) Removes an animation transition previously added.- Specified by:
- removein interface- IsTransitions
- Parameters:
- transition- transition instance used to remove from animation options
 
 
- 
 
-