Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
static int |
FPS_AS_FAST_AS_POSSIBLE |
static int |
FPS_FAST |
static int |
FPS_MODERATE |
static int |
FPS_PAUSE |
static int |
FPS_SLOW |
static int |
FPS_VERY_SLOW |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier and Type | Method and Description |
---|---|
void |
addClockListener(ClockListener cl) |
void |
destroy()
Stop the clock and terminate the thread.
|
double |
getFramesPerSecond()
Get the frames per second
|
void |
removeClockListener(ClockListener cl) |
void |
run() |
void |
setFramesPerSecond(int framesPerSecond)
Set the frames per second.
|
void |
setPaused(boolean pause)
Pause or resume the clock
|
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public static final int FPS_PAUSE
public static final int FPS_VERY_SLOW
public static final int FPS_SLOW
public static final int FPS_MODERATE
public static final int FPS_FAST
public static final int FPS_AS_FAST_AS_POSSIBLE
public void addClockListener(ClockListener cl)
public void removeClockListener(ClockListener cl)
public double getFramesPerSecond()
public void setFramesPerSecond(int framesPerSecond)
framesPerSecond
- FPS or negative(as fast as possible)public void setPaused(boolean pause)
pause
- if true Clock will be pausedCopyright © 2017. All rights reserved.