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:
ImageObserver
,MenuContainer
,Serializable
,Accessible
,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
JApplet.AccessibleJApplet
-
Nested classes/interfaces inherited from class java.applet.Applet
Applet.AccessibleApplet
-
Nested classes/interfaces inherited from class java.awt.Panel
Panel.AccessibleAWTPanel
-
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
-
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
-
Field Summary
Fields Modifier and Type Field Description private static String[]
preloadClasses
-
Fields inherited from class org.jmol.applet.AppletWrapper
wrappedApplet
-
Fields inherited from class javax.swing.JApplet
accessibleContext, rootPane, rootPaneCheckingEnabled
-
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
-
Constructor Summary
Constructors Constructor Description JmolApplet()
-
Method Summary
-
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
-
-
-
-
Field Detail
-
preloadClasses
private static final String[] preloadClasses
-
-
Method Detail
-
getPropertyAsString
public String getPropertyAsString(String infoType)
- Specified by:
getPropertyAsString
in interfaceJmolAppletInterface
-
getPropertyAsString
public String getPropertyAsString(String infoType, String paramInfo)
- Specified by:
getPropertyAsString
in interfaceJmolAppletInterface
-
getPropertyAsJSON
public String getPropertyAsJSON(String infoType)
- Specified by:
getPropertyAsJSON
in interfaceJmolAppletInterface
-
getPropertyAsJSON
public String getPropertyAsJSON(String infoType, String paramInfo)
- Specified by:
getPropertyAsJSON
in interfaceJmolAppletInterface
-
getJSpecViewProperty
public Map<String,Object> getJSpecViewProperty(String infoType)
- Specified by:
getJSpecViewProperty
in interfaceJmolSyncInterface
-
getProperty
public Object getProperty(String infoType, String paramInfo)
- Specified by:
getProperty
in interfaceJmolAppletInterface
-
getProperty
public Object getProperty(String infoType)
- Specified by:
getProperty
in interfaceJmolAppletInterface
-
loadInlineArray
public String loadInlineArray(String[] strModels, String script, boolean isAppend)
- Specified by:
loadInlineArray
in interfaceJmolAppletInterface
-
loadInlineString
public String loadInlineString(String strModel, String script, boolean isAppend)
- Specified by:
loadInlineString
in interfaceJmolAppletInterface
-
loadInline
@Deprecated public String loadInline(String strModel)
Deprecated.- Specified by:
loadInline
in interfaceJmolAppletInterface
- Parameters:
strModel
-- Returns:
- error or null
-
loadInline
@Deprecated public String loadInline(String strModel, String script)
Deprecated.- Specified by:
loadInline
in interfaceJmolAppletInterface
- Parameters:
strModel
-script
-- Returns:
- error or null
-
loadInline
@Deprecated public String loadInline(String[] strModels)
Deprecated.- Specified by:
loadInline
in interfaceJmolAppletInterface
- Parameters:
strModels
-- Returns:
- error or null
-
loadInline
@Deprecated public String loadInline(String[] strModels, String script)
Deprecated.- Specified by:
loadInline
in interfaceJmolAppletInterface
- Parameters:
strModels
-script
-- Returns:
- error or null
-
loadDOMNode
public String loadDOMNode(Object DOMNode)
- Specified by:
loadDOMNode
in interfaceJmolAppletInterface
-
script
public void script(String script)
- Specified by:
script
in interfaceJmolAppletInterface
-
syncScript
public void syncScript(String script)
- Specified by:
syncScript
in interfaceJmolSyncInterface
-
setStereoGraphics
public Object setStereoGraphics(boolean isStereo)
- Specified by:
setStereoGraphics
in interfaceJmolAppletInterface
-
scriptNoWait
public String scriptNoWait(String script)
- Specified by:
scriptNoWait
in interfaceJmolAppletInterface
-
scriptCheck
public String scriptCheck(String script)
- Specified by:
scriptCheck
in interfaceJmolAppletInterface
-
scriptWait
public String scriptWait(String script)
- Specified by:
scriptWait
in interfaceJmolAppletInterface
-
scriptWait
public String scriptWait(String script, String statusParams)
- Specified by:
scriptWait
in interfaceJmolAppletInterface
-
scriptWaitOutput
public String scriptWaitOutput(String script)
- Specified by:
scriptWaitOutput
in interfaceJmolAppletInterface
-
register
public void register(String id, JmolSyncInterface jsi)
- Specified by:
register
in interfaceJmolSyncInterface
-
getModelIndexFromId
public int getModelIndexFromId(String id)
- Specified by:
getModelIndexFromId
in 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(Object htParams)
- Specified by:
notifyAudioEnded
in interfaceJmolAppletInterface
-
-