public class Transition
extends java.lang.Object
| Constructor and Description |
|---|
Transition(android.graphics.RectF srcRect,
android.graphics.RectF dstRect,
long duration,
android.view.animation.Interpolator interpolator) |
| Modifier and Type | Method and Description |
|---|---|
android.graphics.RectF |
getDestinyRect()
Gets the rect that will take the scene when a Ken Burns transition ends.
|
long |
getDuration()
Gets the duration of this transition.
|
android.graphics.RectF |
getInterpolatedRect(long elapsedTime)
Gets the current rect that represents the part of the image to take the scene
in the current frame.
|
android.graphics.RectF |
getSourceRect()
Gets the rect that will take the scene when a Ken Burns transition starts.
|
public Transition(android.graphics.RectF srcRect,
android.graphics.RectF dstRect,
long duration,
android.view.animation.Interpolator interpolator)
public android.graphics.RectF getSourceRect()
public android.graphics.RectF getDestinyRect()
public android.graphics.RectF getInterpolatedRect(long elapsedTime)
elapsedTime - the elapsed time since this transition started.public long getDuration()