Class Animations
- java.lang.Object
-
- org.pepstock.charba.client.configuration.Animations
-
- All Implemented Interfaces:
IsDefaultAnimations,IsAnimations
public final class Animations extends Object implements IsAnimations
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 sets of element(like bar, point, arc and line) properties.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All 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.booleanisEnabled(Key collection)Returnstrueif the animation collection is enabled, otherwisefalse.voidset(Key collection, AnimationCollection animationCollection)Sets an animation collection instance to store in the animation options.voidsetEnabled(Key collection, boolean enabled)Enables or disables an animation collection instance in the animation options.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pepstock.charba.client.options.IsAnimations
create, delete, get, isEnabled, set, setEnabled
-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultAnimations
contains
-
-
-
-
Method Detail
-
setEnabled
public void setEnabled(Key collection, boolean enabled)
Enables or disables an animation collection instance in the animation options.- Specified by:
setEnabledin interfaceIsAnimations- Parameters:
collection- collection instance used to check in the animation optionsenabled- iftrueit enables an animation collection
-
isEnabled
public boolean isEnabled(Key collection)
Returnstrueif the animation collection is enabled, otherwisefalse.- Specified by:
isEnabledin interfaceIsAnimations- Parameters:
collection- collection instance used to check in the animation options- Returns:
trueif the animation collection is enabled, otherwisefalse
-
contains
public boolean contains(Key collection)
Returnstrueif an animation collection instance is stored in the animation options.- Specified by:
containsin interfaceIsDefaultAnimations- Parameters:
collection- collection instance used to check in the animation options- Returns:
trueif an animation collection instance is stored in the animation options
-
get
public AnimationCollection get(Key collection)
Returns an animation collection instance if stored in the animation options.- Specified by:
getin interfaceIsAnimations- Specified by:
getin interfaceIsDefaultAnimations- Parameters:
collection- collection instance used to get for animation options- Returns:
- an animation collection instance or
nullif does not exists
-
set
public void set(Key collection, AnimationCollection animationCollection)
Sets an animation collection instance to store in the animation options.- Specified by:
setin interfaceIsAnimations- Parameters:
collection- collection instance used to get for animation optionsanimationCollection- an animation collection instance to set
-
create
public AnimationCollection create(Key collection)
Creates an animation collection instance and stores in the animation options.- Specified by:
createin interfaceIsAnimations- Parameters:
collection- collection key used to create the animation collections- Returns:
- a collection animation options
-
delete
public void delete(Key collection)
Removes an animation collection previously added.- Specified by:
deletein interfaceIsAnimations- Parameters:
collection- collection instance used to remove from animation options
-
-