toxtree.ui.molecule
Class MoleculeEditAction
java.lang.Object
javax.swing.AbstractAction
ambit2.jchempaint.editor.AbstractMoleculeAction
toxtree.ui.molecule.MoleculeEditAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
- Direct Known Subclasses:
- RuleMoleculeEditAction
public class MoleculeEditAction
- extends ambit2.jchempaint.editor.AbstractMoleculeAction
Launches JChemPaint structure diagram editor for a preset molecule
- Author:
- Nina Jeliazkova
Modified 2005-10-23
- See Also:
- Serialized Form
Field Summary |
protected ambit2.jchempaint.editor.JChemPaintDialog |
jcpDialog
|
protected org.openscience.cdk.interfaces.IChemModel |
jcpModel
|
protected boolean |
modal
|
protected org.openscience.cdk.interfaces.IMoleculeSet |
molecules
|
protected java.awt.Component |
parentComponent
|
protected org.openscience.cdk.layout.StructureDiagramGenerator |
sdg
|
Fields inherited from class ambit2.jchempaint.editor.AbstractMoleculeAction |
molecule |
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary |
MoleculeEditAction(org.openscience.cdk.interfaces.IMolecule molecule)
|
MoleculeEditAction(org.openscience.cdk.interfaces.IMolecule molecule,
java.lang.String arg0)
|
MoleculeEditAction(org.openscience.cdk.interfaces.IMolecule molecule,
java.lang.String arg0,
javax.swing.Icon arg1)
|
Methods inherited from class ambit2.jchempaint.editor.AbstractMoleculeAction |
getMolecule |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
molecules
protected org.openscience.cdk.interfaces.IMoleculeSet molecules
jcpModel
protected org.openscience.cdk.interfaces.IChemModel jcpModel
sdg
protected org.openscience.cdk.layout.StructureDiagramGenerator sdg
parentComponent
protected java.awt.Component parentComponent
jcpDialog
protected ambit2.jchempaint.editor.JChemPaintDialog jcpDialog
modal
protected boolean modal
MoleculeEditAction
public MoleculeEditAction(org.openscience.cdk.interfaces.IMolecule molecule)
MoleculeEditAction
public MoleculeEditAction(org.openscience.cdk.interfaces.IMolecule molecule,
java.lang.String arg0)
MoleculeEditAction
public MoleculeEditAction(org.openscience.cdk.interfaces.IMolecule molecule,
java.lang.String arg0,
javax.swing.Icon arg1)
setJCPModel
protected void setJCPModel()
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent arg0)
setMolecule
public void setMolecule(org.openscience.cdk.interfaces.IMolecule molecule)
- Overrides:
setMolecule
in class ambit2.jchempaint.editor.AbstractMoleculeAction
getMoleculeForEdit
protected org.openscience.cdk.interfaces.IMoleculeSet getMoleculeForEdit(org.openscience.cdk.interfaces.IAtomContainer atomContainer)
throws java.lang.Exception
- Throws:
java.lang.Exception
getParentComponent
public java.awt.Component getParentComponent()
- Returns:
- Returns the parentComponent.
setParentComponent
public void setParentComponent(java.awt.Component parentComponent)
- Parameters:
parentComponent
- The parentComponent to set.
getParent
protected javax.swing.JFrame getParent(java.awt.Component c)
editMolecule
public void editMolecule(boolean editable,
java.awt.Component frame)
updateMolecule
protected void updateMolecule(org.openscience.cdk.interfaces.IMolecule mol)
isModal
public boolean isModal()
setModal
public void setModal(boolean modal)
Copyright © 2004-2012 Ideaconsult Ltd.. All Rights Reserved.