-
public class ChartAnimatorObject responsible for all animations in the Chart. Animations require API level 11.
-
-
Constructor Summary
Constructors Constructor Description ChartAnimator()ChartAnimator(ValueAnimator.AnimatorUpdateListener listener)
-
Method Summary
Modifier and Type Method Description voidanimateX(int durationMillis)Animates values along the X axis, in a linear fashion. voidanimateX(int durationMillis, Easing.EasingFunction easing)Animates values along the X axis. voidanimateXY(int durationMillisX, int durationMillisY)Animates values along both the X and Y axes, in a linear fashion. voidanimateXY(int durationMillisX, int durationMillisY, Easing.EasingFunction easing)Animates values along both the X and Y axes. voidanimateXY(int durationMillisX, int durationMillisY, Easing.EasingFunction easingX, Easing.EasingFunction easingY)Animates values along both the X and Y axes. voidanimateY(int durationMillis)Animates values along the Y axis, in a linear fashion. voidanimateY(int durationMillis, Easing.EasingFunction easing)Animates values along the Y axis. floatgetPhaseY()Gets the Y axis phase of the animation. voidsetPhaseY(float phase)Sets the Y axis phase of the animation. floatgetPhaseX()Gets the X axis phase of the animation. voidsetPhaseX(float phase)Sets the X axis phase of the animation. -
-
Constructor Detail
-
ChartAnimator
ChartAnimator()
-
ChartAnimator
ChartAnimator(ValueAnimator.AnimatorUpdateListener listener)
-
-
Method Detail
-
animateX
@RequiresApi(value = 11) void animateX(int durationMillis)
Animates values along the X axis, in a linear fashion.
- Parameters:
durationMillis- animation duration
-
animateX
@RequiresApi(value = 11) void animateX(int durationMillis, Easing.EasingFunction easing)
Animates values along the X axis.
- Parameters:
durationMillis- animation durationeasing- EasingFunction
-
animateXY
@RequiresApi(value = 11) void animateXY(int durationMillisX, int durationMillisY)
Animates values along both the X and Y axes, in a linear fashion.
- Parameters:
durationMillisX- animation duration along the X axisdurationMillisY- animation duration along the Y axis
-
animateXY
@RequiresApi(value = 11) void animateXY(int durationMillisX, int durationMillisY, Easing.EasingFunction easing)
Animates values along both the X and Y axes.
- Parameters:
durationMillisX- animation duration along the X axisdurationMillisY- animation duration along the Y axiseasing- EasingFunction for both axes
-
animateXY
@RequiresApi(value = 11) void animateXY(int durationMillisX, int durationMillisY, Easing.EasingFunction easingX, Easing.EasingFunction easingY)
Animates values along both the X and Y axes.
- Parameters:
durationMillisX- animation duration along the X axisdurationMillisY- animation duration along the Y axiseasingX- EasingFunction for the X axiseasingY- EasingFunction for the Y axis
-
animateY
@RequiresApi(value = 11) void animateY(int durationMillis)
Animates values along the Y axis, in a linear fashion.
- Parameters:
durationMillis- animation duration
-
animateY
@RequiresApi(value = 11) void animateY(int durationMillis, Easing.EasingFunction easing)
Animates values along the Y axis.
- Parameters:
durationMillis- animation durationeasing- EasingFunction
-
getPhaseY
float getPhaseY()
Gets the Y axis phase of the animation.
-
setPhaseY
void setPhaseY(float phase)
Sets the Y axis phase of the animation.
- Parameters:
phase- float value between 0 - 1
-
getPhaseX
float getPhaseX()
Gets the X axis phase of the animation.
-
setPhaseX
void setPhaseX(float phase)
Sets the X axis phase of the animation.
- Parameters:
phase- float value between 0 - 1
-
-
-
-