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, startElapseprotected 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 Animatorstop in class BaseAnimatorpublic float getVelocity()
public void setVelocity(float velocity)
public float getAcceleration()
public void setAcceleration(float acceleration)
public void elapse(int elapsedTimeDelta)
BaseAnimatorelapse in class BaseAnimatorpublic int getDuration()
public int getRemainingTime()
public boolean update(int deltaTime)
update in interface Manipulatorupdate in class BaseAnimatorprotected void onUpdate(float value)