Examples of atoms()


Examples of org.openscience.cdk.interfaces.IRing.atoms()

            sharedAtomsCenter, ringCenterVector, bondLength);
      }
    }

    // add the ring to the source container/phantoms
    for (IAtom ringAtom : newRing.atoms()) {
      if (ringAtom != atom) {
        if (phantom)
          this.addPhantomAtom(ringAtom);
        else
          sourceContainer.addAtom(ringAtom);
View Full Code Here

Examples of org.openscience.cdk.interfaces.IRing.atoms()

        this.addPhantomBond(ringBond);
      else
        sourceContainer.addBond(ringBond);
    }
    if (!phantom)
      updateAtoms(sourceContainer, newRing.atoms());
    for (IAtom newatom : newRing.atoms()) {
      if (atom != newatom && getClosestAtom(atom) != null) {
        JChemPaintRendererModel rModel = this.getRenderer().getRenderer2DModel();
        double d = rModel.getHighlightDistance() / rModel.getScale();
        atom.getPoint2d().x += d;
View Full Code Here

Examples of org.openscience.cdk.interfaces.IRing.atoms()

      else
        sourceContainer.addBond(ringBond);
    }
    if (!phantom)
      updateAtoms(sourceContainer, newRing.atoms());
    for (IAtom newatom : newRing.atoms()) {
      if (atom != newatom && getClosestAtom(atom) != null) {
        JChemPaintRendererModel rModel = this.getRenderer().getRenderer2DModel();
        double d = rModel.getHighlightDistance() / rModel.getScale();
        atom.getPoint2d().x += d;
      }
View Full Code Here

Examples of org.openscience.cdk.interfaces.IRing.atoms()

    // atoms
    IRing newRing = createAttachRing(sharedAtoms, size, "C", phantom);
    ringPlacer.placeFusedRing(newRing, sharedAtoms, sharedAtomsCenter,
        ringCenterVector, bondLength);
    // add the new atoms and bonds
    for (IAtom ringAtom : newRing.atoms()) {
      if (ringAtom != firstAtom && ringAtom != secondAtom) {
        if (phantom)
          addPhantomAtom(ringAtom);
        else
          sourceContainer.addAtom(ringAtom);
View Full Code Here

Examples of org.openscience.cdk.interfaces.IRing.atoms()

        else
          sourceContainer.addBond(ringBond);
      }
    }
    if (!phantom)
      updateAtoms(sourceContainer, newRing.atoms());

    JChemPaintRendererModel rModel = this.getRenderer().getRenderer2DModel();
    double d = rModel.getHighlightDistance() / rModel.getScale();
    for (IAtom atom : newRing.atoms()) {
      if (atom != firstAtom && atom != secondAtom
View Full Code Here

Examples of org.openscience.cdk.interfaces.IRing.atoms()

    if (!phantom)
      updateAtoms(sourceContainer, newRing.atoms());

    JChemPaintRendererModel rModel = this.getRenderer().getRenderer2DModel();
    double d = rModel.getHighlightDistance() / rModel.getScale();
    for (IAtom atom : newRing.atoms()) {
      if (atom != firstAtom && atom != secondAtom
          && getClosestAtom(atom) != null) {
        atom.getPoint2d().x += d;
      }
    }
View Full Code Here

Examples of org.openscience.cdk.interfaces.IRing.atoms()

    } else { // assume Order.DOUBLE, so only need to add 2 double bonds
      newRing.getBond(2).setOrder(IBond.Order.DOUBLE);
      newRing.getBond(4).setOrder(IBond.Order.DOUBLE);
    }
    // add the new atoms and bonds
    for (IAtom ringAtom : newRing.atoms()) {
      if (ringAtom != firstAtom && ringAtom != secondAtom) {
        if (phantom)
          this.addPhantomAtom(ringAtom);
        else
          sourceContainer.addAtom(ringAtom);
View Full Code Here

Examples of org.openscience.cdk.interfaces.IRing.atoms()

        else
          sourceContainer.addBond(ringBond);
      }
    }
    if (!phantom)
      updateAtoms(sourceContainer, newRing.atoms());

    JChemPaintRendererModel rModel = this.getRenderer().getRenderer2DModel();
    double d = rModel.getHighlightDistance() / rModel.getScale();
    for (IAtom atom : newRing.atoms()) {
      if (atom != firstAtom && atom != secondAtom
View Full Code Here

Examples of org.openscience.cdk.interfaces.IRing.atoms()

    if (!phantom)
      updateAtoms(sourceContainer, newRing.atoms());

    JChemPaintRendererModel rModel = this.getRenderer().getRenderer2DModel();
    double d = rModel.getHighlightDistance() / rModel.getScale();
    for (IAtom atom : newRing.atoms()) {
      if (atom != firstAtom && atom != secondAtom
          && getClosestAtom(atom) != null) {
        atom.getPoint2d().x += d;
      }
    }
View Full Code Here

Examples of org.openscience.cdk.interfaces.IRing.atoms()

        if (singleSelection == null) {
            //we add the ring
        IRing newRing = this.addRingToEmptyCanvas(worldCoord);
            chemModelRelay.getRenderer().getRenderer2DModel().getMerge().clear();
            //we look if it would merge
            for(IAtom atom : newRing.atoms()){
                IAtom closestAtomInRing = this.chemModelRelay.getClosestAtom(atom);
                if( closestAtomInRing != null) {
                        chemModelRelay.getRenderer().getRenderer2DModel().getMerge().put(atom, closestAtomInRing);
                }
            }
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.