|
GWT 2.0.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.animation.client.Animation
public abstract class Animation
An Animation
is a continuous event that updates progressively over
time at a non-fixed frame rate.
Constructor Summary | |
---|---|
Animation()
|
Method Summary | |
---|---|
void |
cancel()
Immediately cancel this animation. |
protected double |
interpolate(double progress)
Interpolate the linear progress into a more natural easing function. |
protected void |
onCancel()
Called immediately after the animation is canceled. |
protected void |
onComplete()
Called immediately after the animation completes. |
protected void |
onStart()
Called immediately before the animation starts. |
protected abstract void |
onUpdate(double progress)
Called when the animation should be updated. |
void |
run(int duration)
Immediately run this animation. |
void |
run(int duration,
double startTime)
Run this animation at the given startTime. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Animation()
Method Detail |
---|
public void cancel()
onCancel()
will be called.
public void run(int duration)
duration
- the duration of the animation in millisecondspublic void run(int duration, double startTime)
duration
- the duration of the animation in millisecondsstartTime
- the synchronized start time in millisecondsprotected double interpolate(double progress)
Animation
, the return value of this method can be
less than 0.0 or greater than 1.0.
progress
- the linear progress, between 0.0 and 1.0
protected void onCancel()
onComplete()
only if the
animation has actually started running.
protected void onComplete()
protected void onStart()
protected abstract void onUpdate(double progress)
interpolate(double)
method to provide a wider range
of values). You can override onStart()
and onComplete()
to perform setup and tear down procedures.
|
GWT 2.0.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |