com.threerings.media.animation
Class AnimationArranger
java.lang.Object
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.
|
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 |
_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.
AnimationArranger
public AnimationArranger()
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.