org.jmol.viewer

Class ScriptManager

class ScriptManager extends Object

Nested Class Summary
classScriptManager.CommandWatcher
classScriptManager.ScriptQueueRunnable
Field Summary
ThreadcommandWatcherThread
Thread[]queueThreads
VectorscriptQueue
boolean[]scriptQueueRunning
booleanuseCommandWatcherThread
booleanuseQueue
Viewerviewer
Constructor Summary
ScriptManager(Viewer viewer)
Method Summary
StringaddScript(String strScript)
StringaddScript(String strScript, boolean isScriptFile, boolean isQuiet)
ObjectaddScript(String returnType, String strScript, String statusList, boolean isScriptFile, boolean isQuiet)
voidclear()
voidclearQueue()
voidflushQueue(String command)
intgetScriptCount()
VectorgetScriptItem(boolean watching, boolean isByCommandWatcher)
voidinterruptQueueThreads()
voidsetQueue(boolean TF)
voidstartCommandWatcher(boolean isStart)
voidstartScriptQueue(boolean startedByCommandWatcher)
voidwaitForQueue()

Field Detail

commandWatcherThread

Thread commandWatcherThread

queueThreads

Thread[] queueThreads

scriptQueue

Vector scriptQueue

scriptQueueRunning

boolean[] scriptQueueRunning

useCommandWatcherThread

boolean useCommandWatcherThread

useQueue

boolean useQueue

viewer

Viewer viewer

Constructor Detail

ScriptManager

ScriptManager(Viewer viewer)

Method Detail

addScript

public String addScript(String strScript)

addScript

public String addScript(String strScript, boolean isScriptFile, boolean isQuiet)

addScript

public Object addScript(String returnType, String strScript, String statusList, boolean isScriptFile, boolean isQuiet)

clear

void clear()

clearQueue

public void clearQueue()

flushQueue

public void flushQueue(String command)

getScriptCount

public int getScriptCount()

getScriptItem

Vector getScriptItem(boolean watching, boolean isByCommandWatcher)

interruptQueueThreads

void interruptQueueThreads()

setQueue

public void setQueue(boolean TF)

startCommandWatcher

void startCommandWatcher(boolean isStart)

startScriptQueue

void startScriptQueue(boolean startedByCommandWatcher)

waitForQueue

public void waitForQueue()