public class Console.ProgressThread extends Thread implements ComputationListener
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
Console.ProgressThread(int width)
Creates a new thread to display the computation progress.
|
Modifier and Type | Method and Description |
---|---|
void |
computationAdvanded(ComputationEvent e)
Invoked when a computation makes progress.
|
void |
run() |
activeCount, checkAccess, countStackFrames, currentThread, destroy, 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 Console.ProgressThread(int width)
width
- the width of the progress barpublic void computationAdvanded(ComputationEvent e)
ComputationListener
computationAdvanded
in interface ComputationListener
e
- the event