Class AtomSymbolElement
java.lang.Object
org.openscience.cdk.renderer.elements.TextElement
org.openscience.cdk.renderer.elements.AtomSymbolElement
- All Implemented Interfaces:
IRenderingElement
- Direct Known Subclasses:
AtomMassSymbolElement
A text element with added information.
-
Nested Class Summary
Nested classes/interfaces inherited from class TextElement
TextElement.Align -
Field Summary
FieldsModifier 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
ConstructorsConstructorDescriptionAtomSymbolElement(double x, double y, String symbol, Integer formalCharge, Integer hydrogenCount, int alignment, Color color) -
Method Summary
-
Field Details
-
formalCharge
public final int formalChargeThe formal charge. -
hydrogenCount
public final int hydrogenCountThe hydrogen count. -
alignment
public final int alignmentThe hydrogen alignment.
-
-
Constructor Details
-
AtomSymbolElement
-
-
Method Details
-
accept
Converts thisTextElementinto widget specific objects.- Specified by:
acceptin interfaceIRenderingElement- Overrides:
acceptin classTextElement- Parameters:
v- Toolkit specific widget factory.
-