public class JMView extends AbstractMarvinApplet implements chemaxon.marvin.applet.JMViewIface
JApplet.AccessibleJApplet
Applet.AccessibleApplet
Panel.AccessibleAWTPanel
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
debug, panel
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
JMView() |
Modifier and Type | Method and Description |
---|---|
void |
addMol(String s) |
void |
addMol(String s,
String opts) |
void |
animate(String arg) |
protected void |
createGUI() |
String |
evaluateChemicalTerms(String expression,
int n) |
protected String |
evaluateChemicalTerms0(String expression,
chemaxon.struc.Molecule mol) |
String |
getAtomAlias(int n,
int i) |
int |
getAtomCount(int i) |
String |
getAtomExtraLabel(int n,
int i) |
double |
getBestTabScale() |
double |
getBestTabScale(int i) |
boolean |
getC(int i) |
int |
getCellCount() |
String |
getL(int i) |
String |
getM(int n,
String fmt) |
String |
getMImage(int n,
String fmt) |
double |
getMolExactMass(int n) |
String |
getMolFormula(int n) |
double |
getMolMass(int n) |
String |
getMProperty(int n,
String key) |
int |
getMPropertyCount(int n) |
String |
getMPropertyKey(int n,
int i) |
protected chemaxon.marvin.view.swing.ViewPanel |
getPanel() |
int |
getSelectedIndex() |
String |
getT(int i) |
double |
getTabScale(int i) |
boolean |
hasValenceError(int i) |
boolean |
isAtomSetVisible(int id) |
boolean |
isEmpty(int n) |
boolean |
isSelected(int i,
int atom) |
void |
mouseClicked(MouseEvent e)
Does nothing.
|
boolean |
selectAllAtoms(int i,
boolean v) |
boolean |
selectAtom(int i,
int atom,
boolean v) |
void |
setActionB(int i,
String s) |
void |
setActionC(int i,
boolean c,
String s) |
void |
setAtomAlias(int n,
int i,
String alias) |
void |
setAtomExtraLabel(int n,
int i,
String label) |
void |
setAtomSetColor(int i,
int rgb) |
boolean |
setAtomSetSeq(int i,
int atom,
int id) |
void |
setAtomSetVisible(int id,
boolean v) |
void |
setBondSetColor(int i,
int rgb) |
boolean |
setBondSetSeq(int i,
int j1,
int j2,
int id) |
boolean |
setBondSetSeqAll(int i,
int id) |
void |
setC(int i,
boolean s) |
void |
setL(int i,
String s) |
void |
setM(int n,
String s) |
void |
setM(int n,
String s,
String opts) |
void |
setMol(String s) |
void |
setMol(String s,
String opts) |
void |
setMProperty(int n,
String key,
String value) |
void |
setSelectedIndex(int i) |
void |
setT(int i,
String s) |
void |
start()
Starts the applet.
|
void |
stop()
Stops the applet.
|
destroy, enqueueForPrivilegedProcessing, getAppletInBrowser, getAppletInfo, getCodeBase, getParameter, getSettingsForApplet, init, isChemicalTermsExpressionSyntaxError, mouseEntered, mouseExited, mousePressed, mouseReleased, propertyChange, setPanel, setParentApplet, validateMoleculeStr, validateMoleculeStr
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
getAppletContext, getAudioClip, getAudioClip, getDocumentBase, getImage, getImage, getLocale, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus
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, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
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, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, 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, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected void createGUI()
createGUI
in class AbstractMarvinApplet
protected chemaxon.marvin.view.swing.ViewPanel getPanel()
getPanel
in class AbstractMarvinApplet
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
mouseClicked
in class AbstractMarvinApplet
public void stop()
stop
in class AbstractMarvinApplet
public void start()
AbstractMarvinApplet
start
in class AbstractMarvinApplet
public void animate(String arg)
animate
in interface chemaxon.marvin.applet.JMViewIface
public boolean isEmpty(int n)
isEmpty
in interface chemaxon.marvin.applet.JMViewIface
public String getM(int n, String fmt)
getM
in interface chemaxon.marvin.applet.JMViewIface
public String getMImage(int n, String fmt)
getMImage
in interface chemaxon.marvin.applet.JMViewIface
public String getMProperty(int n, String key)
getMProperty
in interface chemaxon.marvin.applet.JMViewIface
public void setMProperty(int n, String key, String value)
setMProperty
in interface chemaxon.marvin.applet.JMViewIface
public int getMPropertyCount(int n)
getMPropertyCount
in interface chemaxon.marvin.applet.JMViewIface
public String getMPropertyKey(int n, int i)
getMPropertyKey
in interface chemaxon.marvin.applet.JMViewIface
public void setAtomAlias(int n, int i, String alias)
setAtomAlias
in interface chemaxon.marvin.applet.JMViewIface
public String getAtomAlias(int n, int i)
getAtomAlias
in interface chemaxon.marvin.applet.JMViewIface
public void setAtomExtraLabel(int n, int i, String label)
setAtomExtraLabel
in interface chemaxon.marvin.applet.JMViewIface
public String getAtomExtraLabel(int n, int i)
getAtomExtraLabel
in interface chemaxon.marvin.applet.JMViewIface
public double getMolMass(int n)
getMolMass
in interface chemaxon.marvin.applet.JMViewIface
public double getMolExactMass(int n)
getMolExactMass
in interface chemaxon.marvin.applet.JMViewIface
public String getMolFormula(int n)
getMolFormula
in interface chemaxon.marvin.applet.JMViewIface
public String evaluateChemicalTerms(String expression, int n)
evaluateChemicalTerms
in interface chemaxon.marvin.applet.JMViewIface
protected String evaluateChemicalTerms0(String expression, chemaxon.struc.Molecule mol)
evaluateChemicalTerms0
in class AbstractMarvinApplet
public void addMol(String s)
addMol
in interface chemaxon.marvin.applet.JMViewIface
public void addMol(String s, String opts)
addMol
in interface chemaxon.marvin.applet.JMViewIface
public void setMol(String s)
setMol
in interface chemaxon.marvin.applet.JMViewIface
public void setMol(String s, String opts)
setMol
in interface chemaxon.marvin.applet.JMViewIface
public void setM(int n, String s)
setM
in interface chemaxon.marvin.applet.JMViewIface
public void setM(int n, String s, String opts)
setM
in interface chemaxon.marvin.applet.JMViewIface
public String getL(int i)
getL
in interface chemaxon.marvin.applet.JMViewIface
public void setL(int i, String s)
setL
in interface chemaxon.marvin.applet.JMViewIface
public boolean getC(int i)
getC
in interface chemaxon.marvin.applet.JMViewIface
public void setC(int i, boolean s)
setC
in interface chemaxon.marvin.applet.JMViewIface
public void setActionB(int i, String s)
setActionB
in interface chemaxon.marvin.applet.JMViewIface
public void setActionC(int i, boolean c, String s)
setActionC
in interface chemaxon.marvin.applet.JMViewIface
public String getT(int i)
getT
in interface chemaxon.marvin.applet.JMViewIface
public void setT(int i, String s)
setT
in interface chemaxon.marvin.applet.JMViewIface
public int getCellCount()
getCellCount
in interface chemaxon.marvin.applet.JMViewIface
public int getSelectedIndex()
getSelectedIndex
in interface chemaxon.marvin.applet.JMViewIface
public void setSelectedIndex(int i)
setSelectedIndex
in interface chemaxon.marvin.applet.JMViewIface
public int getAtomCount(int i)
getAtomCount
in interface chemaxon.marvin.applet.JMViewIface
public boolean selectAllAtoms(int i, boolean v)
selectAllAtoms
in interface chemaxon.marvin.applet.JMViewIface
public boolean selectAtom(int i, int atom, boolean v)
selectAtom
in interface chemaxon.marvin.applet.JMViewIface
public boolean isSelected(int i, int atom)
isSelected
in interface chemaxon.marvin.applet.JMViewIface
public boolean isAtomSetVisible(int id)
isAtomSetVisible
in interface chemaxon.marvin.applet.JMViewIface
public void setAtomSetVisible(int id, boolean v)
setAtomSetVisible
in interface chemaxon.marvin.applet.JMViewIface
public void setAtomSetColor(int i, int rgb)
setAtomSetColor
in interface chemaxon.marvin.applet.JMViewIface
public boolean setAtomSetSeq(int i, int atom, int id)
setAtomSetSeq
in interface chemaxon.marvin.applet.JMViewIface
public void setBondSetColor(int i, int rgb)
setBondSetColor
in interface chemaxon.marvin.applet.JMViewIface
public boolean setBondSetSeq(int i, int j1, int j2, int id)
setBondSetSeq
in interface chemaxon.marvin.applet.JMViewIface
public boolean setBondSetSeqAll(int i, int id)
setBondSetSeqAll
in interface chemaxon.marvin.applet.JMViewIface
public double getTabScale(int i)
getTabScale
in interface chemaxon.marvin.applet.JMViewIface
public double getBestTabScale(int i)
getBestTabScale
in interface chemaxon.marvin.applet.JMViewIface
public double getBestTabScale()
getBestTabScale
in interface chemaxon.marvin.applet.JMViewIface
public boolean hasValenceError(int i)
hasValenceError
in interface chemaxon.marvin.applet.JMViewIface