Package org.jmol.script
Class ScriptManager
java.lang.Object
org.jmol.script.ScriptManager
- All Implemented Interfaces:
JmolScriptManager
-
Field Summary
FieldsFields inherited from interface org.jmol.api.JmolScriptManager
CHECK_DIMS, FILE_DROPPED, IS_APPEND, NO_AUTOPLAY, NO_SCRIPT, PDB_CARTOONS, SCRIPT_ONLY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd hydrogens to a modelboolean
void
clear
(boolean isAll) void
void
void
evalCallback
(String strScript, Object[] params, boolean doWait) evalFileArgs
(String strFilename, String args) evalStringQuietSync
(String strScript, boolean isQuiet, boolean allowSyncScript) evalStringWaitStatusQueued
(String returnType, String strScript, String statusList, boolean isQuiet, boolean isQueued) getAtomBitSetEval
(JmolScriptEvaluator eval, Object atomExpression) getScriptItem
(boolean watching, boolean isByCommandWatcher) boolean
boolean
void
openFileAsync
(String fname, int flags, String type) From file dropping.void
queueThreadFinished
(int pt) void
runScriptFromThread
(Lst<Object> scriptItem) void
scriptCheckRet
(String strScript, boolean returnContext) static void
setStateScriptVersion
(Viewer vwr, String version) void
startCommandWatcher
(boolean isStart) void
-
Field Details
-
scriptQueue
-
-
Constructor Details
-
ScriptManager
public ScriptManager()
-
-
Method Details
-
getScriptQueue
- Specified by:
getScriptQueue
in interfaceJmolScriptManager
-
isScriptQueued
public boolean isScriptQueued()- Specified by:
isScriptQueued
in interfaceJmolScriptManager
-
setViewer
- Specified by:
setViewer
in interfaceJmolScriptManager
-
clear
public void clear(boolean isAll) - Specified by:
clear
in interfaceJmolScriptManager
-
clearQueue
public void clearQueue()- Specified by:
clearQueue
in interfaceJmolScriptManager
-
waitForQueue
public void waitForQueue()- Specified by:
waitForQueue
in interfaceJmolScriptManager
-
isQueueProcessing
public boolean isQueueProcessing()- Specified by:
isQueueProcessing
in interfaceJmolScriptManager
-
getScriptItem
- Specified by:
getScriptItem
in interfaceJmolScriptManager
-
startCommandWatcher
public void startCommandWatcher(boolean isStart) - Specified by:
startCommandWatcher
in interfaceJmolScriptManager
-
clearCommandWatcherThread
public void clearCommandWatcherThread() -
queueThreadFinished
public void queueThreadFinished(int pt) - Specified by:
queueThreadFinished
in interfaceJmolScriptManager
-
runScriptNow
public void runScriptNow() -
evalFile
- Specified by:
evalFile
in interfaceJmolScriptManager
-
evalFileArgs
- Specified by:
evalFileArgs
in interfaceJmolScriptManager
-
evalStringWaitStatusQueued
public Object evalStringWaitStatusQueued(String returnType, String strScript, String statusList, boolean isQuiet, boolean isQueued) - Specified by:
evalStringWaitStatusQueued
in interfaceJmolScriptManager
-
evalStringQuietSync
- Specified by:
evalStringQuietSync
in interfaceJmolScriptManager
-
checkHalt
- Specified by:
checkHalt
in interfaceJmolScriptManager
-
getAtomBitSetEval
- Specified by:
getAtomBitSetEval
in interfaceJmolScriptManager
-
scriptCheckRet
- Specified by:
scriptCheckRet
in interfaceJmolScriptManager
-
openFileAsync
From file dropping.- Specified by:
openFileAsync
in interfaceJmolScriptManager
- Parameters:
fname
-flags
- 1=pdbCartoons, 2=no scripting, 4=append, 8=no autoplay, 16=file dropped, 32=script only (dropped into console) 64=check dims for resize
-
setStateScriptVersion
-
addHydrogensInline
public BS addHydrogensInline(BS bsAtoms, Lst<Atom> vConnections, P3[] pts, Map<String, Object> htParams) throws ExceptionAdd hydrogens to a model- Specified by:
addHydrogensInline
in interfaceJmolScriptManager
- Parameters:
bsAtoms
- at least one atom, for identification of a model indexvConnections
- return list of atoms addedpts
- list of point positions for the added hydrogens?- Throws:
Exception
-
evalCallback
- Specified by:
evalCallback
in interfaceJmolScriptManager
-
runScriptFromThread
-