org.xith3d.loop.opscheduler
Interface Animator

All Superinterfaces:
Updatable
All Known Subinterfaces:
OperationScheduler
All Known Implementing Classes:
DummyOperationSchedulerImpl, OperationSchedulerImpl, OperationSchedulerQueue

public interface Animator
extends Updatable

An Animator takes Animatable Nodes and animates them by a constant loop.

See Also:
Animatable

Method Summary
 void addAnimatableObject(Animatable animObj)
          Adds an animatable object to the set.
 void addAnimatableObject(Animatable animObj, boolean startAnimation)
          Adds an animatable object to the set.
 void removeAnimatableObject(Animatable animObj)
          Removes an animatable object from the set.
 void update(long gameTime, long frameTime, UpdatingThread.TimingMode timingMode)
          Updates this Updatable object.
 

Method Detail

addAnimatableObject

void addAnimatableObject(Animatable animObj,
                         boolean startAnimation)
Adds an animatable object to the set. And starts rotation if wanted. each rendering-loop-iteration the animate()-method is called.

Parameters:
animObj - the object to animate
startAnimation - if true the startAnimation() method is executed immediately

addAnimatableObject

void addAnimatableObject(Animatable animObj)
Adds an animatable object to the set. each rendering-loop-iteration the animate()-method is called.

Parameters:
animObj - the object to animate

removeAnimatableObject

void removeAnimatableObject(Animatable animObj)
Removes an animatable object from the set.

Parameters:
animObj - the object to remove

update

void update(long gameTime,
            long frameTime,
            UpdatingThread.TimingMode timingMode)
Updates this Updatable object.

Specified by:
update in interface Updatable
Parameters:
gameTime - the gameTime in Milliseconds
frameTime - the frameTime in Milliseconds (needed time for the last frame)
timingMode - the TimingMode to use for frameTime.