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 DisplayPanel
private JmolPanel
private boolean
private jspecview.application.MainFrame
private String
private int
private static String
(package private) JmolStatusListener
private Viewer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkJSpecView
(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.void
exitJSpecView
(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 void
notifyAtomPicked
(String info) void
notifyCallback
(CBK type, Object[] data) boolean
notifyEnabled
(CBK type) private void
notifyFileLoaded
(String fullPathName, String fileName, String modelName, String errorMsg, Boolean isAsync) private void
notifyStructureModified
(int atomIndex, int modelIndex, int mode) void
register
(String id, JmolSyncInterface jsi) int[]
resizeInnerPanel
(String data) void
no queuing here -- called by MainFramevoid
saveProperties
(Properties properties) private void
sendConsoleMessage
(String strStatus) void
setCallbackFunction
(String callbackType, String callbackFunction) void
setJSpecView
(String peaks, boolean doLoadCheck, boolean isFileLoad) void
setProperties
(Properties properties) void
void
void
syncScript
(String script) void
syncToJmol
(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:
notifyEnabled
in interfaceJmolCallbackListener
-
notifyCallback
- Specified by:
notifyCallback
in interfaceJmolCallbackListener
-
notifyStructureModified
private void notifyStructureModified(int atomIndex, int modelIndex, int mode) - Parameters:
atomIndex
-modelIndex
-mode
-
-
setCallbackFunction
- Specified by:
setCallbackFunction
in interfaceJmolCallbackListener
-
eval
- Specified by:
eval
in interfaceJmolStatusListener
-
createImage
Description copied from interface:JmolStatusListener
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. In this way any application can have access to the WRITE command.- Specified by:
createImage
in 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:
showUrl
in interfaceJmolStatusListener
-
functionXY
this is just a test method for isosurface FUNCTIONXY- Specified by:
functionXY
in interfaceJmolStatusListener
- Parameters:
functionName
-nX
-nY
-- Returns:
- f(x,y) as a 2D array
-
functionXYZ
Description copied from interface:JmolStatusListener
for isosurface FUNCTIONXYZ- Specified by:
functionXYZ
in interfaceJmolStatusListener
- Parameters:
functionName
-nX
-nY
-nZ
-- Returns:
- 3D array or null
-
getRegistryInfo
- Specified by:
getRegistryInfo
in interfaceJmolStatusListener
-
resizeInnerPanel
- Specified by:
resizeInnerPanel
in interfaceJmolStatusListener
-
checkJSpecView
private void checkJSpecView(boolean closeAll) -
setJSpecView
-
register
- Specified by:
register
in interfaceJmolSyncInterface
-
syncScript
- Specified by:
syncScript
in interfaceJmolSyncInterface
-
setProperties
- Specified by:
setProperties
in interfaceJSVInterface
-
saveProperties
- Specified by:
saveProperties
in interfaceJSVInterface
-
exitJSpecView
- Specified by:
exitJSpecView
in interfaceJSVInterface
- Parameters:
withDialog
-frame
-
-
runScript
no queuing here -- called by MainFrame- Specified by:
runScript
in interfaceJSVInterface
- Parameters:
script
-
-
syncToJmol
- Specified by:
syncToJmol
in interfaceJSVInterface
- Parameters:
msg
-
-
getJSpecViewProperty
- Specified by:
getJSpecViewProperty
in interfaceJmolStatusListener
- Specified by:
getJSpecViewProperty
in interfaceJmolSyncInterface
-