com.threerings.media.animation
Class AnimationSequencer.AnimRecord

java.lang.Object
  extended by com.threerings.media.animation.AnimationAdapter
      extended by com.threerings.media.animation.AnimationSequencer.AnimRecord
All Implemented Interfaces:
AnimationObserver
Enclosing class:
AnimationSequencer

protected class AnimationSequencer.AnimRecord
extends AnimationAdapter


Field Summary
protected  Animation _anim
           
protected  Runnable _completionAction
           
protected  long _delta
           
protected  AnimationSequencer.AnimRecord _trigger
           
 
Constructor Summary
AnimationSequencer.AnimRecord(Animation anim, long delta, AnimationSequencer.AnimRecord trigger, Runnable completionAction)
           
 
Method Summary
 void animationCompleted(Animation anim, long when)
          Called when the observed animation has completed.
 void fire(long when)
           
 void fireCompletion(long when)
           
 boolean readyToFire(long now, long lastStamp)
           
 String toString()
           
 
Methods inherited from class com.threerings.media.animation.AnimationAdapter
animationStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_anim

protected Animation _anim

_completionAction

protected Runnable _completionAction

_delta

protected long _delta

_trigger

protected AnimationSequencer.AnimRecord _trigger
Constructor Detail

AnimationSequencer.AnimRecord

public AnimationSequencer.AnimRecord(Animation anim,
                                     long delta,
                                     AnimationSequencer.AnimRecord trigger,
                                     Runnable completionAction)
Method Detail

readyToFire

public boolean readyToFire(long now,
                           long lastStamp)

fire

public void fire(long when)

fireCompletion

public void fireCompletion(long when)

animationCompleted

public void animationCompleted(Animation anim,
                               long when)
Description copied from interface: AnimationObserver
Called when the observed animation has completed.

Specified by:
animationCompleted in interface AnimationObserver
Overrides:
animationCompleted in class AnimationAdapter

toString

public String toString()
Overrides:
toString in class Object