public class PathAnimation extends ControlAnimation
| Modifier and Type | Class and Description |
|---|---|
static interface |
PathAnimation.SetPosition |
ControlAnimation.AnimationFinished| Modifier and Type | Field and Description |
|---|---|
PathAnimation.SetPosition |
setpos |
c, delayAfterFinish, executedTime, releaseScreenShot, totalTime, useOffscreen| Modifier and Type | Method and Description |
|---|---|
protected void |
animate() |
static PathAnimation |
create(Control c,
int direction,
ControlAnimation.AnimationFinished animFinish,
int totalTime)
Creates a path animation, moving the control in a direction.
|
static PathAnimation |
create(Control c,
int direction,
ControlAnimation.AnimationFinished animFinish,
int totalTime,
int slack)
Creates a path animation, moving the control in a direction.
|
static PathAnimation |
create(Control c,
int toX,
int toY,
ControlAnimation.AnimationFinished animFinish,
int totalTime)
Creates a path animation, moving the control to the given x and y positions.
|
static PathAnimation |
create(Control c,
int fromX,
int fromY,
int toX,
int toY,
ControlAnimation.AnimationFinished animFinish,
int totalTime)
Creates a path animation, moving the control from a position to another.
|
void |
stop(boolean abort) |
computeSpeed, setAnimationFinishedAction, start, then, updateListenerTriggered, withpublic PathAnimation.SetPosition setpos
protected void animate()
animate in class ControlAnimationpublic void stop(boolean abort)
stop in class ControlAnimationpublic static PathAnimation create(Control c, int toX, int toY, ControlAnimation.AnimationFinished animFinish, int totalTime)
c - The control to be movedtoX - The destination X coordinatetoY - The destination Y coordinateanimFinish - An interface method to be called when the animation finished, or null if none.totalTime - The total time in millis that the animation will take, or -1 to use the default value (800ms).public static PathAnimation create(Control c, int fromX, int fromY, int toX, int toY, ControlAnimation.AnimationFinished animFinish, int totalTime)
c - The control to be movedfromX - The origin X coordinatefromY - The origin Y coordinatetoX - The destination X coordinatetoY - The destination Y coordinateanimFinish - An interface method to be called when the animation finished, or null if none.totalTime - The total time in millis that the animation will take, or -1 to use the default value (800ms).public static PathAnimation create(Control c, int direction, ControlAnimation.AnimationFinished animFinish, int totalTime)
c - The control to be moveddirection - One of BOTTOM, -BOTTOM, TOP, -TOP, LEFT, -LEFT, RIGHT, -RIGHT. Any other value will return null.animFinish - An interface method to be called when the animation finished, or null if none.totalTime - The total time in millis that the animation will take, or -1 to use the default value (800ms).public static PathAnimation create(Control c, int direction, ControlAnimation.AnimationFinished animFinish, int totalTime, int slack)
c - The control to be moveddirection - One of BOTTOM, -BOTTOM, TOP, -TOP, LEFT, -LEFT, RIGHT, -RIGHT. Any other value will return null.animFinish - An interface method to be called when the animation finished, or null if none.totalTime - The total time in millis that the animation will take, or -1 to use the default value (800ms).