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 Summary
All 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.AbstractNode
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, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Method Detail
-
getScope
public 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 interfaceHasCallbackScope- Returns:
- the scope of the options
-
has
public boolean has(TransitionKey transition)
Returnstrueif an animation transition instance is stored in the animation options.- Specified by:
hasin interfaceIsDefaultTransitions- Parameters:
transition- transition instance used to check in the animation options- Returns:
trueif an animation transition instance is stored in the animation options
-
get
public AnimationTransition get(TransitionKey transition)
Returns an animation transition instance if stored in the animation options.- Specified by:
getin interfaceIsDefaultTransitions- Specified by:
getin interfaceIsTransitions- Parameters:
transition- transition instance used to get for animation options- Returns:
- an animation transition instance or
nullif does not exists
-
set
public void set(TransitionKey transition, AnimationTransition animationTransition)
Sets an animation transition instance to store in the animation options.- Specified by:
setin interfaceIsTransitions- Parameters:
transition- transition instance used to get for animation optionsanimationTransition- an animation transition instance to set
-
create
public AnimationTransition create(TransitionKey transition)
Creates an animation transition instance and stores in the animation options.- Specified by:
createin interfaceIsTransitions- Parameters:
transition- transition key used to create the animation transitions- Returns:
- a transition animation options
-
remove
public void remove(TransitionKey transition)
Removes an animation transition previously added.- Specified by:
removein interfaceIsTransitions- Parameters:
transition- transition instance used to remove from animation options
-
-