Logo Search packages:      
Sourcecode: cdk version File versions  Download package

PeriodicTableElement org::openscience::cdk::config::ElementPTFactory::configure ( PeriodicTableElement  element  )  [inline]

Configures an element. Finds the correct element type by looking at the element symbol.

Parameters:
element The element to be configure
Returns:
The configured atom

Definition at line 157 of file ElementPTFactory.java.

References org::openscience::cdk::Element::getAtomicNumber(), org::openscience::cdk::PeriodicTableElement::getCASid(), org::openscience::cdk::PeriodicTableElement::getChemicalSerie(), getElement(), org::openscience::cdk::PeriodicTableElement::getGroup(), org::openscience::cdk::PeriodicTableElement::getName(), org::openscience::cdk::PeriodicTableElement::getPeriod(), org::openscience::cdk::PeriodicTableElement::getPhase(), org::openscience::cdk::Element::getSymbol(), org::openscience::cdk::Element::setAtomicNumber(), org::openscience::cdk::PeriodicTableElement::setCASid(), org::openscience::cdk::PeriodicTableElement::setChemicalSerie(), org::openscience::cdk::PeriodicTableElement::setGroup(), org::openscience::cdk::PeriodicTableElement::setName(), org::openscience::cdk::PeriodicTableElement::setPeriod(), org::openscience::cdk::PeriodicTableElement::setPhase(), and org::openscience::cdk::Element::setSymbol().

Referenced by org::openscience::cdk::applications::swing::PeriodicTablePanel::createButton().

      {
            PeriodicTableElement elementInt = getElement(element.getSymbol());
            
            element.setSymbol(elementInt.getSymbol());
            element.setAtomicNumber(elementInt.getAtomicNumber());
            element.setName(elementInt.getName());
            element.setChemicalSerie(elementInt.getChemicalSerie());
            element.setPeriod(elementInt.getPeriod());
            element.setGroup(elementInt.getGroup());
            element.setPhase(elementInt.getPhase());
            element.setCASid(elementInt.getCASid());
            return element;
      }


Generated by  Doxygen 1.6.0   Back to index