Package org.jmol.thread
Class JmolThread
java.lang.Object
java.lang.Thread
org.jmol.thread.JmolThread
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
AnimationThread
,CommandWatcherThread
,FileLoadThread
,HoverWatcherThread
,MinimizationThread
,MoveToThread
,Navigator
,ScriptDelayThread
,ScriptQueueThread
,SpinThread
,TimeoutThread
,VibrationThread
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
protected static final int
protected static final int
protected long
protected JmolScriptEvaluator
protected static final int
protected boolean
protected boolean
protected static final int
protected boolean
protected boolean
(package private) double
protected long
protected static final int
protected ScriptContext
protected int
protected long
protected boolean
protected long
private static int
protected boolean
protected Viewer
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
void
protected void
void
reset()
void
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 commandint
setManager
(Object manager, Viewer vwr, Object params) void
void
start()
toString()
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, suspend, yield
-
Field Details
-
name
-
threadIndex
private static int threadIndex -
INIT
protected static final int INIT- See Also:
-
MAIN
protected static final int MAIN- See Also:
-
FINISH
protected static final int FINISH- See Also:
-
CHECK1
protected static final int CHECK1- See Also:
-
CHECK2
protected static final int CHECK2- See Also:
-
CHECK3
protected static final int CHECK3- See Also:
-
vwr
-
eval
-
sc
-
haveReference
protected boolean haveReference -
hoverEnabled
protected boolean hoverEnabled -
startTime
protected long startTime -
targetTime
protected long targetTime -
lastRepaintTime
protected long lastRepaintTime -
currentTime
protected long currentTime -
sleepTime
protected int sleepTime -
isJS
protected boolean isJS -
stopped
protected boolean stopped -
isReset
protected boolean isReset -
useTimeout
protected boolean useTimeout -
junk
double junk
-
-
Constructor Details
-
JmolThread
public JmolThread()
-
-
Method Details
-
setManager
- Parameters:
manager
-vwr
-params
-- Returns:
- TODO
-
setViewer
-
run1
- Throws:
InterruptedException
-
setEval
JavaScript only -- -- scriptDelay, moveTo, spin -- save context for restoration later -- move program counter forward one command- Parameters:
eval
-
-
resumeEval
public void resumeEval() -
start
public void start() -
run
public void run() -
oops
-
runSleep
- Parameters:
millis
-runPtr
-- Returns:
- true if we can continue on with this thread (Java, not JavaScript)
- Throws:
InterruptedException
-
interrupt
public void interrupt() -
checkInterrupted
-
reset
public void reset() -
toString
-