Class AtomMassSymbolElement
- java.lang.Object
-
- org.openscience.cdk.renderer.elements.TextElement
-
- org.openscience.cdk.renderer.elements.AtomSymbolElement
-
- org.openscience.cdk.renderer.elements.AtomMassSymbolElement
-
- All Implemented Interfaces:
IRenderingElement
public class AtomMassSymbolElement extends AtomSymbolElement
Rendering element that shows theIAtom
mass number information.- Source code:
- main
- Belongs to CDK module:
- renderextra
-
-
Field Summary
Fields Modifier and Type Field Description int
atomMassNumber
TheIAtom
s mass number.-
Fields inherited from class org.openscience.cdk.renderer.elements.AtomSymbolElement
alignment, formalCharge, hydrogenCount
-
Fields inherited from class org.openscience.cdk.renderer.elements.TextElement
color, text, xCoord, yCoord
-
-
Constructor Summary
Constructors Constructor Description AtomMassSymbolElement(double xCoord, double yCoord, String symbol, Integer formalCharge, Integer hydrogenCount, int alignment, Integer atomMass, Color color)
Constructs a newTextElement
displaying the atom's mass number information.
-
-
-
Field Detail
-
atomMassNumber
public final int atomMassNumber
TheIAtom
s 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 newTextElement
displaying the atom's mass number information.- Parameters:
xCoord
- screen x-coordinate of where the text is displayedyCoord
- screen y-coordinate of where the text is displayedsymbol
- the element symbol of the atomformalCharge
- the formal charge of the atomhydrogenCount
- the number of implicit hydrogens of the atomalignment
- indicator of how the text should be alignedatomMass
- the mass number of the atomcolor
- the color
-
-