|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.opengl.util.AnimatorBase
public abstract class AnimatorBase
Base implementation of GLAnimatorControl
Nested Class Summary | |
---|---|
static interface |
AnimatorBase.AnimatorImpl
|
Constructor Summary | |
---|---|
AnimatorBase()
Creates a new, empty Animator. |
Method Summary | |
---|---|
List |
acquireDrawables()
|
void |
add(GLAutoDrawable drawable)
|
long |
getCurrentTime()
|
long |
getDuration()
|
long |
getStartTime()
|
Thread |
getThread()
|
int |
getTotalFrames()
|
void |
releaseDrawables()
|
void |
remove(GLAutoDrawable drawable)
|
void |
resetCounter()
Reset all performance counter (startTime, currentTime, frame number) |
void |
setIgnoreExceptions(boolean ignoreExceptions)
Sets a flag causing this Animator to ignore exceptions produced while redrawing the drawables. |
void |
setPrintExceptions(boolean printExceptions)
Sets a flag indicating that when exceptions are being ignored by this Animator (see setIgnoreExceptions(boolean) ), to print the
exceptions' stack traces for diagnostic information. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.media.opengl.GLAnimatorControl |
---|
isAnimating, isPaused, isStarted, pause, resume, start, stop |
Constructor Detail |
---|
public AnimatorBase()
Method Detail |
---|
public void add(GLAutoDrawable drawable)
public void remove(GLAutoDrawable drawable)
public List acquireDrawables()
public void releaseDrawables()
public long getCurrentTime()
getCurrentTime
in interface GLAnimatorControl
GLAnimatorControl.start()
,
GLAnimatorControl.resume()
public long getDuration()
getDuration
in interface GLAnimatorControl
getCurrentTime() - getStartTime()
.GLAnimatorControl.getStartTime()
,
GLAnimatorControl.getCurrentTime()
public long getStartTime()
getStartTime
in interface GLAnimatorControl
GLAnimatorControl.start()
,
GLAnimatorControl.resume()
public int getTotalFrames()
getTotalFrames
in interface GLAnimatorControl
getStartTime()
.
This value is reset if started or resumed.GLAnimatorControl.start()
,
GLAnimatorControl.resume()
public void resetCounter()
GLAnimatorControl
resetCounter
in interface GLAnimatorControl
public final Thread getThread()
getThread
in interface GLAnimatorControl
GLAnimatorControl.start()
,
GLAnimatorControl.stop()
public void setIgnoreExceptions(boolean ignoreExceptions)
public void setPrintExceptions(boolean printExceptions)
setIgnoreExceptions(boolean)
), to print the
exceptions' stack traces for diagnostic information. Defaults to
false.
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |