Package jme
Class JME
- All Implemented Interfaces:
KeyListener
,MouseListener
,MouseMotionListener
,ImageObserver
,MenuContainer
,Serializable
,EventListener
,Accessible
- Direct Known Subclasses:
JmolJME
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
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
FieldsModifier and TypeFieldDescriptionprotected boolean
protected boolean
int[]
int[]
protected boolean
protected boolean
protected boolean
int[]
int[]
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected String
protected boolean
protected boolean
protected boolean
protected JMEmol[]
protected boolean
protected boolean
protected boolean
protected boolean
int
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
protected boolean
doAction()
protected boolean
protected void
protected void
doNewMoleculeAction
(int x, int y) getColor()
void
boolean
protected void
jmeFile()
boolean
void
void
void
static void
molFile()
void
boolean
mouseDown
(MouseEvent e, int x, int y) boolean
mouseDrag
(MouseEvent e, int x, int y) void
void
void
boolean
mouseMove
(MouseEvent e, int x, int y) void
void
void
boolean
mouseUp
(MouseEvent e, int x, int y) void
void
protected void
void
ping()
void
readMolecule
(String molecule) void
void
reset()
void
protected boolean
setMol
(boolean checkMultipart) void
void
setTemplate
(String t, String name) void
void
smiles()
void
start()
void
stop()
void
protected void
updateMark
(int n) Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
myFrame
-
application
protected boolean application -
infoText
-
bwMode
protected boolean bwMode -
runsmi
protected boolean runsmi -
canonize
protected boolean canonize -
stereo
protected boolean stereo -
multipart
protected boolean multipart -
xButton
protected boolean xButton -
rButton
protected boolean rButton -
showHydrogens
protected boolean showHydrogens -
query
protected boolean query -
reaction
protected boolean reaction -
autoez
protected boolean autoez -
writesmi
protected boolean writesmi -
writemi
protected boolean writemi -
writemol
protected boolean writemol -
number
protected boolean number -
star
protected boolean star -
autonumber
protected boolean autonumber -
jmeh
protected boolean jmeh -
depict
protected boolean depict -
depictBorder
protected boolean depictBorder -
keepHydrogens
protected boolean keepHydrogens -
nocenter
protected boolean nocenter -
polarnitro
protected boolean polarnitro -
showAtomNumbers
protected boolean showAtomNumbers -
doMenu
protected boolean doMenu -
movePossible
protected boolean movePossible -
newMolecule
protected boolean newMolecule -
afterClear
protected boolean afterClear -
mouseShift
protected boolean mouseShift -
dyMode
protected boolean dyMode -
mol
-
nmols
public int nmols -
mols
-
doTags
protected boolean doTags -
webme
protected boolean webme -
apointx
public int[] apointx -
apointy
public int[] apointy -
bpointx
public int[] bpointx -
bpointy
public int[] bpointy -
revertStereo
protected boolean revertStereo -
relativeStereo
protected boolean relativeStereo -
allHs
protected boolean allHs -
markUsed
protected boolean markUsed -
embedded
protected boolean embedded
-
-
Constructor Details
-
JME
public JME() -
JME
-
-
Method Details
-
setFrame
-
main
-
getColor
-
activateQuery
public void activateQuery() -
initialize
protected void initialize() -
start
public void start() -
stop
public void stop() -
ping
public void ping() -
smiles
-
nonisomericSmiles
-
reset
public void reset() -
clear
public void clear() -
jmeFile
-
readMolecule
-
setTemplate
-
molFile
-
readMolFile
-
setMol
protected boolean setMol(boolean checkMultipart) -
setSubstituent
-
options
-
setText
-
showAtomNumbers
public void showAtomNumbers() -
hasPrevious
public boolean hasPrevious() -
getPreviousMolecule
public void getPreviousMolecule() -
paint
- Overrides:
paint
in classJComponent
-
update
- Overrides:
update
in classJComponent
-
paintMolecularArea
-
mouseDown
-
doAction
protected boolean doAction() -
doNewMoleculeAction
protected void doNewMoleculeAction(int x, int y) -
doMouseBondAction
protected void doMouseBondAction() -
doMouseAtomAction
protected boolean doMouseAtomAction() -
mouseUp
- Parameters:
e
-x
-y
-- Returns:
- ignored
-
mouseDrag
-
mouseMove
- Parameters:
e
-x
-y
-- Returns:
- ignored
-
keyDown
-
updateMark
protected void updateMark(int n) -
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
keyTyped
- Specified by:
keyTyped
in interfaceKeyListener
-
keyPressed
- Specified by:
keyPressed
in interfaceKeyListener
-
keyReleased
- Specified by:
keyReleased
in interfaceKeyListener
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-