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 int
getDelay()
Returns the delay before starting the animations.DelayCallback
getDelayCallback()
Returns the callback to set the delay before starting the animations.int
getDuration()
Returns the number of milliseconds an animation takes.DurationCallback
getDurationCallback()
Returns the callback to set the number of milliseconds an animation takes.Easing
getEasing()
Returns the animation easing.EasingCallback
getEasingCallback()
Returns the callback to set the animation easing.LoopCallback
getLoopCallback()
Returns the callback to loop the animations endlessly.boolean
isAnimateRotate()
Iftrue
, the chart will animate in with a rotation animation.boolean
isAnimateScale()
Iftrue
, will animate scaling the chart from the center outwards.boolean
isLoop()
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:IsDefaultAnimation
Iftrue
, the chart will animate in with a rotation animation.- Specified by:
isAnimateRotate
in interfaceIsDefaultAnimation
- Returns:
- If
true
, the chart will animate in with a rotation animation.
-
isAnimateScale
public boolean isAnimateScale()
Description copied from interface:IsDefaultAnimation
Iftrue
, will animate scaling the chart from the center outwards.- Specified by:
isAnimateScale
in interfaceIsDefaultAnimation
- Returns:
- If
true
, will animate scaling the chart from the center outwards.
-
getEasing
public Easing getEasing()
Description copied from interface:IsDefaultBaseAnimation
Returns the animation easing.- Specified by:
getEasing
in interfaceIsDefaultBaseAnimation
- Returns:
- animation easing.
-
getDuration
public int getDuration()
Description copied from interface:IsDefaultBaseAnimation
Returns the number of milliseconds an animation takes.- Specified by:
getDuration
in interfaceIsDefaultBaseAnimation
- Returns:
- the number of milliseconds an animation takes.
-
getDelay
public int getDelay()
Description copied from interface:IsDefaultBaseAnimation
Returns the delay before starting the animations.- Specified by:
getDelay
in interfaceIsDefaultBaseAnimation
- Returns:
- the delay before starting the animations
-
isLoop
public boolean isLoop()
Description copied from interface:IsDefaultBaseAnimation
If set totrue
, loops the animations endlessly.- Specified by:
isLoop
in interfaceIsDefaultBaseAnimation
- Returns:
true
if loops the animations endlessly.
-
getDurationCallback
public DurationCallback getDurationCallback()
Description copied from interface:IsDefaultBaseAnimation
Returns the callback to set the number of milliseconds an animation takes.- Specified by:
getDurationCallback
in interfaceIsDefaultBaseAnimation
- Returns:
- the callback instance to use
-
getDelayCallback
public DelayCallback getDelayCallback()
Description copied from interface:IsDefaultBaseAnimation
Returns the callback to set the delay before starting the animations.- Specified by:
getDelayCallback
in interfaceIsDefaultBaseAnimation
- Returns:
- the callback instance to use
-
getLoopCallback
public LoopCallback getLoopCallback()
Description copied from interface:IsDefaultBaseAnimation
Returns the callback to loop the animations endlessly.- Specified by:
getLoopCallback
in interfaceIsDefaultBaseAnimation
- Returns:
- the callback instance to use
-
getEasingCallback
public EasingCallback getEasingCallback()
Description copied from interface:IsDefaultBaseAnimation
Returns the callback to set the animation easing.- Specified by:
getEasingCallback
in interfaceIsDefaultBaseAnimation
- Returns:
- the callback instance to use
-
-