public class ClipRectTBAnimation extends ClipRectAnimation
Animation.AnimationListener, Animation.Description
mFromRect, mToRect
ABSOLUTE, INFINITE, RELATIVE_TO_PARENT, RELATIVE_TO_SELF, RESTART, REVERSE, START_ON_FIRST_FRAME, ZORDER_BOTTOM, ZORDER_NORMAL, ZORDER_TOP
Constructor and Description |
---|
ClipRectTBAnimation(int fromT,
int fromB,
int toT,
int toB,
int fromTranslateY,
int toTranslateY,
Interpolator translateInterpolator)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyTransformation(float it,
Transformation tr)
Calculates and sets clip rect on given transformation.
|
boolean |
getTransformation(long currentTime,
Transformation outTransformation)
Gets the transformation to apply at a specified point in time.
|
willChangeTransformationMatrix
cancel, clone, computeDurationHint, detach, ensureInterpolator, finalize, getBackgroundColor, getDetachWallpaper, getDuration, getFillAfter, getFillBefore, getInterpolator, getInvalidateRegion, getRepeatCount, getRepeatMode, getScaleFactor, getStartOffset, getStartTime, getTransformation, getZAdjustment, hasAlpha, hasEnded, hasStarted, initialize, initializeInvalidateRegion, isFillEnabled, isInitialized, reset, resolveSize, restrictDuration, scaleCurrentDuration, setAnimationListener, setBackgroundColor, setDetachWallpaper, setDuration, setFillAfter, setFillBefore, setFillEnabled, setInterpolator, setInterpolator, setListenerHandler, setRepeatCount, setRepeatMode, setStartOffset, setStartTime, setZAdjustment, start, startNow, willChangeBounds
public ClipRectTBAnimation(int fromT, int fromB, int toT, int toB, int fromTranslateY, int toTranslateY, Interpolator translateInterpolator)
public boolean getTransformation(long currentTime, Transformation outTransformation)
Animation
getTransformation
in class Animation
currentTime
- Where we are in the animation. This is wall clock time.outTransformation
- A transformation object that is provided by the
caller and will be filled in by the animation.protected void applyTransformation(float it, Transformation tr)
applyTransformation
in class ClipRectAnimation
it
- The value of the normalized time (0.0 to 1.0)
after it has been run through the interpolation function.tr
- The Transformation object to fill in with the current
transforms.