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 java.lang.String |
lastSimulate |
private int |
modificationMode |
private java.util.Map<java.lang.String,java.lang.Object> |
nboOptions |
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) |
int[] |
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 java.util.Map<java.lang.String,java.lang.Object> nboOptions
private int modificationMode
private java.lang.String lastSimulate
private static java.lang.String propertiesFileName
StatusListener(JmolPanel jmol, DisplayPanel display)
void setViewer(Viewer vwr)
public boolean notifyEnabled(CBK type)
notifyEnabled in interface JmolCallbackListenerpublic void notifyCallback(CBK type, java.lang.Object[] data)
notifyCallback in interface JmolCallbackListenerprivate 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 JmolCallbackListenerpublic java.lang.String eval(java.lang.String strEval)
eval in interface JmolStatusListenerpublic java.lang.String createImage(java.lang.String fileName,
java.lang.String type,
java.lang.Object text_or_bytes,
int quality)
JmolStatusListenercreateImage in interface JmolStatusListenerfileName - 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 sendConsoleMessage(java.lang.String strStatus)
public void showUrl(java.lang.String url)
showUrl in interface JmolStatusListenerpublic float[][] functionXY(java.lang.String functionName,
int nX,
int nY)
functionXY in interface JmolStatusListenerfunctionName - nX - nY - public float[][][] functionXYZ(java.lang.String functionName,
int nX,
int nY,
int nZ)
JmolStatusListenerfunctionXYZ in interface JmolStatusListenerpublic java.util.Map<java.lang.String,java.lang.Object> getRegistryInfo()
getRegistryInfo in interface JmolStatusListenerpublic int[] resizeInnerPanel(java.lang.String data)
resizeInnerPanel in interface JmolStatusListenerprivate void checkJSpecView(boolean closeAll)
public void setJSpecView(java.lang.String peaks,
boolean doLoadCheck,
boolean isFileLoad)
public void register(java.lang.String id,
JmolSyncInterface jsi)
register in interface JmolSyncInterfacepublic void syncScript(java.lang.String script)
syncScript in interface JmolSyncInterfacepublic void setProperties(java.util.Properties properties)
setProperties in interface JSVInterfacepublic void saveProperties(java.util.Properties properties)
saveProperties in interface JSVInterfacepublic void exitJSpecView(boolean withDialog,
java.lang.Object frame)
exitJSpecView in interface JSVInterfacewithDialog - frame - public void runScript(java.lang.String script)
runScript in interface JSVInterfacescript - public void syncToJmol(java.lang.String msg)
syncToJmol in interface JSVInterfacemsg - public java.util.Map<java.lang.String,java.lang.Object> getJSpecViewProperty(java.lang.String type)
getJSpecViewProperty in interface JmolStatusListenergetJSpecViewProperty in interface JmolSyncInterface