public class TweenAnimator extends BaseAnimator
Animator.AnimatorListener
Modifier and Type | Field and Description |
---|---|
protected float |
mCurrentUninterpolatedValue |
protected float |
mCurrentValue |
protected int |
mDuration |
protected Interpolator |
mInterpolator |
protected float |
mLastValue |
protected int |
mLoopCount |
protected int |
mLoopMode |
protected boolean |
mReversed |
protected int |
mTripCount |
mAccumulating, mData, mElapsedTime, mLastDeltaTime, mLifeEnded, mLifespan, mListener, mRunning, mStartDelay, mTarget
Constructor and Description |
---|
TweenAnimator() |
TweenAnimator(Interpolator interpolator) |
Modifier and Type | Method and Description |
---|---|
void |
end() |
float |
getCurrentValue() |
int |
getDuration() |
Interpolator |
getInterpolator() |
int |
getLoop() |
int |
getLoopCount() |
boolean |
isReversed() |
protected void |
onLoop() |
protected void |
onUpdate(float value) |
void |
setDuration(int duration) |
void |
setInterpolator(Interpolator interpolator) |
void |
setLoop(int loop) |
void |
setLoopCount(int value) |
void |
setReversed(boolean reversed)
To explicitly play in reversed direction
|
void |
startElapse(int elapsedTime)
Start with a specific elapsed time
|
boolean |
update(int deltaTime) |
elapse, getData, getElapsedTime, getLifespan, getListener, getStartDelay, getTarget, isAccumulating, isRunning, reset, setAccumulating, setData, setElapsedTime, setLifespan, setListener, setStartDelay, setTarget, start, stop
protected int mDuration
protected Interpolator mInterpolator
protected float mLastValue
protected float mCurrentValue
protected float mCurrentUninterpolatedValue
protected boolean mReversed
protected int mLoopMode
protected int mLoopCount
protected int mTripCount
public TweenAnimator()
public TweenAnimator(Interpolator interpolator)
public void startElapse(int elapsedTime)
BaseAnimator
startElapse
in class BaseAnimator
public boolean update(int deltaTime)
update
in interface Manipulator
update
in class BaseAnimator
public void end()
end
in interface Animator
end
in class BaseAnimator
public int getDuration()
public void setDuration(int duration)
duration
- the duration to setpublic boolean isReversed()
public void setReversed(boolean reversed)
reversed
- public Interpolator getInterpolator()
public void setInterpolator(Interpolator interpolator)
interpolator
- the interpolator to setpublic int getLoop()
public void setLoop(int loop)
loop
- the looping mode to setpublic int getLoopCount()
public void setLoopCount(int value)
public float getCurrentValue()
protected void onUpdate(float value)
protected void onLoop()