Package org.openscience.cdk

Examples of org.openscience.cdk.PseudoAtom


            if(!atom.getSymbol().equals(symbolField.getText()))
              hub.setSymbol(atom, symbolField.getText());
            if(atom.getMassNumber()==null || atom.getMassNumber()!=majorIsotopeNumber+((Integer)isotopeField.getValue()).intValue())
              hub.setMassNumber(atom,majorIsotopeNumber+((Integer)isotopeField.getValue()).intValue());
          }else{
              PseudoAtom pseudo = new PseudoAtom(atom);
              pseudo.setLabel(symbolField.getText());
              pseudo.setImplicitHydrogenCount(((Integer)hCountField.getValue()).intValue());
              pseudo.setFormalCharge(((Integer)formalChargeField.getValue()).intValue());
              pseudo.setMassNumber(majorIsotopeNumber+((Integer)isotopeField.getValue()).intValue());
          }

        }catch(IOException ex){
          if(atom.getImplicitHydrogenCount()!=((Integer)hCountField.getValue()).intValue())
            hub.setImplicitHydrogenCount(atom,((Integer)hCountField.getValue()).intValue());
View Full Code Here


    range:
    while(atomsInRange.hasNext()){
            IAtom atom = atomsInRange.next();
          if(type.equals("normal")){
                PseudoAtom pseudo = (PseudoAtom)atom;
                IAtom normal = pseudo.getBuilder().newInstance(IPseudoAtom.class,pseudo);
                normal.setSymbol("C");
                jcpPanel.get2DHub().replaceAtom(normal,pseudo);
          }else {
            jcpPanel.get2DHub().convertToPseudoAtom(atom,label);
                AddAtomModule newActiveModule = new AddAtomModule(jcpPanel.get2DHub(), IBond.Stereo.NONE);
View Full Code Here

TOP

Related Classes of org.openscience.cdk.PseudoAtom

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.