public class RotateAnimator extends TweenAnimator
Animator.AnimatorListener| Modifier and Type | Field and Description |
|---|---|
protected float |
mDelta |
protected float |
mDst |
protected float |
mLastX |
protected float |
mLastY |
protected float |
mPivotX |
protected float |
mPivotY |
protected float |
mRadius |
protected float |
mSrc |
static int |
PIVOT_CLEAR |
mCurrentUninterpolatedValue, mCurrentValue, mDuration, mInterpolator, mLastValue, mLoopCount, mLoopMode, mReversed, mTripCountmAccumulating, mData, mElapsedTime, mLastDeltaTime, mLifeEnded, mLifespan, mListener, mRunning, mStartDelay, mTarget| Constructor and Description |
|---|
RotateAnimator(Interpolator interpolator) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearPivot()
Unset the pivot.
|
float |
getDelta() |
boolean |
hasPivot() |
protected void |
onUpdate(float value) |
void |
reset(java.lang.Object... params) |
void |
setDelta(float delta) |
void |
setPivot(float x,
float y,
float radius)
The center of the rotation.
|
void |
setValues(float src,
float dst) |
void |
start(float dest) |
void |
start(float src,
float dst) |
void |
startElapse(int elapsedTime)
Start with a specific elapsed time
|
end, getCurrentValue, getDuration, getInterpolator, getLoop, getLoopCount, isReversed, onLoop, setDuration, setInterpolator, setLoop, setLoopCount, setReversed, updateelapse, getData, getElapsedTime, getLifespan, getListener, getStartDelay, getTarget, isAccumulating, isRunning, setAccumulating, setData, setElapsedTime, setLifespan, setListener, setStartDelay, setTarget, start, stoppublic static final int PIVOT_CLEAR
protected float mSrc
protected float mDst
protected float mDelta
protected float mPivotX
protected float mPivotY
protected float mLastX
protected float mLastY
protected float mRadius
public void reset(java.lang.Object... params)
reset in interface Reusablereset in class BaseAnimatorpublic void setValues(float src,
float dst)
public void setDelta(float delta)
public void setPivot(float x,
float y,
float radius)
x - y - clearPivot()public void clearPivot()
public boolean hasPivot()
public void startElapse(int elapsedTime)
BaseAnimatorstartElapse in class TweenAnimatorpublic void start(float src,
float dst)
public void start(float dest)
protected void onUpdate(float value)
onUpdate in class TweenAnimatorpublic float getDelta()