Class StatusListener
java.lang.Object
org.openscience.jmol.app.jmolpanel.StatusListener
- All Implemented Interfaces:
JmolCallbackListener,JmolStatusListener,JmolSyncInterface,JSVInterface
- Direct Known Subclasses:
NMR_JmolPanel.MyStatusListener
public class StatusListener
extends Object
implements JmolStatusListener, JmolSyncInterface, JSVInterface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DisplayPanelprivate JmolPanelprivate booleanprivate jspecview.application.MainFrameprivate Stringprivate intprivate static String(package private) JmolStatusListenerprivate Viewer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckJSpecView(boolean closeAll) createImage(String fileName, String type, Object text_or_bytes, int quality) Starting with Jmol 11.8.RC5, for a context where the Jmol application is embedded in another application simply to send the returned message to the application.voidexitJSpecView(boolean withDialog, Object frame) float[][]functionXY(String functionName, int nX, int nY) this is just a test method for isosurface FUNCTIONXYfloat[][][]functionXYZ(String functionName, int nX, int nY, int nZ) for isosurface FUNCTIONXYZgetJSpecViewProperty(String type) private voidnotifyAtomPicked(String info) voidnotifyCallback(CBK type, Object[] data) booleannotifyEnabled(CBK type) private voidnotifyFileLoaded(String fullPathName, String fileName, String modelName, String errorMsg, Boolean isAsync) private voidnotifyStructureModified(int atomIndex, int modelIndex, int mode) voidregister(String id, JmolSyncInterface jsi) int[]resizeInnerPanel(String data) voidno queuing here -- called by MainFramevoidsaveProperties(Properties properties) private voidsendConsoleMessage(String strStatus) voidsetCallbackFunction(String callbackType, String callbackFunction) voidsetJSpecView(String peaks, boolean doLoadCheck, boolean isFileLoad) voidsetProperties(Properties properties) voidvoidvoidsyncScript(String script) voidsyncToJmol(String msg)
-
Field Details
-
jmolPanel
-
display
-
vwr
-
jSpecViewFrame
private jspecview.application.MainFrame jSpecViewFrame -
jSpecViewForceNew
private boolean jSpecViewForceNew -
lastSimulate
-
userStatusListener
JmolStatusListener userStatusListener -
nboOptions
-
modificationMode
private int modificationMode -
propertiesFileName
-
-
Constructor Details
-
StatusListener
-
-
Method Details
-
setViewer
-
notifyEnabled
- Specified by:
notifyEnabledin interfaceJmolCallbackListener
-
notifyCallback
- Specified by:
notifyCallbackin interfaceJmolCallbackListener
-
notifyStructureModified
private void notifyStructureModified(int atomIndex, int modelIndex, int mode) - Parameters:
atomIndex-modelIndex-mode-
-
setCallbackFunction
- Specified by:
setCallbackFunctionin interfaceJmolCallbackListener
-
eval
- Specified by:
evalin interfaceJmolStatusListener
-
createImage
Description copied from interface:JmolStatusListenerStarting with Jmol 11.8.RC5, for a context where the Jmol application is embedded in another application simply to send the returned message to the application. In this way any application can have access to the WRITE command.- Specified by:
createImagein interfaceJmolStatusListener- Parameters:
fileName-type-text_or_bytes-quality-- Returns:
- null ("you do it" or canceled) or a message starting with OK or an error message
-
notifyAtomPicked
-
notifyFileLoaded
-
sendConsoleMessage
-
showUrl
- Specified by:
showUrlin interfaceJmolStatusListener
-
functionXY
this is just a test method for isosurface FUNCTIONXY- Specified by:
functionXYin interfaceJmolStatusListener- Parameters:
functionName-nX-nY-- Returns:
- f(x,y) as a 2D array
-
functionXYZ
Description copied from interface:JmolStatusListenerfor isosurface FUNCTIONXYZ- Specified by:
functionXYZin interfaceJmolStatusListener- Returns:
- 3D array or null
-
getRegistryInfo
- Specified by:
getRegistryInfoin interfaceJmolStatusListener
-
resizeInnerPanel
- Specified by:
resizeInnerPanelin interfaceJmolStatusListener
-
checkJSpecView
private void checkJSpecView(boolean closeAll) -
setJSpecView
-
register
- Specified by:
registerin interfaceJmolSyncInterface
-
syncScript
- Specified by:
syncScriptin interfaceJmolSyncInterface
-
setProperties
- Specified by:
setPropertiesin interfaceJSVInterface
-
saveProperties
- Specified by:
savePropertiesin interfaceJSVInterface
-
exitJSpecView
- Specified by:
exitJSpecViewin interfaceJSVInterface- Parameters:
withDialog-frame-
-
runScript
no queuing here -- called by MainFrame- Specified by:
runScriptin interfaceJSVInterface- Parameters:
script-
-
syncToJmol
- Specified by:
syncToJmolin interfaceJSVInterface- Parameters:
msg-
-
getJSpecViewProperty
- Specified by:
getJSpecViewPropertyin interfaceJmolStatusListener- Specified by:
getJSpecViewPropertyin interfaceJmolSyncInterface
-