public abstract class JmolThread extends Thread
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected static int |
CHECK1 |
protected static int |
CHECK2 |
protected static int |
CHECK3 |
protected long |
currentTime |
protected JmolScriptEvaluator |
eval |
protected static int |
FINISH |
protected boolean |
hoverEnabled |
protected static int |
INIT |
protected boolean |
isJS |
protected boolean |
isReset |
(package private) double |
junk |
protected long |
lastRepaintTime |
protected static int |
MAIN |
String |
name |
protected ScriptContext |
sc |
protected int |
sleepTime |
protected long |
startTime |
protected boolean |
stopped |
protected long |
targetTime |
private static int |
threadIndex |
private boolean |
useTimeout |
protected Viewer |
viewer |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
JmolThread() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkInterrupted() |
void |
interrupt() |
protected void |
oops(Exception e) |
void |
reset() |
void |
resumeEval() |
void |
run() |
protected abstract void |
run1(int mode) |
protected boolean |
runSleep(int millis,
int runPtr) |
void |
setEval(JmolScriptEvaluator eval)
JavaScript only --
-- scriptDelay, moveTo, spin
-- save context for restoration later
-- move program counter forward one command
|
int |
setManager(Object manager,
Viewer viewer,
Object params) |
void |
setViewer(Viewer viewer,
String name) |
void |
start() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield
public String name
private static int threadIndex
protected static final int INIT
protected static final int MAIN
protected static final int FINISH
protected static final int CHECK1
protected static final int CHECK2
protected static final int CHECK3
protected Viewer viewer
protected JmolScriptEvaluator eval
protected ScriptContext sc
protected boolean hoverEnabled
protected long startTime
protected long targetTime
protected long lastRepaintTime
protected long currentTime
protected int sleepTime
protected boolean isJS
protected boolean stopped
protected boolean isReset
private boolean useTimeout
double junk
public int setManager(Object manager, Viewer viewer, Object params)
manager
- viewer
- params
- protected abstract void run1(int mode) throws InterruptedException
InterruptedException
public void setEval(JmolScriptEvaluator eval)
eval
- public void resumeEval()
protected void oops(Exception e)
protected boolean runSleep(int millis, int runPtr) throws InterruptedException
millis
- runPtr
- InterruptedException
protected boolean checkInterrupted()
public void reset()