class StatusListener extends java.lang.Object implements JmolStatusListener, JmolSyncInterface, JSVInterface
Modifier and Type | Field and Description |
---|---|
private DisplayPanel |
display |
private JmolPanel |
jmol |
private boolean |
jSpecViewForceNew |
private jspecview.application.MainFrame |
jSpecViewFrame |
private int |
modificationMode |
private static java.lang.String |
propertiesFileName |
private Viewer |
vwr |
Constructor and Description |
---|
StatusListener(JmolPanel jmol,
DisplayPanel display) |
Modifier and Type | Method and Description |
---|---|
private void |
checkJSpecView(boolean closeAll) |
java.lang.String |
createImage(java.lang.String fileName,
java.lang.String type,
java.lang.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.
|
java.lang.String |
eval(java.lang.String strEval) |
void |
exitJSpecView(boolean withDialog,
java.lang.Object frame) |
float[][] |
functionXY(java.lang.String functionName,
int nX,
int nY)
this is just a test method for isosurface FUNCTIONXY
|
float[][][] |
functionXYZ(java.lang.String functionName,
int nX,
int nY,
int nZ)
for isosurface FUNCTIONXYZ
|
java.util.Map<java.lang.String,java.lang.Object> |
getJSpecViewProperty(java.lang.String type) |
java.util.Map<java.lang.String,java.lang.Object> |
getRegistryInfo() |
private void |
notifyAtomPicked(java.lang.String info) |
void |
notifyCallback(CBK type,
java.lang.Object[] data) |
boolean |
notifyEnabled(CBK type) |
private void |
notifyFileLoaded(java.lang.String fullPathName,
java.lang.String fileName,
java.lang.String modelName,
java.lang.String errorMsg,
java.lang.Boolean isAsync) |
private void |
notifyStructureModified(int atomIndex,
int modelIndex,
int mode) |
void |
register(java.lang.String id,
JmolSyncInterface jsi) |
javajs.awt.Dimension |
resizeInnerPanel(java.lang.String data) |
void |
runScript(java.lang.String script)
no queuing here -- called by MainFrame
|
void |
saveProperties(java.util.Properties properties) |
private void |
sendConsoleMessage(java.lang.String strStatus) |
void |
setCallbackFunction(java.lang.String callbackType,
java.lang.String callbackFunction) |
void |
setJSpecView(java.lang.String peaks,
boolean doLoadCheck,
boolean isFileLoad) |
void |
setProperties(java.util.Properties properties) |
(package private) void |
setViewer(Viewer vwr) |
void |
showUrl(java.lang.String url) |
void |
syncScript(java.lang.String script) |
void |
syncToJmol(java.lang.String msg) |
private JmolPanel jmol
private DisplayPanel display
private Viewer vwr
private jspecview.application.MainFrame jSpecViewFrame
private boolean jSpecViewForceNew
private int modificationMode
private static java.lang.String propertiesFileName
StatusListener(JmolPanel jmol, DisplayPanel display)
void setViewer(Viewer vwr)
public boolean notifyEnabled(CBK type)
notifyEnabled
in interface JmolCallbackListener
public void notifyCallback(CBK type, java.lang.Object[] data)
notifyCallback
in interface JmolCallbackListener
private void notifyStructureModified(int atomIndex, int modelIndex, int mode)
atomIndex
- modelIndex
- mode
- public void setCallbackFunction(java.lang.String callbackType, java.lang.String callbackFunction)
setCallbackFunction
in interface JmolCallbackListener
public java.lang.String eval(java.lang.String strEval)
eval
in interface JmolStatusListener
public java.lang.String createImage(java.lang.String fileName, java.lang.String type, java.lang.Object text_or_bytes, int quality)
JmolStatusListener
createImage
in interface JmolStatusListener
fileName
- type
- text_or_bytes
- quality
- private void notifyAtomPicked(java.lang.String info)
private void notifyFileLoaded(java.lang.String fullPathName, java.lang.String fileName, java.lang.String modelName, java.lang.String errorMsg, java.lang.Boolean isAsync)
private void checkJSpecView(boolean closeAll)
private void sendConsoleMessage(java.lang.String strStatus)
public void showUrl(java.lang.String url)
showUrl
in interface JmolStatusListener
public float[][] functionXY(java.lang.String functionName, int nX, int nY)
functionXY
in interface JmolStatusListener
functionName
- nX
- nY
- public float[][][] functionXYZ(java.lang.String functionName, int nX, int nY, int nZ)
JmolStatusListener
functionXYZ
in interface JmolStatusListener
public java.util.Map<java.lang.String,java.lang.Object> getRegistryInfo()
getRegistryInfo
in interface JmolStatusListener
public javajs.awt.Dimension resizeInnerPanel(java.lang.String data)
resizeInnerPanel
in interface JmolStatusListener
public void setJSpecView(java.lang.String peaks, boolean doLoadCheck, boolean isFileLoad)
public void register(java.lang.String id, JmolSyncInterface jsi)
register
in interface JmolSyncInterface
public void syncScript(java.lang.String script)
syncScript
in interface JmolSyncInterface
public void setProperties(java.util.Properties properties)
setProperties
in interface JSVInterface
public void saveProperties(java.util.Properties properties)
saveProperties
in interface JSVInterface
public void exitJSpecView(boolean withDialog, java.lang.Object frame)
exitJSpecView
in interface JSVInterface
withDialog
- frame
- public void runScript(java.lang.String script)
runScript
in interface JSVInterface
script
- public void syncToJmol(java.lang.String msg)
syncToJmol
in interface JSVInterface
msg
- public java.util.Map<java.lang.String,java.lang.Object> getJSpecViewProperty(java.lang.String type)
getJSpecViewProperty
in interface JmolStatusListener
getJSpecViewProperty
in interface JmolSyncInterface