|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.opengl.util.Animator
com.sun.opengl.util.FPSAnimator
An Animator subclass which attempts to achieve a target frames-per-second rate to avoid using all CPU time. The target FPS is only an estimate and is not guaranteed.
| Field Summary |
| Fields inherited from class com.sun.opengl.util.Animator |
ignoreExceptions, printExceptions |
| Constructor Summary | |
FPSAnimator(GLAutoDrawable drawable,
int fps)
Creates an FPSAnimator with a given target frames-per-second value and an initial drawable to animate. |
|
FPSAnimator(GLAutoDrawable drawable,
int fps,
boolean scheduleAtFixedRate)
Creates an FPSAnimator with a given target frames-per-second value, an initial drawable to animate, and a flag indicating whether to use fixed-rate scheduling. |
|
FPSAnimator(int fps)
Creates an FPSAnimator with a given target frames-per-second value. |
|
FPSAnimator(int fps,
boolean scheduleAtFixedRate)
Creates an FPSAnimator with a given target frames-per-second value and a flag indicating whether to use fixed-rate scheduling. |
|
| Method Summary | |
boolean |
isAnimating()
Indicates whether this FPSAnimator is currently running. |
void |
start()
Starts this FPSAnimator. |
void |
stop()
Stops this FPSAnimator. |
| Methods inherited from class com.sun.opengl.util.Animator |
add, display, drawableIterator, remove, setIgnoreExceptions, setPrintExceptions, setRunAsFastAsPossible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FPSAnimator(int fps)
FPSAnimator(null, fps).
public FPSAnimator(int fps,
boolean scheduleAtFixedRate)
FPSAnimator(null, fps,
scheduleAtFixedRate).
public FPSAnimator(GLAutoDrawable drawable,
int fps)
FPSAnimator(null, fps, false).
public FPSAnimator(GLAutoDrawable drawable,
int fps,
boolean scheduleAtFixedRate)
| Method Detail |
public void start()
start in class Animatorpublic boolean isAnimating()
isAnimating in class Animatorpublic void stop()
stop in class Animator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||