public AtomSymbolElement generateElement ( IAtom atom , int alignment , RendererModel model ) { String text ; if ( atom instanceof IPseudoAtom ) { text = ( ( IPseudoAtom ) atom ) . getLabel ( ) ; } else { text = atom . getSymbol ( ) ; } return new AtomSymbolElement ( atom . getPoint2d ( ) . x , atom . getPoint2d ( ) . y , text , atom . getFormalCharge ( ) , atom . getImplicitHydrogenCount ( ) , alignment , getAtomColor ( atom , model ) ) ; }
Generate an atom symbol element .