public class VelocityAnimator extends BaseAnimator
Animator.AnimatorListener
Modifier and Type | Field and Description |
---|---|
protected float |
mAcceleration |
protected int |
mPendingElapse |
protected float |
mVelocity |
mAccumulating, mData, mElapsedTime, mLastDeltaTime, mLifeEnded, mLifespan, mListener, mRunning, mStartDelay, mTarget
Constructor and Description |
---|
VelocityAnimator() |
VelocityAnimator(float veloc,
float acceleration,
int duration) |
Modifier and Type | Method and Description |
---|---|
void |
elapse(int elapsedTimeDelta)
Jump to some elapsed time
|
float |
getAcceleration() |
int |
getDuration() |
int |
getRemainingTime() |
float |
getVelocity() |
protected void |
onUpdate(float value) |
void |
setAcceleration(float acceleration) |
void |
setVelocity(float velocity) |
void |
start(float veloc,
float acceleration,
int duration) |
void |
stop() |
boolean |
update(int deltaTime) |
end, getData, getElapsedTime, getLifespan, getListener, getStartDelay, getTarget, isAccumulating, isRunning, reset, setAccumulating, setData, setElapsedTime, setLifespan, setListener, setStartDelay, setTarget, start, startElapse
protected float mAcceleration
protected float mVelocity
protected int mPendingElapse
public VelocityAnimator()
public VelocityAnimator(float veloc, float acceleration, int duration)
public void start(float veloc, float acceleration, int duration)
public void stop()
stop
in interface Animator
stop
in class BaseAnimator
public float getVelocity()
public void setVelocity(float velocity)
public float getAcceleration()
public void setAcceleration(float acceleration)
public void elapse(int elapsedTimeDelta)
BaseAnimator
elapse
in class BaseAnimator
public int getDuration()
public int getRemainingTime()
public boolean update(int deltaTime)
update
in interface Manipulator
update
in class BaseAnimator
protected void onUpdate(float value)