Package org.jmol.script
Class ScriptDelayThread
- java.lang.Object
-
- java.lang.Thread
-
- org.jmol.thread.JmolThread
-
- org.jmol.script.ScriptDelayThread
-
- All Implemented Interfaces:
java.lang.Runnable
class ScriptDelayThread extends JmolThread
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
doPopPush
private boolean
isPauseDelay
private int
millis
static int
PAUSE_DELAY
private int
seconds
-
Fields inherited from class org.jmol.thread.JmolThread
CHECK1, CHECK2, CHECK3, currentTime, eval, FINISH, haveReference, hoverEnabled, INIT, isJS, isReset, lastRepaintTime, MAIN, name, sc, sleepTime, startTime, stopped, targetTime, vwr
-
-
Constructor Summary
Constructors Constructor Description ScriptDelayThread(JmolScriptEvaluator eval, Viewer vwr, int millis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
run1(int mode)
-
Methods inherited from class org.jmol.thread.JmolThread
checkInterrupted, interrupt, oops, reset, resumeEval, run, runSleep, setEval, setManager, setViewer, start
-
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, toString, yield
-
-
-
-
Field Detail
-
PAUSE_DELAY
public static final int PAUSE_DELAY
- See Also:
- Constant Field Values
-
millis
private int millis
-
seconds
private int seconds
-
doPopPush
private boolean doPopPush
-
isPauseDelay
private boolean isPauseDelay
-
-
Constructor Detail
-
ScriptDelayThread
public ScriptDelayThread(JmolScriptEvaluator eval, Viewer vwr, int millis)
- Parameters:
eval
-vwr
-millis
- negative to bypass pop/hold sequence
-
-
Method Detail
-
run1
protected void run1(int mode) throws java.lang.InterruptedException
- Specified by:
run1
in classJmolThread
- Throws:
java.lang.InterruptedException
-
-