Package org.openscience.cdk.interfaces

Examples of org.openscience.cdk.interfaces.ISingleElectron


   * openscience.cdk.interfaces.IAtom)
   */
  public void addSingleElectron(IAtom atom) {
    IAtomContainer relevantContainer = ChemModelManipulator
        .getRelevantAtomContainer(chemModel, atom);
    ISingleElectron singleElectron = atom.getBuilder().newInstance(ISingleElectron.class,atom);
    relevantContainer.addSingleElectron(singleElectron);
    updateAtom(atom);
    if (undoredofactory != null && undoredohandler != null) {
      IUndoRedoable undoredo = undoredofactory.getSingleElectronEdit(
          relevantContainer, singleElectron, true, this, atom,
View Full Code Here


   */
  public void removeSingleElectron(IAtom atom) {
    IAtomContainer relevantContainer = ChemModelManipulator
        .getRelevantAtomContainer(chemModel, atom);
    if (relevantContainer.getConnectedSingleElectronsCount(atom) > 0) {
      ISingleElectron removedElectron = relevantContainer
          .removeSingleElectron(relevantContainer
              .getConnectedSingleElectronsCount(atom) - 1);
      updateAtom(atom);
      if (undoredofactory != null && undoredohandler != null) {
        IUndoRedoable undoredo = undoredofactory.getSingleElectronEdit(
View Full Code Here

TOP

Related Classes of org.openscience.cdk.interfaces.ISingleElectron

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.