|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Object
Animation
public class Animation
Animation represents timed transition of source() state to target() state.
System calls the AnimationCallback to update the script about the progress of animation.
Frame rate of animation of controlled by return value of AnimationCallback.
| Constructor Summary | |
|---|---|
Animation(int source,
int target,
int duration,
int frame,
int mode,
AnimationCallback callback)
Creates and starts new animation. |
|
| Method Summary | |
|---|---|
void |
cancel()
Stops this animation sequence. |
int |
duration()
Returns the duration of animation, in milliseconds. |
int |
source()
Returns the source value of transition. |
int |
started()
Returns the start time of animation. |
int |
target()
Returns the target value of transition. |
| Methods inherited from class Object |
|---|
toString, equals, hashCode |
| Methods inherited from |
|---|
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Animation(int source,
int target,
int duration,
int frame,
int mode,
AnimationCallback callback)
source - Source value of animationtarget - Target value of animationduration - Duration of animation in millisecondsframe - Desired frame rate in millisecondsmode - Interpolation, either
ANIMATION_LINEAR,
ANIMATION_QUAD or
ANIMATION_SINE.callback - Callback to handle the physical transitions| Method Detail |
|---|
public int started()
public int duration()
public int source()
public int target()
public void cancel()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||