com.jogamp.opengl.GLAutoDrawable animation.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | GLAnimatorControl.
A |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(GLAutoDrawable
the drawable to be added drawable)Adds a drawable to this animator's list of rendering drawables. |
| public Thread | |
| public GLAnimatorControl. | getUncaughtExceptionHandler()
Returns the |
| public boolean | |
| public boolean | isPaused()
Indicates whether this animator |
| public boolean | |
| public boolean | Returns: false if not started, already paused or failed to pause, otherwise truePauses this animator. |
| public void | remove(GLAutoDrawable
the drawable to be removed drawable)Removes a drawable from the animator's list of rendering drawables. |
| public boolean | Returns: false if not started, not paused or unable to resume, otherwise trueResumes animation if paused. |
| public void | setUncaughtExceptionHandler(final GLAnimatorControl.
the handlerUncaughtExceptionHandler to use as this animator's uncaught exception
handler. Pass null to unset the handler.Set the handler invoked when this |
| public boolean | Returns: true is started due to this call, otherwise false, ie started already or unable to start.Starts this animator, if not running. |
| public boolean | Returns: true is stopped due to this call, otherwise false, ie not started or unable to stop.Stops this animator. |
| add | back to summary |
|---|---|
| public void add(GLAutoDrawable drawable) Adds a drawable to this animator's list of rendering drawables.
This allows the animator thread to become
| |
| getThread | back to summary |
|---|---|
| public Thread getThread() | |
| getUncaughtExceptionHandler | back to summary |
|---|---|
| public GLAnimatorControl. Returns the
Default is
| |
| isAnimating | back to summary |
|---|---|
| public boolean isAnimating() Indicates whether this animator | |
| isPaused | back to summary |
|---|---|
| public boolean isPaused() Indicates whether this animator | |
| isStarted | back to summary |
|---|---|
| public boolean isStarted() Indicates whether this animator has been
| |
| pause | back to summary |
|---|---|
| public boolean pause() Pauses this animator. In most situations this method blocks until completion, except when called from the animation thread itself or in some cases from an implementation-internal thread like the AWT event queue thread.
| |
| remove | back to summary |
|---|---|
| public void remove(GLAutoDrawable drawable) Removes a drawable from the animator's list of rendering drawables. This method should get called in case a drawable becomes invalid, and will not be recovered.
This allows the animator thread to become
| |
| resume | back to summary |
|---|---|
| public boolean resume() Resumes animation if paused. In most situations this method blocks until completion, except when called from the animation thread itself or in some cases from an implementation-internal thread like the AWT event queue thread. If resumed, all counters (time, frames, ..) are reset to zero.
| |
| setUncaughtExceptionHandler | back to summary |
|---|---|
| public void setUncaughtExceptionHandler(final GLAnimatorControl. Set the handler invoked when this
| |
| start | back to summary |
|---|---|
| public boolean start() Starts this animator, if not running. In most situations this method blocks until completion, except when called from the animation thread itself or in some cases from an implementation-internal thread like the AWT event queue thread.
Note that an animator w/o If started, all counters (time, frames, ..) are reset to zero.
| |
| stop | back to summary |
|---|---|
| public boolean stop() Stops this animator. In most situations this method blocks until completion, except when called from the animation thread itself or in some cases from an implementation-internal thread like the AWT event queue thread.
| |
registered
UncaughtExceptionHandler instance is invoked when an animator abruptly stops
due to an uncaught exception from one of its GLAutoDrawables.
uncaughtException(GLAnimatorControl, GLAutoDrawable, Throwable), GLAnimatorControl#setUncaughtExceptionHandler(UncaughtExceptionHandler)
| Modifier and Type | Method and Description |
|---|---|
| public void | uncaughtException(final GLAnimatorControl animator, final GLAutoDrawable drawable, final Throwable
the uncaught exception cause)Method invoked when the given |
| uncaughtException | back to summary |
|---|---|
| public void uncaughtException(final GLAnimatorControl animator, final GLAutoDrawable drawable, final Throwable cause) Method invoked when the given
The animator thread can still be retrieved via
All
After this handler method is called, the Any exception thrown by this method will be ignored.
| |