Class AtomMassSymbolElement

  • All Implemented Interfaces:
    IRenderingElement

    public class AtomMassSymbolElement
    extends AtomSymbolElement
    Rendering element that shows the IAtom mass number information.
    Source code:
    main
    Belongs to CDK module:
    renderextra
    • Field Detail

      • atomMassNumber

        public final int atomMassNumber
        The IAtoms mass number.
    • Constructor Detail

      • AtomMassSymbolElement

        public AtomMassSymbolElement​(double xCoord,
                                     double yCoord,
                                     String symbol,
                                     Integer formalCharge,
                                     Integer hydrogenCount,
                                     int alignment,
                                     Integer atomMass,
                                     Color color)
        Constructs a new TextElement displaying the atom's mass number information.
        Parameters:
        xCoord - screen x-coordinate of where the text is displayed
        yCoord - screen y-coordinate of where the text is displayed
        symbol - the element symbol of the atom
        formalCharge - the formal charge of the atom
        hydrogenCount - the number of implicit hydrogens of the atom
        alignment - indicator of how the text should be aligned
        atomMass - the mass number of the atom
        color - the color