public abstract class JmolThread
extends java.lang.Thread
| 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 |
haveReference |
protected boolean |
hoverEnabled |
protected static int |
INIT |
protected boolean |
isJS |
protected boolean |
isReset |
(package private) double |
junk |
protected long |
lastRepaintTime |
protected static int |
MAIN |
java.lang.String |
name |
protected ScriptContext |
sc |
protected int |
sleepTime |
protected long |
startTime |
protected boolean |
stopped |
protected long |
targetTime |
private static int |
threadIndex |
protected boolean |
useTimeout |
protected Viewer |
vwr |
| Constructor and Description |
|---|
JmolThread() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkInterrupted(JmolThread ref) |
void |
interrupt() |
protected void |
oops(java.lang.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(java.lang.Object manager,
Viewer vwr,
java.lang.Object params) |
void |
setViewer(Viewer vwr,
java.lang.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, yieldpublic java.lang.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 vwr
protected JmolScriptEvaluator eval
protected ScriptContext sc
protected boolean haveReference
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
protected boolean useTimeout
double junk
public int setManager(java.lang.Object manager,
Viewer vwr,
java.lang.Object params)
manager - vwr - params - public void setViewer(Viewer vwr, java.lang.String name)
protected abstract void run1(int mode)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void setEval(JmolScriptEvaluator eval)
eval - public void resumeEval()
public void start()
start in class java.lang.Threadpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadprotected void oops(java.lang.Exception e)
protected boolean runSleep(int millis,
int runPtr)
throws java.lang.InterruptedException
millis - runPtr - java.lang.InterruptedExceptionpublic void interrupt()
interrupt in class java.lang.Threadprotected boolean checkInterrupted(JmolThread ref)
public void reset()