Package org.jmol.applet
Class JmolApplet
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- java.awt.Panel
-
- java.applet.Applet
-
- javax.swing.JApplet
-
- org.jmol.applet.AppletWrapper
-
- org.jmol.applet.JmolApplet
-
- All Implemented Interfaces:
java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,javax.accessibility.Accessible,javax.swing.RootPaneContainer,JmolAppletInterface,JmolSyncInterface
public class JmolApplet extends AppletWrapper implements JmolAppletInterface
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.JApplet
javax.swing.JApplet.AccessibleJApplet
-
Nested classes/interfaces inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]preloadClasses-
Fields inherited from class org.jmol.applet.AppletWrapper
wrappedApplet
-
Fields inherited from class javax.swing.JApplet
accessibleContext, rootPane, rootPaneCheckingEnabled
-
-
Constructor Summary
Constructors Constructor Description JmolApplet()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getJSpecViewProperty(java.lang.String infoType)intgetModelIndexFromId(java.lang.String id)java.lang.ObjectgetProperty(java.lang.String infoType)java.lang.ObjectgetProperty(java.lang.String infoType, java.lang.String paramInfo)java.lang.StringgetPropertyAsJSON(java.lang.String infoType)java.lang.StringgetPropertyAsJSON(java.lang.String infoType, java.lang.String paramInfo)java.lang.StringgetPropertyAsString(java.lang.String infoType)java.lang.StringgetPropertyAsString(java.lang.String infoType, java.lang.String paramInfo)java.lang.StringloadDOMNode(java.lang.Object DOMNode)java.lang.StringloadInline(java.lang.String strModel)Deprecated.java.lang.StringloadInline(java.lang.String[] strModels)Deprecated.java.lang.StringloadInline(java.lang.String[] strModels, java.lang.String script)Deprecated.java.lang.StringloadInline(java.lang.String strModel, java.lang.String script)Deprecated.java.lang.StringloadInlineArray(java.lang.String[] strModels, java.lang.String script, boolean isAppend)java.lang.StringloadInlineString(java.lang.String strModel, java.lang.String script, boolean isAppend)voidnotifyAudioEnded(java.lang.Object htParams)voidregister(java.lang.String id, JmolSyncInterface jsi)voidregisterApplet(java.lang.String id, java.lang.String fullName)voidscript(java.lang.String script)java.lang.StringscriptCheck(java.lang.String script)java.lang.StringscriptNoWait(java.lang.String script)java.lang.StringscriptWait(java.lang.String script)java.lang.StringscriptWait(java.lang.String script, java.lang.String statusParams)java.lang.StringscriptWaitOutput(java.lang.String script)java.lang.ObjectsetStereoGraphics(boolean isStereo)voidsyncScript(java.lang.String script)-
Methods inherited from class org.jmol.applet.AppletWrapper
destroy, getAppletInfo, getNextPreloadClassName, handleEvent, init, isSigned, paint, repaintClock, update
-
Methods inherited from class javax.swing.JApplet
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler
-
Methods inherited from class java.applet.Applet
getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jmol.api.JmolAppletInterface
destroy, getAppletInfo, handleEvent
-
-
-
-
Method Detail
-
getPropertyAsString
public java.lang.String getPropertyAsString(java.lang.String infoType)
- Specified by:
getPropertyAsStringin interfaceJmolAppletInterface
-
getPropertyAsString
public java.lang.String getPropertyAsString(java.lang.String infoType, java.lang.String paramInfo)- Specified by:
getPropertyAsStringin interfaceJmolAppletInterface
-
getPropertyAsJSON
public java.lang.String getPropertyAsJSON(java.lang.String infoType)
- Specified by:
getPropertyAsJSONin interfaceJmolAppletInterface
-
getPropertyAsJSON
public java.lang.String getPropertyAsJSON(java.lang.String infoType, java.lang.String paramInfo)- Specified by:
getPropertyAsJSONin interfaceJmolAppletInterface
-
getJSpecViewProperty
public java.util.Map<java.lang.String,java.lang.Object> getJSpecViewProperty(java.lang.String infoType)
- Specified by:
getJSpecViewPropertyin interfaceJmolSyncInterface
-
getProperty
public java.lang.Object getProperty(java.lang.String infoType, java.lang.String paramInfo)- Specified by:
getPropertyin interfaceJmolAppletInterface
-
getProperty
public java.lang.Object getProperty(java.lang.String infoType)
- Specified by:
getPropertyin interfaceJmolAppletInterface
-
loadInlineArray
public java.lang.String loadInlineArray(java.lang.String[] strModels, java.lang.String script, boolean isAppend)- Specified by:
loadInlineArrayin interfaceJmolAppletInterface
-
loadInlineString
public java.lang.String loadInlineString(java.lang.String strModel, java.lang.String script, boolean isAppend)- Specified by:
loadInlineStringin interfaceJmolAppletInterface
-
loadInline
@Deprecated public java.lang.String loadInline(java.lang.String strModel)
Deprecated.- Specified by:
loadInlinein interfaceJmolAppletInterface- Parameters:
strModel-- Returns:
- error or null
-
loadInline
@Deprecated public java.lang.String loadInline(java.lang.String strModel, java.lang.String script)Deprecated.- Specified by:
loadInlinein interfaceJmolAppletInterface- Parameters:
strModel-script-- Returns:
- error or null
-
loadInline
@Deprecated public java.lang.String loadInline(java.lang.String[] strModels)
Deprecated.- Specified by:
loadInlinein interfaceJmolAppletInterface- Parameters:
strModels-- Returns:
- error or null
-
loadInline
@Deprecated public java.lang.String loadInline(java.lang.String[] strModels, java.lang.String script)Deprecated.- Specified by:
loadInlinein interfaceJmolAppletInterface- Parameters:
strModels-script-- Returns:
- error or null
-
loadDOMNode
public java.lang.String loadDOMNode(java.lang.Object DOMNode)
- Specified by:
loadDOMNodein interfaceJmolAppletInterface
-
script
public void script(java.lang.String script)
- Specified by:
scriptin interfaceJmolAppletInterface
-
syncScript
public void syncScript(java.lang.String script)
- Specified by:
syncScriptin interfaceJmolSyncInterface
-
setStereoGraphics
public java.lang.Object setStereoGraphics(boolean isStereo)
- Specified by:
setStereoGraphicsin interfaceJmolAppletInterface
-
scriptNoWait
public java.lang.String scriptNoWait(java.lang.String script)
- Specified by:
scriptNoWaitin interfaceJmolAppletInterface
-
scriptCheck
public java.lang.String scriptCheck(java.lang.String script)
- Specified by:
scriptCheckin interfaceJmolAppletInterface
-
scriptWait
public java.lang.String scriptWait(java.lang.String script)
- Specified by:
scriptWaitin interfaceJmolAppletInterface
-
scriptWait
public java.lang.String scriptWait(java.lang.String script, java.lang.String statusParams)- Specified by:
scriptWaitin interfaceJmolAppletInterface
-
scriptWaitOutput
public java.lang.String scriptWaitOutput(java.lang.String script)
- Specified by:
scriptWaitOutputin interfaceJmolAppletInterface
-
registerApplet
public void registerApplet(java.lang.String id, java.lang.String fullName)
-
register
public void register(java.lang.String id, JmolSyncInterface jsi)- Specified by:
registerin interfaceJmolSyncInterface
-
getModelIndexFromId
public int getModelIndexFromId(java.lang.String id)
- Specified by:
getModelIndexFromIdin interfaceJmolAppletInterface- Parameters:
id- some_id, filename#id, or ~fileNo.modelNo added ".basemodel" indicates to get the first model in a series from a JDX-MOL file.- Returns:
- model index if found; -2 if file found but model not found -2 if no file indicated and no model found -1 if no such file
-
notifyAudioEnded
public void notifyAudioEnded(java.lang.Object htParams)
- Specified by:
notifyAudioEndedin interfaceJmolAppletInterface
-
-