From: Egon W. <eg...@us...> - 2002-11-26 13:51:56
|
Update of /cvsroot/cdk/cdk/src/org/openscience/cdk In directory sc8-pr-cvs1:/tmp/cvs-serv30560/src/org/openscience/cdk Modified Files: Element.java Log Message: Added example code. Index: Element.java =================================================================== RCS file: /cvsroot/cdk/cdk/src/org/openscience/cdk/Element.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** Element.java 4 Oct 2002 13:51:10 -0000 1.5 --- Element.java 26 Nov 2002 13:51:51 -0000 1.6 *************** *** 28,34 **** /** * Implements the idea of an element in the periodic table. ! * Use an element factory to get a ready-to-use element by name or number. * * @keyword element */ public class Element extends ChemObject --- 28,43 ---- /** * Implements the idea of an element in the periodic table. ! * ! * <p>Use the IsotopeFactory to get a ready-to-use elements ! * by symbol or atomic number: ! * <pre> ! * IsotopeFactory if = IsotopeFactory.getInstance(); ! * Element e1 = if.getElement("C"); ! * Element e2 = if.getElement(12); ! * </pre> * * @keyword element + * + * @see tools.IsotopeFactory */ public class Element extends ChemObject |