|
ChemWriter v1.3.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
javax.swing.JApplet
com.metamolecular.chemwriter.applet.BaseApplet
public abstract class BaseApplet
The base class for ChemWriter™ applets.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.BaselineResizeBehavior |
| Field Summary |
|---|
| 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 |
| Method Summary | |
|---|---|
void |
clearAtomColors()
Clears all atom coloring, making all atoms appear in the bond color. |
void |
copyStyle(PaintStyler styler)
Copies all settings from styler to this PaintStyler. |
void |
flash(java.lang.String message)
Display message as a JOptionPane. |
java.lang.String |
getAppletInfo()
Returns version number, copyright notice, and license status. |
java.awt.Color |
getAtomColor(java.lang.String atomSymbol)
Returns the color for atoms of atomic symbol atomSymbol. |
java.lang.String |
getAtomLabelFont()
Returns the name of the font being used to render atom labels. |
java.lang.String[] |
getAtomLabelFonts()
Returns an array containing the names of the fonts that can be used for Atom labels. |
double |
getAtomLabelHeight()
Returns the atom label height, as a ratio of the median bond length. |
java.awt.Color |
getBackgroundColor()
Returns the background color. |
java.awt.Color |
getBondColor()
Returns the bond color. |
java.lang.String |
getCapStyle()
Returns the line cap style. |
java.lang.String[] |
getColoredAtoms()
Returns an array of atom labels that this PaintStyler will color. |
double |
getLineEndPadding()
Returns the end line padding. |
double |
getLineOffset()
Returns the multiple bond line offset as a ratio of the median bond length. |
double |
getLineWidth()
Returns the line width, as a ratio of the median bond length. |
abstract java.lang.String |
getMolfile()
Returns the molfile representation of the molecule contained in this applet. |
java.lang.String[][] |
getParameterInfo()
|
double |
getStereoWidth()
Returns the maximum width of a stereo bond, as a ratio of the bond length. |
void |
init()
|
boolean |
isAntialiasing()
Returns true if antialiasing is activated or false otherwise. |
boolean |
isAtomColoringEnabled()
Returns true if atom coloring is enabled, or false otherwise. |
abstract boolean |
isBlank()
Returns true if this applet's canvas contains no molecule, or false otherwise. |
boolean |
isCarbonVisible()
Returns true if carbon atoms and their associated virutal hydrogens are rendered or false otherwise. |
boolean |
isRenderVirtualHydrogens()
Returns true if heteroatom virtual hydrogens are rendered or false otherwise. |
boolean |
isVirtualizeHydrogens()
Returns true if this applet virtualized hydrogen atoms from molfile input, or false otherwise. |
void |
setAntialiasing(boolean antialiasing)
Determines whether antialiasing is used. |
void |
setAtomColor(java.lang.String atomSymbol,
java.awt.Color color)
Sets the color for atoms of atomic symbol atomicSymbol to color |
void |
setAtomColor(java.lang.String atomSymbol,
int red,
int green,
int blue)
Sets the color for atoms of atomic symbol atomicSymbol to the color represented by the values red, green, and blue. |
void |
setAtomColoringEnabled(boolean enabled)
Turns atom coloring on and off. |
void |
setAtomLabelFont(java.lang.String font)
Sets the name of the font being used to render atom labels. |
void |
setAtomLabelHeight(double height)
Sets the atom label height, as a ratio of the median bond length. |
void |
setBackgroundColor(java.awt.Color color)
Sets the background color to color. |
void |
setBackgroundColor(int red,
int green,
int blue)
Sets the background color to that represented by the red green, and blue values. |
void |
setBondColor(java.awt.Color color)
Sets the bond color to color. |
void |
setBondColor(int red,
int green,
int blue)
Sets the bond color to that represented by the red, green, and blue values. |
void |
setCapStyle(java.lang.String endCap)
Sets the line cap style: "square", "round", or "none". |
void |
setCarbonVisible(boolean visible)
Determines whether carbon atoms and their associated virtual hydrogens will be rendered. |
void |
setLineEndPadding(double padding)
Sets line end padding to padding. |
void |
setLineOffset(double offset)
Sets the multiple bond line offset, as a ratio of the bond length. |
void |
setLineWidth(double width)
Sets the line width, as a ratio of the median bond length. |
abstract void |
setMolfile(java.lang.String molfile)
Replaces the current molecule with one defined by molfile. |
void |
setRenderVirtualHydrogens(boolean visible)
Determines whether heteroatom virtual hydrogens will be rendered. |
void |
setStereoWidth(double width)
Sets the maximum width of a stereo bond, as a ratio of the bond length. |
void |
setVirtualizeHydrogens(boolean virtualizeHydrogens)
Removes hydrogens from non-stereogenic carbons and non-metallic heteroatoms for all molfile input. |
| Methods inherited from class javax.swing.JApplet |
|---|
getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update |
| Methods inherited from class java.applet.Applet |
|---|
destroy, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop |
| Methods inherited from class java.awt.Panel |
|---|
addNotify |
| 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, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, 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, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public abstract boolean isBlank()
public double getLineEndPadding()
PaintStyler
getLineEndPadding in interface PaintStylerpublic void setLineEndPadding(double padding)
PaintStyler
setLineEndPadding in interface PaintStylerpadding - the spacing between a single bond terminus and a visible
atom label, relative to the median bond lengthpublic java.lang.String[] getAtomLabelFonts()
PaintStyler
getAtomLabelFonts in interface PaintStylerpublic java.lang.String getAppletInfo()
getAppletInfo in class java.applet.Appletpublic java.lang.String[][] getParameterInfo()
getParameterInfo in class java.applet.Appletpublic void init()
init in class java.applet.Appletpublic void clearAtomColors()
PaintStyler
clearAtomColors in interface PaintStylerpublic void copyStyle(PaintStyler styler)
PaintStyler
copyStyle in interface PaintStylerstyler - the PaintStyler from which setting will be copiedpublic java.awt.Color getAtomColor(java.lang.String atomSymbol)
PaintStyler
getAtomColor in interface PaintStyleratomSymbol - the case-sensitive one- or two-character atomic
symbol to query
public java.lang.String getAtomLabelFont()
PaintStyler
getAtomLabelFont in interface PaintStylerpublic double getAtomLabelHeight()
PaintStyler
getAtomLabelHeight in interface PaintStylerpublic java.awt.Color getBackgroundColor()
PaintStyler
getBackgroundColor in interface PaintStylerpublic java.awt.Color getBondColor()
PaintStyler
getBondColor in interface PaintStylerpublic java.lang.String getCapStyle()
PaintStyler
getCapStyle in interface PaintStylerpublic java.lang.String[] getColoredAtoms()
PaintStyler
getColoredAtoms in interface PaintStylerpublic double getLineOffset()
PaintStyler
getLineOffset in interface PaintStylerpublic double getLineWidth()
PaintStyler
getLineWidth in interface PaintStylerpublic double getStereoWidth()
PaintStyler
getStereoWidth in interface PaintStylerpublic boolean isAntialiasing()
PaintStyler
isAntialiasing in interface PaintStylerpublic boolean isAtomColoringEnabled()
PaintStyler
isAtomColoringEnabled in interface PaintStylerpublic boolean isCarbonVisible()
PaintStyler
isCarbonVisible in interface PaintStylerpublic boolean isRenderVirtualHydrogens()
PaintStyler
isRenderVirtualHydrogens in interface PaintStylerpublic void setAntialiasing(boolean antialiasing)
PaintStyler
setAntialiasing in interface PaintStylerantialiasing - true if activated for false otherwise
public void setAtomColor(java.lang.String atomSymbol,
java.awt.Color color)
PaintStyler
setAtomColor in interface PaintStyleratomSymbol - the case-sensitive one- or two-character atomic
symbol to colorcolor - the new color for atoms of atomic symbol atomSymbol
public void setAtomColor(java.lang.String atomSymbol,
int red,
int green,
int blue)
PaintStyler
setAtomColor in interface PaintStyleratomSymbol - the case-sensitive one- or two-character atomic
symbol to colorred - the red color component (0-255)green - the green color component (0-255)blue - the blue color component (0-255)public void setAtomColoringEnabled(boolean enabled)
PaintStyler
setAtomColoringEnabled in interface PaintStylerenabled - enables atom coloring if truepublic void setAtomLabelFont(java.lang.String font)
PaintStyler
setAtomLabelFont in interface PaintStylerfont - the name of the new font to be used in rendering
atom labelspublic void setAtomLabelHeight(double height)
PaintStyler
setAtomLabelHeight in interface PaintStylerheight - the new atom label height - greater than zeropublic void setBackgroundColor(java.awt.Color color)
PaintStyler
setBackgroundColor in interface PaintStylercolor - the new background color
public void setBackgroundColor(int red,
int green,
int blue)
PaintStyler
setBackgroundColor in interface PaintStylerred - the red color component (0-255)green - the green color component (0-255)blue - the blue color component (0-255)public void setBondColor(java.awt.Color color)
PaintStyler
setBondColor in interface PaintStylercolor - the new bond color
public void setBondColor(int red,
int green,
int blue)
PaintStyler
setBondColor in interface PaintStylerred - the red color component (0-255)green - the green color component (0-255)blue - the blue color component (0-255)public void setCapStyle(java.lang.String endCap)
PaintStyler
setCapStyle in interface PaintStylerendCap - one of "square", "round", or "none"public void setCarbonVisible(boolean visible)
PaintStyler
setCarbonVisible in interface PaintStylervisible - when true carbons and their associated
virtual hydrogens will be renderedpublic void setLineOffset(double offset)
PaintStyler
setLineOffset in interface PaintStyleroffset - the new multiple bond line offset - greater than zeropublic void setLineWidth(double width)
PaintStyler
setLineWidth in interface PaintStylerwidth - the new line width - greater than zeropublic void setRenderVirtualHydrogens(boolean visible)
PaintStyler
setRenderVirtualHydrogens in interface PaintStylervisible - when true carbons and their associated
virtual hydrogens will be renderedpublic void setStereoWidth(double width)
PaintStyler
setStereoWidth in interface PaintStylerwidth - the maximum width of a stereo bond - greater than zeropublic void setVirtualizeHydrogens(boolean virtualizeHydrogens)
virtualizeHydrogens - the settingpublic boolean isVirtualizeHydrogens()
public abstract void setMolfile(java.lang.String molfile)
molfile - the molfile representation that will replace the
current moleculepublic abstract java.lang.String getMolfile()
public void flash(java.lang.String message)
message - the message to be displayed
|
ChemWriter v1.3.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||