public class ChartAnimator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected float |
mPhaseX
The phase of drawn values on the x-axis.
|
protected float |
mPhaseY
The phase of drawn values on the y-axis.
|
| Constructor and Description |
|---|
ChartAnimator() |
ChartAnimator(android.animation.ValueAnimator.AnimatorUpdateListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
animateX(int durationMillis)
Animates values along the X axis, in a linear fashion.
|
void |
animateX(int durationMillis,
Easing.EasingFunction easing)
Animates values along the X axis.
|
void |
animateX(int durationMillis,
Easing.EasingOption easing)
Deprecated.
Use
#animateX(int, EasingFunction) |
void |
animateXY(int durationMillisX,
int durationMillisY)
Animates values along both the X and Y axes, in a linear fashion.
|
void |
animateXY(int durationMillisX,
int durationMillisY,
Easing.EasingFunction easing)
Animates values along both the X and Y axes.
|
void |
animateXY(int durationMillisX,
int durationMillisY,
Easing.EasingFunction easingX,
Easing.EasingFunction easingY)
Animates values along both the X and Y axes.
|
void |
animateXY(int durationMillisX,
int durationMillisY,
Easing.EasingOption easingX,
Easing.EasingOption easingY)
Deprecated.
Use
#animateXY(int, int, EasingFunction, EasingFunction) |
void |
animateY(int durationMillis)
Animates values along the Y axis, in a linear fashion.
|
void |
animateY(int durationMillis,
Easing.EasingFunction easing)
Animates values along the Y axis.
|
void |
animateY(int durationMillis,
Easing.EasingOption easing)
Deprecated.
Use
#animateY(int, EasingFunction) |
float |
getPhaseX()
Gets the X axis phase of the animation.
|
float |
getPhaseY()
Gets the Y axis phase of the animation.
|
void |
setPhaseX(float phase)
Sets the X axis phase of the animation.
|
void |
setPhaseY(float phase)
Sets the Y axis phase of the animation.
|
protected float mPhaseY
protected float mPhaseX
public ChartAnimator()
public ChartAnimator(android.animation.ValueAnimator.AnimatorUpdateListener listener)
public void animateX(int durationMillis)
durationMillis - animation durationpublic void animateX(int durationMillis,
Easing.EasingFunction easing)
durationMillis - animation durationeasing - EasingFunctionpublic void animateXY(int durationMillisX,
int durationMillisY)
durationMillisX - animation duration along the X axisdurationMillisY - animation duration along the Y axispublic void animateXY(int durationMillisX,
int durationMillisY,
Easing.EasingFunction easing)
durationMillisX - animation duration along the X axisdurationMillisY - animation duration along the Y axiseasing - EasingFunction for both axespublic void animateXY(int durationMillisX,
int durationMillisY,
Easing.EasingFunction easingX,
Easing.EasingFunction easingY)
durationMillisX - animation duration along the X axisdurationMillisY - animation duration along the Y axiseasingX - EasingFunction for the X axiseasingY - EasingFunction for the Y axispublic void animateY(int durationMillis)
durationMillis - animation durationpublic void animateY(int durationMillis,
Easing.EasingFunction easing)
durationMillis - animation durationeasing - EasingFunction@Deprecated
public void animateXY(int durationMillisX,
int durationMillisY,
Easing.EasingOption easingX,
Easing.EasingOption easingY)
#animateXY(int, int, EasingFunction, EasingFunction)durationMillisX - animation duration along the X axisdurationMillisY - animation duration along the Y axiseasingX - EasingFunction for the X axiseasingY - EasingFunction for the Y axis#animateXY(int, int, EasingFunction, EasingFunction)@Deprecated
public void animateX(int durationMillis,
Easing.EasingOption easing)
#animateX(int, EasingFunction)durationMillis - animation durationeasing - EasingFunction#animateX(int, EasingFunction)@Deprecated
public void animateY(int durationMillis,
Easing.EasingOption easing)
#animateY(int, EasingFunction)durationMillis - animation durationeasing - EasingFunction#animateY(int, EasingFunction)public float getPhaseY()
mPhaseYpublic void setPhaseY(float phase)
phase - float value between 0 - 1public float getPhaseX()
mPhaseXpublic void setPhaseX(float phase)
phase - float value between 0 - 1