Package org.jmol.viewer
Class StatusManager
java.lang.Object
org.jmol.viewer.StatusManager
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
vwrRefreshed
Bob Hanson hansonr@stolaf.edu 2/2006
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
static final int
static final int
static final int
static final int
static final int
static final int
boolean
protected Viewer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
void
notifyAudioStatus
(Map<String, Object> htParams) called from JmolAudiovoid
processService
(Map<String, Object> info) service is expected to return a value in the "ret" keyvoid
registerAudio
(String id, Map<String, Object> htParams) int[]
resizeInnerPanel
(int width, int height) void
resizeInnerPanelString
(String data) called by file droppersvoid
setCallbackFunction
(String callbackType, Object callbackObject) Set a JmolScript or JavaScript or Java callback.void
setStatusStructureModified
(int atomIndex, int modelIndex, int mode, String msg, int n, BS bsAtoms)
-
Field Details
-
vwr
-
cbl
-
statusList
-
allowStatusReporting
public boolean allowStatusReporting -
messageQueue
-
syncingScripts
public boolean syncingScripts -
SYNC_OFF
public static final int SYNC_OFF- See Also:
-
SYNC_DRIVER
public static final int SYNC_DRIVER- See Also:
-
SYNC_SLAVE
public static final int SYNC_SLAVE- See Also:
-
SYNC_DISABLE
public static final int SYNC_DISABLE- See Also:
-
SYNC_ENABLE
public static final int SYNC_ENABLE- See Also:
-
SYNC_STEREO
public static final int SYNC_STEREO- See Also:
-
-
Method Details
-
setCallbackFunction
Set a JmolScript or JavaScript or Java callback. This method can be called with a JavaScript function, but only directly by an applet method, not using Jmol scripting.- Parameters:
callbackType
-callbackObject
-
-
setStatusStructureModified
-
syncSend
-
processService
service is expected to return a value in the "ret" key- Parameters:
info
- with key "service"- Returns:
- info, for chaining
-
getSyncMode
public int getSyncMode() -
clearConsole
public void clearConsole() -
resizeInnerPanel
public int[] resizeInnerPanel(int width, int height) -
resizeInnerPanelString
called by file droppers- Parameters:
data
-
-
registerAudio
-
playAudio
-
notifyAudioStatus
called from JmolAudio- Parameters:
htParams
-
-