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.


Field Summary
protected  ApiPlatform apiPlatform
           
 
Constructor Summary
JmolSimpleViewer()
           
 
Method Summary
static JmolSimpleViewer allocateSimpleViewer(Object container, 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(Object g, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

apiPlatform

protected ApiPlatform apiPlatform
Constructor Detail

JmolSimpleViewer

public JmolSimpleViewer()
Method Detail

allocateSimpleViewer

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

Parameters:
container -
jmolAdapter -
Returns:
a JmolViewer object

renderScreenImage

public abstract void renderScreenImage(Object g,
                                       int width,
                                       int height)

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