com.google.gwt.animation.client
Class Animation

java.lang.Object
  extended by com.google.gwt.animation.client.Animation
Direct Known Subclasses:
CellTree.NodeAnimation

public abstract class Animation
extends java.lang.Object

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.
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Animation

public Animation()
Method Detail

cancel

public void cancel()
Immediately cancel this animation. If the animation is running or is scheduled to run, onCancel() will be called.


run

public void run(int duration)
Immediately run this animation. If the animation is already running, it will be canceled first.

Parameters:
duration - the duration of the animation in milliseconds

run

public void run(int duration,
                double startTime)
Run this animation at the given startTime. If the startTime has already passed, the animation will be synchronize as if it started at the specified start time. If the animation is already running, it will be canceled first.

Parameters:
duration - the duration of the animation in milliseconds
startTime - the synchronized start time in milliseconds