Class StatusListener
java.lang.Object
org.openscience.jmol.app.status.StatusListener
- All Implemented Interfaces:
JmolCallbackListener, JmolStatusListener, JmolSyncInterface, JSVInterface
public class StatusListener
extends Object
implements JmolStatusListener, JmolSyncInterface, JSVInterface
-
Constructor Summary
ConstructorsConstructorDescriptionStatusListener(Viewer vwr, JmolPanel jmolPanel, DisplayPanel display) StatusListener(JmolPanel jmolPanel, DisplayPanel display) -
Method Summary
Modifier and TypeMethodDescriptioncreateImage(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) voidnotifyCallback(CBK type, Object[] data) booleannotifyEnabled(CBK type) voidregister(String id, JmolSyncInterface jsi) int[]resizeInnerPanel(String data) voidno queuing here -- called by MainFramevoidsaveProperties(Properties properties) voidsetCallbackFunction(String callbackType, String callbackFunction) voidsetJSpecView(String peaks, boolean doLoadCheck, boolean isFileLoad) voidsetProperties(Properties properties) voidsetUserStatusListener(JmolStatusListener listener) voidvoidsyncScript(String script) voidsyncToJmol(String msg)
-
Constructor Details
-
StatusListener
-
StatusListener
-
-
Method Details
-
notifyEnabled
- Specified by:
notifyEnabledin interfaceJmolCallbackListener
-
notifyCallback
- Specified by:
notifyCallbackin interfaceJmolCallbackListener
-
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
-
showUrl
- Specified by:
showUrlin interfaceJmolStatusListener
-
getRegistryInfo
- Specified by:
getRegistryInfoin interfaceJmolStatusListener
-
resizeInnerPanel
- Specified by:
resizeInnerPanelin interfaceJmolStatusListener
-
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-
-
setUserStatusListener
-
getJSpecViewProperty
- Specified by:
getJSpecViewPropertyin interfaceJmolStatusListener- Specified by:
getJSpecViewPropertyin interfaceJmolSyncInterface
-
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- Parameters:
functionName-nX-nY-nZ-- Returns:
- 3D array or null
-