public class FPSAnimator extends Animator
ignoreExceptions, printExceptions
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAnimating()
Indicates whether this FPSAnimator is currently running.
|
void |
start()
Starts this FPSAnimator.
|
void |
stop()
Stops this FPSAnimator.
|
add, display, drawableIterator, remove, setIgnoreExceptions, setPrintExceptions, setRunAsFastAsPossible
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)
public boolean isAnimating()
isAnimating
in class Animator
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.