Package org.openscience.cdk.interfaces

Examples of org.openscience.cdk.interfaces.IAtomContainer.bonds()


      if(selectedAC == null)
          return;
      for(IAtom atom:selectedAC.atoms()) {
          chemModelRelay.removeAtom(atom);
      }
      for(IBond bond:selectedAC.bonds()) {
        chemModelRelay.removeBondAndLoneAtoms( bond );
      }
      setSelection( AbstractSelection.EMPTY_SELECTION );
  }
 
View Full Code Here


              for (IAtom mAt : droppedContainer.atoms()) {
                if (!containerWithMerge.contains(mAt)) {
                  containerWithMerge.addAtom(mAt);
                }
              }
              for (IBond mBond : droppedContainer.bonds()) {
                if (!containerWithMerge.contains(mBond)) {
                  containerWithMerge.addBond(mBond);
                }
              }
              chemModelRelay.getChemModel().getMoleculeSet().removeAtomContainer(droppedContainer);
View Full Code Here

              for (IAtom mAt : droppedContainer.atoms()) {
                if (containerWithMerge.contains(mAt)) {
                  containerWithMerge.removeAtom(mAt);
                }
              }
              for (IBond mBond : droppedContainer.bonds()) {
                if (containerWithMerge.contains(mBond)) {
                  containerWithMerge.removeBond(mBond);
                }
              }
              //restore removed container atc2
View Full Code Here

           atomsToMove = new HashSet<IAtom>();

            for (IAtom atom : selectedAC.atoms()) {
                atomsToMove.add(atom);
            }
            for (IBond bond : selectedAC.bonds()) {
                for (IAtom atom : bond.atoms()){
                    atomsToMove.add(atom);
                    selectedAC.addAtom(atom);
                }
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.