|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjarp.DisplayScheduler
public class DisplayScheduler
A DisplayScheduler sets up a thread to drive the display() method of a GLDrawable. For efficiency, it sets up the rendering thread for the drawable to be its own internal thread, so it can not be combined with manual repaints of the surface.
Field Summary | |
---|---|
static int |
PERIOD_MS
|
Constructor Summary | |
---|---|
DisplayScheduler(javax.media.opengl.GLAutoDrawable jadrawable)
Creates a new GLDisplayScheduler for the given drawable. |
Method Summary | |
---|---|
FrameAnimationSynch |
getFrameAnimationSynch()
Returns this display-scheduler's frame-animation-synchronisation object. |
void |
requestDisplayNow()
Registers a request for display to be invoked on our GLDrawable. |
void |
start()
Starts this display scheduler. |
void |
stop()
Stops this display scheduler, blocking until the display sheduling thread has finished. |
void |
waitForCompletion()
Thread completion checker method: assumes we've previously had a stop() call and now wish to wait until it is
known that the display-scheduler thread has indeed stopped. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PERIOD_MS
Constructor Detail |
---|
public DisplayScheduler(javax.media.opengl.GLAutoDrawable jadrawable)
Method Detail |
---|
public FrameAnimationSynch getFrameAnimationSynch()
public void start()
public void stop()
public void waitForCompletion() throws java.lang.InterruptedException
stop()
call and now wish to wait until it is
known that the display-scheduler thread has indeed stopped.
waitForCompletion
in interface ThreadCompletionChecker
java.lang.InterruptedException
public void requestDisplayNow()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |