org.jmol.applet
Class Jmol.MyStatusListener
java.lang.Object
org.jmol.applet.Jmol.MyStatusListener
- All Implemented Interfaces:
- JmolCallbackListener, JmolStatusListener
- Enclosing class:
- Jmol
class Jmol.MyStatusListener
- extends Object
- implements JmolStatusListener
|
Method Summary |
private void |
consoleMessage(String message)
|
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)
|
protected void |
finalize()
|
float[][] |
functionXY(String functionName,
int nX,
int nY)
for isosurface FUNCTIONXY |
float[][][] |
functionXYZ(String functionName,
int nX,
int nY,
int nZ)
for isosurface FUNCTIONXYZ |
Map<String,Object> |
getRegistryInfo()
|
void |
notifyCallback(EnumCallback type,
Object[] data)
|
boolean |
notifyEnabled(EnumCallback type)
|
private void |
notifyScriptTermination()
|
private String |
notifySync(String info,
String appletName)
|
private void |
output(String s)
|
void |
resizeInnerPanel(String data)
|
private String |
sendScript(String script,
String appletName,
boolean isSync,
boolean doCallback)
|
void |
setCallbackFunction(String callbackName,
String callbackFunction)
|
private void |
showStatus(String message)
|
void |
showUrl(String urlString)
|
haveNotifiedError
private boolean haveNotifiedError
Jmol.MyStatusListener
Jmol.MyStatusListener()
getRegistryInfo
public Map<String,Object> getRegistryInfo()
- Specified by:
getRegistryInfo in interface JmolStatusListener
resizeInnerPanel
public void resizeInnerPanel(String data)
- Specified by:
resizeInnerPanel in interface JmolStatusListener
notifyEnabled
public boolean notifyEnabled(EnumCallback type)
- Specified by:
notifyEnabled in interface JmolCallbackListener
notifyCallback
public void notifyCallback(EnumCallback type,
Object[] data)
- Specified by:
notifyCallback in interface JmolCallbackListener
output
private void output(String s)
notifyScriptTermination
private void notifyScriptTermination()
notifySync
private String notifySync(String info,
String appletName)
setCallbackFunction
public void setCallbackFunction(String callbackName,
String callbackFunction)
- Specified by:
setCallbackFunction in interface JmolCallbackListener
eval
public String eval(String strEval)
- Specified by:
eval in interface JmolStatusListener
createImage
public String createImage(String fileName,
String type,
Object text_or_bytes,
int quality)
- 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 interface JmolStatusListener
- Parameters:
fileName - type - text_or_bytes - quality -
- Returns:
- null (canceled) or a message starting with OK or an error message
functionXY
public float[][] functionXY(String functionName,
int nX,
int nY)
- Description copied from interface:
JmolStatusListener
- for isosurface FUNCTIONXY
- Specified by:
functionXY in interface JmolStatusListener
- Returns:
- 2D array or null
functionXYZ
public float[][][] functionXYZ(String functionName,
int nX,
int nY,
int nZ)
- Description copied from interface:
JmolStatusListener
- for isosurface FUNCTIONXYZ
- Specified by:
functionXYZ in interface JmolStatusListener
- Returns:
- 3D array or null
showUrl
public void showUrl(String urlString)
- Specified by:
showUrl in interface JmolStatusListener
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize in class Object
- Throws:
Throwable
showStatus
private void showStatus(String message)
consoleMessage
private void consoleMessage(String message)
sendScript
private String sendScript(String script,
String appletName,
boolean isSync,
boolean doCallback)