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(TransitionMode transition)Creates an animation transition instance and stores in the animation options.AnimationTransitionget(TransitionMode 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(TransitionMode transition)Returnstrueif an animation transition instance is stored in the animation options.voidremove(TransitionMode transition)Removes an animation transition previously added.voidset(TransitionMode 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, 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, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkAndGetColor, 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
-
-
-
-
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(TransitionMode 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(TransitionMode 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(TransitionMode 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(TransitionMode 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(TransitionMode transition)
Removes an animation transition previously added.- Specified by:
removein interfaceIsTransitions- Parameters:
transition- transition instance used to remove from animation options
-
-