Class DefaultAnimation
- java.lang.Object
-
- org.pepstock.charba.client.defaults.globals.DefaultAnimation
-
- All Implemented Interfaces:
IsDefaultAnimation,IsDefaultBaseAnimation
public class DefaultAnimation extends Object implements IsDefaultAnimation
CHART.JS default values for ANIMATION element.- Author:
- Andrea "Stock" Stocchero
-
-
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.LoopCallbackgetLoopCallback()Returns the callback to loop the animations endlessly.booleanisAnimateRotate()Iftrue, the chart will animate in with a rotation animation.booleanisAnimateScale()Iftrue, will animate scaling the chart from the center outwards.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
-
isAnimateRotate
public boolean isAnimateRotate()
Description copied from interface:IsDefaultAnimationIftrue, the chart will animate in with a rotation animation.- Specified by:
isAnimateRotatein interfaceIsDefaultAnimation- Returns:
- If
true, the chart will animate in with a rotation animation.
-
isAnimateScale
public boolean isAnimateScale()
Description copied from interface:IsDefaultAnimationIftrue, will animate scaling the chart from the center outwards.- Specified by:
isAnimateScalein interfaceIsDefaultAnimation- Returns:
- If
true, will animate scaling the chart from the center outwards.
-
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
-
-