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, mTripCount
mAccumulating, 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, update
elapse, getData, getElapsedTime, getLifespan, getListener, getStartDelay, getTarget, isAccumulating, isRunning, setAccumulating, setData, setElapsedTime, setLifespan, setListener, setStartDelay, setTarget, start, stop
public 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 Reusable
reset
in class BaseAnimator
public 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)
BaseAnimator
startElapse
in class TweenAnimator
public void start(float src, float dst)
public void start(float dest)
protected void onUpdate(float value)
onUpdate
in class TweenAnimator
public float getDelta()