Interface HasAnimation
-
- All Known Implementing Classes:
BarChart,Chart,ChartWithAnimation,ChartWithScale,ChartWithTooltip,DoughnutChart,LineChart,PieChart,PolarAreaChart,RadarChart
public interface HasAnimationEnum contains types of easing of chart animation
-
-
Field Summary
Fields Modifier and Type Field Description static StringANIMATIONstatic StringANIMATION_EASINGstatic StringANIMATION_STEPS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAnimationCallback(AnimationCallback callback)Add animation callback to handle animation state changesvoidsetAnimationEnabled(boolean enabled)Specify should chart be animated or not Default value istruevoidsetAnimationSteps(int steps)Particularly specify quality of animation Default value is 60voidsetAnimationType(Type type)Specify animation easing Default value isType.EASE_OUT_QUART
-
-
-
Field Detail
-
ANIMATION
static final String ANIMATION
- See Also:
- Constant Field Values
-
ANIMATION_STEPS
static final String ANIMATION_STEPS
- See Also:
- Constant Field Values
-
ANIMATION_EASING
static final String ANIMATION_EASING
- See Also:
- Constant Field Values
-
-
Method Detail
-
setAnimationEnabled
void setAnimationEnabled(boolean enabled)
Specify should chart be animated or not Default value istrue- Parameters:
enabled-
-
setAnimationSteps
void setAnimationSteps(int steps)
Particularly specify quality of animation Default value is 60- Parameters:
steps-
-
setAnimationType
void setAnimationType(Type type)
Specify animation easing Default value isType.EASE_OUT_QUART- Parameters:
type-
-
addAnimationCallback
void addAnimationCallback(AnimationCallback callback)
Add animation callback to handle animation state changes- Parameters:
callback-
-
-