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 Activeprotected Integerprotected Easingprotected JavaScriptFunctionprotected JavaScriptFunctionprotected Resize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Tself()setDuration(Integer duration) Default1000DefaultEasing.EASE_OUT_QUARTsetOnComplete(JavaScriptFunction onComplete) DefaultnonesetOnProgress(JavaScriptFunction onProgress) Defaultnonevoid
-
Field Details
-
duration
-
easing
-
active
-
resize
-
onProgress
-
onComplete
-
-
Constructor Details
-
Animation
public Animation()
-
-
Method Details
-
getDuration
- Returns:
- duration as
Integerornull - See Also:
-
setDuration
Default
1000The number of milliseconds an animation takes.
-
getEasing
- Returns:
Easingornull- See Also:
-
setEasing
Default
Easing.EASE_OUT_QUARTEasing function to use.
Easing functions adapted from Robert Penner's easing equations http://www.robertpenner.com/easing/
-
getActive
-
setActive
-
getResize
-
setResize
-
getOnProgress
- Returns:
JavaScriptFunctionornull- See Also:
-
setOnProgress
Default
noneCallback 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:
JavaScriptFunctionornull- See Also:
-
setOnComplete
Default
noneCallback called at the end of an animation. Passed the same arguments as onProgress
-
self
-