public class BaseAnimator extends java.lang.Object implements Animator
Animator.AnimatorListener
Modifier and Type | Field and Description |
---|---|
protected boolean |
mAccumulating |
protected java.lang.Object |
mData |
protected int |
mElapsedTime |
protected int |
mLastDeltaTime |
protected boolean |
mLifeEnded |
protected int |
mLifespan |
protected Animator.AnimatorListener |
mListener |
protected boolean |
mRunning |
protected int |
mStartDelay |
protected Manipulatable |
mTarget |
Constructor and Description |
---|
BaseAnimator() |
Modifier and Type | Method and Description |
---|---|
void |
elapse(int elapsedTimeDelta)
Jump to some elapsed time
|
void |
end() |
java.lang.Object |
getData() |
int |
getElapsedTime() |
int |
getLifespan() |
Animator.AnimatorListener |
getListener() |
int |
getStartDelay() |
Manipulatable |
getTarget() |
boolean |
isAccumulating() |
boolean |
isRunning() |
void |
reset(java.lang.Object... params) |
void |
setAccumulating(boolean accumulating) |
void |
setData(java.lang.Object data) |
void |
setElapsedTime(int elapsedTimeAt)
Jump to some elapsed time
|
void |
setLifespan(int lifespan) |
void |
setListener(Animator.AnimatorListener listener) |
void |
setStartDelay(int startDelay) |
void |
setTarget(Manipulatable target) |
void |
start() |
void |
startElapse(int elapsedTime)
Start with a specific elapsed time
|
void |
stop() |
boolean |
update(int deltaTime) |
protected Manipulatable mTarget
protected Animator.AnimatorListener mListener
protected java.lang.Object mData
protected boolean mAccumulating
protected int mStartDelay
protected int mLifespan
protected int mElapsedTime
protected int mLastDeltaTime
protected boolean mRunning
protected boolean mLifeEnded
public void setTarget(Manipulatable target)
setTarget
in interface Manipulator
public Manipulatable getTarget()
getTarget
in interface Manipulator
public int getStartDelay()
getStartDelay
in interface Animator
public void setStartDelay(int startDelay)
setStartDelay
in interface Animator
public boolean update(int deltaTime)
update
in interface Manipulator
public void startElapse(int elapsedTime)
elapsedTime
- public void elapse(int elapsedTimeDelta)
elapsedTimeDelta
- public void setElapsedTime(int elapsedTimeAt)
elapsedTimeAt
- public int getElapsedTime()
public int getLifespan()
getLifespan
in interface Animator
public void setLifespan(int lifespan)
setLifespan
in interface Animator
public boolean isAccumulating()
isAccumulating
in interface Animator
public void setAccumulating(boolean accumulating)
setAccumulating
in interface Animator
public void setListener(Animator.AnimatorListener listener)
setListener
in interface Animator
public Animator.AnimatorListener getListener()
getListener
in interface Animator