Package org.jmol.viewer
Class ChimeMessenger
- java.lang.Object
-
- org.jmol.viewer.ChimeMessenger
-
- All Implemented Interfaces:
JmolChimeMessenger
public class ChimeMessenger extends java.lang.Object implements JmolChimeMessenger
A legacy Chime-compatible messenger. Enabled using set messageStyleChime. Probably used only by ProteinExplorer. Consolidates all Chime business and gets this code out of Viewer and other more commonly used classes.
-
-
Constructor Summary
Constructors Constructor Description ChimeMessenger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetAllChimeInfo(javajs.util.SB sb)java.lang.StringgetInfoXYZ(Atom a)called when an atom is pickedvoidreportSelection(int n)report atom selection in Chime formatjava.lang.StringscriptCompleted(StatusManager sm, java.lang.String statusMessage, java.lang.String strErrorMessageUntranslated)called when a script exits.JmolChimeMessengerset(Viewer vwr)voidshowHash(javajs.util.SB outputBuffer, java.lang.String s)#xxxx command outputvoidupdate(java.lang.String msg)called upon script exit and file opening
-
-
-
Field Detail
-
vwr
private Viewer vwr
-
-
Method Detail
-
set
public JmolChimeMessenger set(Viewer vwr)
- Specified by:
setin interfaceJmolChimeMessenger
-
getInfoXYZ
public java.lang.String getInfoXYZ(Atom a)
called when an atom is picked- Specified by:
getInfoXYZin interfaceJmolChimeMessenger
-
showHash
public void showHash(javajs.util.SB outputBuffer, java.lang.String s)#xxxx command output- Specified by:
showHashin interfaceJmolChimeMessenger
-
reportSelection
public void reportSelection(int n)
report atom selection in Chime format- Specified by:
reportSelectionin interfaceJmolChimeMessenger
-
update
public void update(java.lang.String msg)
called upon script exit and file opening- Specified by:
updatein interfaceJmolChimeMessenger
-
scriptCompleted
public java.lang.String scriptCompleted(StatusManager sm, java.lang.String statusMessage, java.lang.String strErrorMessageUntranslated)
called when a script exits.- Specified by:
scriptCompletedin interfaceJmolChimeMessenger
-
getAllChimeInfo
public void getAllChimeInfo(javajs.util.SB sb)
- Specified by:
getAllChimeInfoin interfaceJmolChimeMessenger
-
-