Class DefaultAnimationCollection
- java.lang.Object
-
- org.pepstock.charba.client.defaults.globals.DefaultAnimationCollection
-
- All Implemented Interfaces:
IsDefaultAnimationCollection,IsDefaultBaseAnimation
public class DefaultAnimationCollection extends Object implements IsDefaultAnimationCollection
CHART.JS default values for animation collection.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description DefaultAnimationCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDelay()Returns the delay before starting the animations.DelayCallbackgetDelayCallback()Returns the callback to set the delay before starting the animations.intgetDuration()Returns the number of milliseconds an animation takes.DurationCallbackgetDurationCallback()Returns the callback to set the number of milliseconds an animation takes.EasinggetEasing()Returns the animation easing.EasingCallbackgetEasingCallback()Returns the callback to set the animation easing.doublegetFrom()Returns the start value for the animation as number.booleangetFromAsBoolean()Returns the start value for the animation as boolean.StringgetFromAsString()Returns the start value for the animation as color string.FromCallbackgetFromCallback()Returns the callback to set the start value for the animation.LoopCallbackgetLoopCallback()Returns the callback to loop the animations endlessly.List<Key>getProperties()Returns the properties defined in the animation collection.doublegetTo()Returns the end value for the animation as number.booleangetToAsBoolean()Returns the end value for the animation as boolean.StringgetToAsString()Returns the end value for the animation as color string.ToCallbackgetToCallback()Returns the callback to set the end value for the animation.AnimationTypegetType()Returns the type offromproperty and determines the interpolator used.booleanisLoop()If set totrue, loops the animations endlessly.-
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.defaults.IsDefaultBaseAnimation
getDelay, getDelayCallback, getDuration, getDurationCallback, getEasing, getEasingCallback, getLoopCallback, isLoop
-
-
-
-
Method Detail
-
getProperties
public List<Key> getProperties()
Description copied from interface:IsDefaultAnimationCollectionReturns the properties defined in the animation collection.- Specified by:
getPropertiesin interfaceIsDefaultAnimationCollection- Returns:
- the properties defined in the animation collection
-
getType
public AnimationType getType()
Description copied from interface:IsDefaultAnimationCollectionReturns the type offromproperty and determines the interpolator used.- Specified by:
getTypein interfaceIsDefaultAnimationCollection- Returns:
- the type of
fromproperty and determines the interpolator used.
-
getFrom
public double getFrom()
Description copied from interface:IsDefaultAnimationCollectionReturns the start value for the animation as number.- Specified by:
getFromin interfaceIsDefaultAnimationCollection- Returns:
- the start value for the animation as number.
-
getFromAsBoolean
public boolean getFromAsBoolean()
Description copied from interface:IsDefaultAnimationCollectionReturns the start value for the animation as boolean.- Specified by:
getFromAsBooleanin interfaceIsDefaultAnimationCollection- Returns:
- the start value for the animation as boolean.
-
getFromAsString
public String getFromAsString()
Description copied from interface:IsDefaultAnimationCollectionReturns the start value for the animation as color string.- Specified by:
getFromAsStringin interfaceIsDefaultAnimationCollection- Returns:
- the start value for the animation as color string.
-
getTo
public double getTo()
Description copied from interface:IsDefaultAnimationCollectionReturns the end value for the animation as number.- Specified by:
getToin interfaceIsDefaultAnimationCollection- Returns:
- the end value for the animation as number.
-
getToAsBoolean
public boolean getToAsBoolean()
Description copied from interface:IsDefaultAnimationCollectionReturns the end value for the animation as boolean.- Specified by:
getToAsBooleanin interfaceIsDefaultAnimationCollection- Returns:
- the end value for the animation as boolean.
-
getToAsString
public String getToAsString()
Description copied from interface:IsDefaultAnimationCollectionReturns the end value for the animation as color string.- Specified by:
getToAsStringin interfaceIsDefaultAnimationCollection- Returns:
- the end value for the animation as color string.
-
getFromCallback
public FromCallback getFromCallback()
Description copied from interface:IsDefaultAnimationCollectionReturns the callback to set the start value for the animation.- Specified by:
getFromCallbackin interfaceIsDefaultAnimationCollection- Returns:
- the callback instance to use to set the start value for the animation
-
getToCallback
public ToCallback getToCallback()
Description copied from interface:IsDefaultAnimationCollectionReturns the callback to set the end value for the animation.- Specified by:
getToCallbackin interfaceIsDefaultAnimationCollection- Returns:
- the callback instance to use to set the end value for the animation
-
getEasing
public Easing getEasing()
Description copied from interface:IsDefaultBaseAnimationReturns the animation easing.- Specified by:
getEasingin interfaceIsDefaultBaseAnimation- Returns:
- animation easing.
-
getDuration
public int getDuration()
Description copied from interface:IsDefaultBaseAnimationReturns the number of milliseconds an animation takes.- Specified by:
getDurationin interfaceIsDefaultBaseAnimation- Returns:
- the number of milliseconds an animation takes.
-
getDelay
public int getDelay()
Description copied from interface:IsDefaultBaseAnimationReturns the delay before starting the animations.- Specified by:
getDelayin interfaceIsDefaultBaseAnimation- Returns:
- the delay before starting the animations
-
isLoop
public boolean isLoop()
Description copied from interface:IsDefaultBaseAnimationIf set totrue, loops the animations endlessly.- Specified by:
isLoopin interfaceIsDefaultBaseAnimation- Returns:
trueif loops the animations endlessly.
-
getDurationCallback
public DurationCallback getDurationCallback()
Description copied from interface:IsDefaultBaseAnimationReturns the callback to set the number of milliseconds an animation takes.- Specified by:
getDurationCallbackin interfaceIsDefaultBaseAnimation- Returns:
- the callback instance to use
-
getDelayCallback
public DelayCallback getDelayCallback()
Description copied from interface:IsDefaultBaseAnimationReturns the callback to set the delay before starting the animations.- Specified by:
getDelayCallbackin interfaceIsDefaultBaseAnimation- Returns:
- the callback instance to use
-
getLoopCallback
public LoopCallback getLoopCallback()
Description copied from interface:IsDefaultBaseAnimationReturns the callback to loop the animations endlessly.- Specified by:
getLoopCallbackin interfaceIsDefaultBaseAnimation- Returns:
- the callback instance to use
-
getEasingCallback
public EasingCallback getEasingCallback()
Description copied from interface:IsDefaultBaseAnimationReturns the callback to set the animation easing.- Specified by:
getEasingCallbackin interfaceIsDefaultBaseAnimation- Returns:
- the callback instance to use
-
-