org.jmol.api
Class JmolSimpleViewer

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

public abstract class JmolSimpleViewer
extends java.lang.Object

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


Constructor Summary
JmolSimpleViewer()
           
 
Method Summary
static JmolSimpleViewer allocateSimpleViewer(java.awt.Component awtComponent, JmolAdapter jmolAdapter)
          This is the main access point for creating an application or applet viewer.
abstract  java.lang.String evalFile(java.lang.String strFilename)
           
abstract  java.lang.String evalString(java.lang.String strScript)
           
abstract  java.lang.String getOpenFileError()
           
abstract  void openDOM(java.lang.Object DOMNode)
           
abstract  void openFile(java.lang.String name)
           
abstract  void openStringInline(java.lang.String strModel)
           
abstract  void renderScreenImage(java.awt.Graphics g, java.awt.Dimension size, java.awt.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(java.awt.Component awtComponent,
                                                    JmolAdapter jmolAdapter)
This is the main access point for creating an application or applet viewer. After allocation it is MANDATORY that one of the next commands is either viewer.evalString("ZAP"); This command is necessary to establish the first modelset, which might be required by one or more later evaluated commands or file loadings.

Parameters:
awtComponent -
jmolAdapter -
Returns:
a JmolViewer object

renderScreenImage

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

evalFile

public abstract java.lang.String evalFile(java.lang.String strFilename)

evalString

public abstract java.lang.String evalString(java.lang.String strScript)

openStringInline

public abstract void openStringInline(java.lang.String strModel)

openDOM

public abstract void openDOM(java.lang.Object DOMNode)

openFile

public abstract void openFile(java.lang.String name)

getOpenFileError

public abstract java.lang.String getOpenFileError()