Class Transitions
- java.lang.Object
-
- org.pepstock.charba.client.configuration.Transitions
-
- All Implemented Interfaces:
IsDefaultTransitions,IsTransitions
public class Transitions extends Object implements IsTransitions
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 animation properties for a specific update mode (transition).- 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.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.
-
-
-
Method Detail
-
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
-
-