org.jmol.viewer
Class StatusManager
class
StatusManager
extends Object
The StatusManager class handles all details of status reporting, including:
1) saving the message in a queue that replaces the "callback" mechanism,
2) sending messages off to the console, and
3) delivering messages back to the main Jmol.java class in app or applet
to handle differences in capabilities, including true callbacks.
atomPicked
fileLoaded
fileLoadError
frameChanged
measureCompleted
measurePending
measurePicked
newOrientation
scriptEcho
scriptError
scriptMessage
scriptStarted
scriptStatus
scriptTerminated
userAction
viewerRefreshed
Bob Hanson hansonr@stolaf.edu 2/2006
Method Summary |
void | clear() |
void | clearConsole() |
String | createImage(String file, String type, Object text_or_bytes, int quality) |
String | dialogAsk(String type, String fileName) |
boolean | doSync() |
String | eval(String strEval) |
float[][] | functionXY(String functionName, int nX, int nY) |
String | getCallbackScript(String callbackType) |
Hashtable | getMessageQueue() |
Hashtable | getRegistryInfo() |
Object | getStatusChanged(String statusNameList) |
String | getStatusList() |
int | getSyncMode() |
boolean | notifyEnabled(int type) |
void | notifyMinimizationStatus(String sJmol) |
void | popupMenu(int x, int y) |
boolean | resetMessageQueue(String statusList) |
void | setAllowStatusReporting(boolean TF) |
void | setCallbackFunction(String callbackType, String callbackFunction) |
void | setJmolStatusListener(JmolStatusListener jmolStatusListener) |
void | setScriptEcho(String strEcho, boolean isScriptQueued) |
void | setScriptStatus(String strStatus, String statusMessage, int msWalltime) |
void | setStatusAtomHovered(String sJmol, int iatom, String strInfo) |
void | setStatusAtomPicked(String sJmol, int atomIndex, String strInfo) |
void | setStatusChanged(String statusName, int intInfo, Object statusInfo, boolean isReplace) |
void | setStatusFileLoaded(String sJmol, String fullPathName, String fileName, String modelName, String errorMsg, int ptLoad) |
void | setStatusFrameChanged(String sJmol, int frameNo, int fileNo, int modelNo, int firstNo, int lastNo) |
boolean | setStatusList(String statusList) |
void | setStatusMeasurePicked(int iatom, String strMeasure) |
void | setStatusMeasuring(String status, int count, String strMeasure) |
void | setStatusResized(String sJmol, int width, int height) |
void | setStatusScriptStarted(int iscript, String script) |
void | setSync(String mouseCommand) |
void | setSyncDriver(int syncMode) |
void | showConsole(boolean showConsole) |
void | showUrl(String urlString) |
void | syncSend(String script, String appletName) |
private boolean allowStatusReporting
boolean drivingSync
private Hashtable htCallbacks
boolean isSynced
private Hashtable messageQueue
private int minSyncRepeatMs
private static int MAXIMUM_QUEUE_LENGTH
private StringBuffer outputBuffer
private String statusList
private int statusPtr
boolean syncDisabled
boolean syncingMouse
boolean syncingScripts
static final int SYNC_DISABLE
static final int SYNC_DRIVER
static final int SYNC_ENABLE
static final int SYNC_OFF
static final int SYNC_SLAVE
void clear()
void clearConsole()
String createImage(String file, String type, Object text_or_bytes, int quality)
public String dialogAsk(String type, String fileName)
boolean doSync()
String eval(String strEval)
float[][] functionXY(String functionName, int nX, int nY)
String getCallbackScript(String callbackType)
Hashtable getMessageQueue()
public Hashtable getRegistryInfo()
Object getStatusChanged(String statusNameList)
String getStatusList()
int getSyncMode()
private boolean notifyEnabled(int type)
void notifyMinimizationStatus(String sJmol)
void popupMenu(int x, int y)
private boolean resetMessageQueue(String statusList)
void setAllowStatusReporting(boolean TF)
void setCallbackFunction(String callbackType, String callbackFunction)
void setScriptEcho(String strEcho, boolean isScriptQueued)
void setScriptStatus(String strStatus, String statusMessage, int msWalltime)
void setStatusAtomHovered(String sJmol, int iatom, String strInfo)
void setStatusAtomPicked(String sJmol, int atomIndex, String strInfo)
void setStatusChanged(String statusName, int intInfo, Object statusInfo, boolean isReplace)
void setStatusFileLoaded(String sJmol, String fullPathName, String fileName, String modelName, String errorMsg, int ptLoad)
void setStatusFrameChanged(String sJmol, int frameNo, int fileNo, int modelNo, int firstNo, int lastNo)
private boolean setStatusList(String statusList)
void setStatusMeasurePicked(int iatom, String strMeasure)
void setStatusMeasuring(String status, int count, String strMeasure)
void setStatusResized(String sJmol, int width, int height)
void setStatusScriptStarted(int iscript, String script)
void setSync(String mouseCommand)
void setSyncDriver(int syncMode)
void showConsole(boolean showConsole)
void showUrl(String urlString)
void syncSend(String script, String appletName)