|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OperationScheduler
An OperationScheduler is capable of handling ScheduledOperations, which are
to be executed by the render thread.
This way SceneGraph manipulations can be done thread safely.
| Method Summary | |
|---|---|
void |
addInterval(Interval interval)
Adds a new Interval to the scheduler, which will be checked each iteration. |
void |
addIntervalListener(IntervalListener l)
Registers a new IntervalListner to this OperationScheduler. |
void |
removeAllIntervals()
Removes all Intervals from the scheduler. |
IntervalListener |
removeIntervalListener(IntervalListener l)
Unregisters an IntervalListner from this OperationScheduler. |
void |
scheduleOperation(ScheduledOperation schedOp)
Adds a ScheduledOperation to the queue. |
void |
unscheduleOperation(ScheduledOperation schedOp)
Removes a ScheduledOperation from the queue. |
void |
update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
Updates this Updatable object. |
| Methods inherited from interface org.xith3d.loop.opscheduler.Animator |
|---|
addAnimatableObject, addAnimatableObject, removeAnimatableObject |
| Methods inherited from interface org.xith3d.loop.Updater |
|---|
addUpdatable, removeUpdatable |
| Method Detail |
|---|
void scheduleOperation(ScheduledOperation schedOp)
schedOp - the Operation to schedulevoid unscheduleOperation(ScheduledOperation schedOp)
schedOp - the Operation to unschedulevoid addInterval(Interval interval)
interval - the new Intervalvoid removeAllIntervals()
void addIntervalListener(IntervalListener l)
l - the new IntervalListenerIntervalListener removeIntervalListener(IntervalListener l)
l - the IntervalListener to remove
void update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
update in interface Animatorupdate in interface UpdatablegameTime - the gameTime in MillisecondsframeTime - the frameTime in Milliseconds (needed time for the last frame)timingMode - the TimingMode to use for frameTime.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||