Class Animation<T extends Animation<?>>
java.lang.Object
software.xdev.chartjs.model.options.animation.Animation<T>
- Direct Known Subclasses:
DefaultAnimation
,DoughnutAnimationBase
,PolarAnimation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Active
protected Integer
protected Easing
protected JavaScriptFunction
protected JavaScriptFunction
protected Resize
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected T
self()
setDuration
(Integer duration) Default1000
DefaultEasing.EASE_OUT_QUART
setOnComplete
(JavaScriptFunction onComplete) Defaultnone
setOnProgress
(JavaScriptFunction onProgress) Defaultnone
void
-
Field Details
-
duration
-
easing
-
active
-
resize
-
onProgress
-
onComplete
-
-
Constructor Details
-
Animation
public Animation()
-
-
Method Details
-
getDuration
- Returns:
- duration as
Integer
ornull
- See Also:
-
setDuration
Default
1000
The number of milliseconds an animation takes.
-
getEasing
- Returns:
Easing
ornull
- See Also:
-
setEasing
Default
Easing.EASE_OUT_QUART
Easing function to use.
Easing functions adapted from Robert Penner's easing equations http://www.robertpenner.com/easing/
-
getActive
-
setActive
-
getResize
-
setResize
-
getOnProgress
- Returns:
JavaScriptFunction
ornull
- See Also:
-
setOnProgress
Default
none
Callback called on each step of an animation. Passed a single argument, an object, containing the chart instance and an object with details of the animation.
-
getOnComplete
- Returns:
JavaScriptFunction
ornull
- See Also:
-
setOnComplete
Default
none
Callback called at the end of an animation. Passed the same arguments as onProgress
-
self
-