Class StatusManager

java.lang.Object
org.jmol.viewer.StatusManager

public 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 vwrRefreshed Bob Hanson hansonr@stolaf.edu 2/2006
  • Field Details

  • Method Details

    • setCallbackFunction

      public void setCallbackFunction(String callbackType, Object callbackObject)
      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

      public void setStatusStructureModified(int atomIndex, int modelIndex, int mode, String msg, int n, BS bsAtoms)
    • syncSend

      public Object syncSend(String script, Object appletNameOrProp, int port)
    • processService

      public Object processService(Map<String,Object> info)
      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

      public void resizeInnerPanelString(String data)
      called by file droppers
      Parameters:
      data -
    • registerAudio

      public void registerAudio(String id, Map<String,Object> htParams)
    • playAudio

      public void playAudio(Map<String,Object> htParams)
    • notifyAudioStatus

      public void notifyAudioStatus(Map<String,Object> htParams)
      called from JmolAudio
      Parameters:
      htParams -