com.threerings.media.animation
Class AnimationArranger

java.lang.Object
  extended by com.threerings.media.animation.AnimationArranger

public class AnimationArranger
extends Object

A utility class for positioning animations such that they don't overlap, as best as possible.


Field Summary
protected  AnimationAdapter _avoidAnimObs
          Automatically removes avoid animations when they're done.
protected  ArrayList<Animation> _avoidAnims
          The animations that other animations may wish to avoid.
 
Constructor Summary
AnimationArranger()
           
 
Method Summary
 void positionAvoidAnimation(Animation anim, Rectangle viewBounds)
          Position the specified animation so that it is not overlapping any still-running animations previously passed to this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_avoidAnims

protected ArrayList<Animation> _avoidAnims
The animations that other animations may wish to avoid.


_avoidAnimObs

protected AnimationAdapter _avoidAnimObs
Automatically removes avoid animations when they're done.

Constructor Detail

AnimationArranger

public AnimationArranger()
Method Detail

positionAvoidAnimation

public void positionAvoidAnimation(Animation anim,
                                   Rectangle viewBounds)
Position the specified animation so that it is not overlapping any still-running animations previously passed to this method.