org.openscience.jmol.app.jmolpanel
Class JmolPanel.MyStatusListener

java.lang.Object
  extended by org.openscience.jmol.app.jmolpanel.JmolPanel.MyStatusListener
All Implemented Interfaces:
JmolCallbackListener, JmolStatusListener
Enclosing class:
JmolPanel

 class JmolPanel.MyStatusListener
extends java.lang.Object
implements JmolStatusListener


Constructor Summary
JmolPanel.MyStatusListener()
           
 
Method Summary
 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 dialogAsk(java.lang.String type, java.lang.String fileName)
           
 java.lang.String eval(java.lang.String strEval)
           
 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.Hashtable getRegistryInfo()
           
private  void notifyAtomPicked(java.lang.String info)
           
 void notifyCallback(int type, java.lang.Object[] data)
           
 boolean notifyEnabled(int type)
           
private  void notifyFileLoaded(java.lang.String fullPathName, java.lang.String fileName, java.lang.String modelName, java.lang.String errorMsg)
           
private  void notifyFrameChanged(int frameNo, int file, int model)
           
private  void sendConsoleEcho(java.lang.String strEcho)
           
private  void sendConsoleMessage(java.lang.String strStatus)
           
 void setCallbackFunction(java.lang.String callbackType, java.lang.String callbackFunction)
           
 void showUrl(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmolPanel.MyStatusListener

JmolPanel.MyStatusListener()
Method Detail

notifyEnabled

public boolean notifyEnabled(int type)
Specified by:
notifyEnabled in interface JmolCallbackListener

notifyCallback

public void notifyCallback(int type,
                           java.lang.Object[] data)
Specified by:
notifyCallback in interface JmolCallbackListener

setCallbackFunction

public void setCallbackFunction(java.lang.String callbackType,
                                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 ("you do it" or canceled) or a message starting with OK or an error message

notifyAtomPicked

private void notifyAtomPicked(java.lang.String info)

notifyFileLoaded

private void notifyFileLoaded(java.lang.String fullPathName,
                              java.lang.String fileName,
                              java.lang.String modelName,
                              java.lang.String errorMsg)

notifyFrameChanged

private void notifyFrameChanged(int frameNo,
                                int file,
                                int model)

sendConsoleEcho

private void sendConsoleEcho(java.lang.String strEcho)

sendConsoleMessage

private void sendConsoleMessage(java.lang.String strStatus)

showUrl

public void showUrl(java.lang.String url)
Specified by:
showUrl in interface JmolStatusListener

functionXY

public float[][] functionXY(java.lang.String functionName,
                            int nX,
                            int nY)
this is just a test method for isosurface FUNCTIONXY

Specified by:
functionXY in interface JmolStatusListener
Parameters:
functionName -
nX -
nY -
Returns:
f(x,y) as a 2D array

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

getRegistryInfo

public java.util.Hashtable getRegistryInfo()
Specified by:
getRegistryInfo in interface JmolStatusListener

dialogAsk

public java.lang.String dialogAsk(java.lang.String type,
                                  java.lang.String fileName)
Specified by:
dialogAsk in interface JmolStatusListener