public class PathAnimator extends TweenAnimator
Animator.AnimatorListener| Modifier and Type | Field and Description |
|---|---|
protected int |
mCurrentSegment |
protected float[] |
mDx |
protected float[] |
mDy |
protected int |
mNumSegments |
protected PointF[] |
mPoints |
protected float[] |
mSegments |
protected boolean |
mSnapEnabled |
protected float |
mTotalLength |
protected PointF |
mVelocity |
mCurrentUninterpolatedValue, mCurrentValue, mDuration, mInterpolator, mLastValue, mLoopCount, mLoopMode, mReversed, mTripCountmAccumulating, mData, mElapsedTime, mLastDeltaTime, mLifeEnded, mLifespan, mListener, mRunning, mStartDelay, mTarget| Constructor and Description |
|---|
PathAnimator(Interpolator interpolator) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
int |
getCurrentSegment() |
PointF[] |
getPoints() |
protected int |
getSegment(float value) |
float |
getTotalLength() |
PointF |
getVelocity() |
boolean |
isSnapEnabled() |
protected void |
onLoop() |
protected void |
onUpdate(float value) |
void |
setSnapEnabled(boolean snapEnabled) |
void |
setValues(int limit,
PointF... points) |
void |
setValues(PointF... points) |
void |
start(PointF... points) |
void |
startElapse(int elapsedTime)
Start with a specific elapsed time
|
end, getCurrentValue, getDuration, getInterpolator, getLoop, getLoopCount, isReversed, setDuration, setInterpolator, setLoop, setLoopCount, setReversed, updateelapse, getData, getElapsedTime, getLifespan, getListener, getStartDelay, getTarget, isAccumulating, isRunning, reset, setAccumulating, setData, setElapsedTime, setLifespan, setListener, setStartDelay, setTarget, start, stopprotected PointF[] mPoints
protected float[] mDx
protected float[] mDy
protected float[] mSegments
protected float mTotalLength
protected final PointF mVelocity
protected int mCurrentSegment
protected boolean mSnapEnabled
protected int mNumSegments
public void setValues(PointF... points)
public void setValues(int limit,
PointF... points)
public void startElapse(int elapsedTime)
BaseAnimatorstartElapse in class TweenAnimatorpublic void start(PointF... points)
protected void onUpdate(float value)
onUpdate in class TweenAnimatorprotected int getSegment(float value)
public PointF[] getPoints()
public PointF getVelocity()
public int getCurrentSegment()
public boolean isSnapEnabled()
public void setSnapEnabled(boolean snapEnabled)
public float getTotalLength()
protected void onLoop()
onLoop in class TweenAnimatorpublic void dispose()