org.jmol.api
Class JmolSimpleViewer
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JmolSimpleViewer
public JmolSimpleViewer()
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