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
Rendering element that shows the
IAtom mass number information.-
Nested Class Summary
Nested classes/interfaces inherited from class TextElement
TextElement.Align -
Field Summary
FieldsFields inherited from class AtomSymbolElement
alignment, formalCharge, hydrogenCountModifier and TypeFieldDescriptionfinal intThe hydrogen alignment.final intThe formal charge.final intThe hydrogen count.Fields inherited from class TextElement
align, backColor, color, text, xCoord, yCoordModifier and TypeFieldDescriptionfinal TextElement.Alignfinal ColorBackground colorfinal ColorThe color of the text.final StringThe text to be displayed.final doubleThe x coordinate where the text should be displayed.final doubleThe y coordinate where the text should be displayed. -
Constructor Summary
ConstructorsConstructorDescriptionAtomMassSymbolElement(double xCoord, double yCoord, String symbol, Integer formalCharge, Integer hydrogenCount, int alignment, Integer atomMass, Color color) Constructs a newTextElementdisplaying the atom's mass number information. -
Method Summary
Methods inherited from class AtomSymbolElement
accept
-
Field Details
-
atomMassNumber
public final int atomMassNumberTheIAtoms mass number.
-
-
Constructor Details
-
AtomMassSymbolElement
public AtomMassSymbolElement(double xCoord, double yCoord, String symbol, Integer formalCharge, Integer hydrogenCount, int alignment, Integer atomMass, Color color) Constructs a newTextElementdisplaying 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
-