public class AtomMassSymbolElement extends AtomSymbolElement
IAtom
mass number information.Modifier and Type | Field and Description |
---|---|
int |
atomMassNumber
The
IAtom s mass number. |
alignment, formalCharge, hydrogenCount
color, text, xCoord, yCoord
Constructor and Description |
---|
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. |
public final int atomMassNumber
IAtom
s mass number.public AtomMassSymbolElement(double xCoord, double yCoord, String symbol, Integer formalCharge, Integer hydrogenCount, int alignment, Integer atomMass, Color color)
TextElement
displaying the atom's mass number information.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 colorCopyright © 2021. All rights reserved.