org.jmol.api

Class JmolSimpleViewer

public abstract class JmolSimpleViewer extends Object

This is the high-level API for the JmolViewer for simple access.
Method Summary
static JmolSimpleViewerallocateSimpleViewer(Component awtComponent, JmolAdapter jmolAdapter)
This is the main access point for creating an application or applet viewer.
abstract StringevalFile(String strFilename)
abstract StringevalString(String strScript)
abstract StringgetOpenFileError()
abstract voidopenDOM(Object DOMNode)
abstract voidopenFile(String name)
abstract voidopenStringInline(String strModel)
abstract voidrenderScreenImage(Graphics g, Dimension size, Rectangle clip)

Method Detail

allocateSimpleViewer

public static JmolSimpleViewer allocateSimpleViewer(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

evalFile

public abstract String evalFile(String strFilename)

evalString

public abstract String evalString(String strScript)

getOpenFileError

public abstract String getOpenFileError()

openDOM

public abstract void openDOM(Object DOMNode)

openFile

public abstract void openFile(String name)

openStringInline

public abstract void openStringInline(String strModel)

renderScreenImage

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