org.jmol.api
Class JmolSimpleViewer

java.lang.Object
  extended by org.jmol.api.JmolSimpleViewer
Direct Known Subclasses:
JmolViewer

public abstract class JmolSimpleViewer
extends Object

This is the high-level API for the JmolViewer for simple access.


Constructor Summary
JmolSimpleViewer()
           
 
Method Summary
static JmolSimpleViewer allocateSimpleViewer(Component awtComponent, JmolAdapter jmolAdapter)
          This is the main access point for creating an application or applet viewer.
abstract  String evalFile(String strFilename)
           
abstract  String evalString(String strScript)
           
abstract  Object getProperty(String returnType, String infoType, Object paramInfo)
           
abstract  String openDOM(Object DOMNode)
           
abstract  String openFile(String fileName)
           
abstract  String openFiles(String[] fileNames)
           
abstract  String openStringInline(String strModel)
           
abstract  void renderScreenImage(Graphics g, Dimension size, Rectangle clip)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmolSimpleViewer

public JmolSimpleViewer()
Method Detail

allocateSimpleViewer

public static JmolSimpleViewer allocateSimpleViewer(Component awtComponent,
                                                    JmolAdapter jmolAdapter)
This is the main access point for creating an application or applet viewer.

Parameters:
awtComponent -
jmolAdapter -
Returns:
a JmolViewer object

renderScreenImage

public abstract void renderScreenImage(Graphics g,
                                       Dimension size,
                                       Rectangle clip)

evalFile

public abstract String evalFile(String strFilename)

evalString

public abstract String evalString(String strScript)

openStringInline

public abstract String openStringInline(String strModel)

openDOM

public abstract String openDOM(Object DOMNode)

openFile

public abstract String openFile(String fileName)

openFiles

public abstract String openFiles(String[] fileNames)

getProperty

public abstract Object getProperty(String returnType,
                                   String infoType,
                                   Object paramInfo)
Parameters:
returnType - "JSON", "string", "readable", and anything else returns the Java object.
infoType -
paramInfo -
Returns:
property data -- see org.jmol.viewer.PropertyManager.java