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 java.lang.Object
- implements JmolStatusListener
Method Summary |
private void |
consoleMessage(java.lang.String message)
|
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)
|
protected void |
finalize()
|
float[][] |
functionXY(java.lang.String functionName,
int nX,
int nY)
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> |
getRegistryInfo()
|
void |
notifyCallback(EnumCallback type,
java.lang.Object[] data)
|
boolean |
notifyEnabled(EnumCallback type)
|
private void |
notifyScriptTermination()
|
private java.lang.String |
notifySync(java.lang.String info,
java.lang.String appletName)
|
private void |
output(java.lang.String s)
|
void |
resizeInnerPanel(java.lang.String data)
|
private java.lang.String |
sendScript(java.lang.String script,
java.lang.String appletName,
boolean isSync,
boolean doCallback)
|
void |
setCallbackFunction(java.lang.String callbackName,
java.lang.String callbackFunction)
|
private void |
showStatus(java.lang.String message)
|
void |
showUrl(java.lang.String urlString)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
haveNotifiedError
private boolean haveNotifiedError
Jmol.MyStatusListener
Jmol.MyStatusListener()
getRegistryInfo
public java.util.Map<java.lang.String,java.lang.Object> getRegistryInfo()
- Specified by:
getRegistryInfo
in interface JmolStatusListener
resizeInnerPanel
public void resizeInnerPanel(java.lang.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,
java.lang.Object[] data)
- Specified by:
notifyCallback
in interface JmolCallbackListener
output
private void output(java.lang.String s)
notifyScriptTermination
private void notifyScriptTermination()
notifySync
private java.lang.String notifySync(java.lang.String info,
java.lang.String appletName)
setCallbackFunction
public void setCallbackFunction(java.lang.String callbackName,
java.lang.String callbackFunction)
- Specified by:
setCallbackFunction
in interface JmolCallbackListener
eval
public java.lang.String eval(java.lang.String strEval)
- Specified by:
eval
in interface JmolStatusListener
createImage
public java.lang.String createImage(java.lang.String fileName,
java.lang.String type,
java.lang.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(java.lang.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(java.lang.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(java.lang.String urlString)
- Specified by:
showUrl
in interface JmolStatusListener
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class java.lang.Object
- Throws:
java.lang.Throwable
showStatus
private void showStatus(java.lang.String message)
consoleMessage
private void consoleMessage(java.lang.String message)
sendScript
private java.lang.String sendScript(java.lang.String script,
java.lang.String appletName,
boolean isSync,
boolean doCallback)