public class DisplayScheduler extends java.lang.Object implements ThreadCompletionChecker
Modifier and Type | Field and Description |
---|---|
static int |
PERIOD_MS |
Constructor and Description |
---|
DisplayScheduler(com.jogamp.opengl.GLAutoDrawable jadrawable)
Creates a new GLDisplayScheduler for the given drawable.
|
Modifier and Type | Method and Description |
---|---|
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
scheduling 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. |
public static final int PERIOD_MS
public DisplayScheduler(com.jogamp.opengl.GLAutoDrawable jadrawable)
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()