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