Class TextElement
- java.lang.Object
-
- org.openscience.cdk.renderer.elements.TextElement
-
- All Implemented Interfaces:
IRenderingElement
- Direct Known Subclasses:
AtomSymbolElement
,TextGroupElement
public class TextElement extends Object implements IRenderingElement
Text element as used in the chemical drawing. This can be a element symbol.- Source code:
- main
- Belongs to CDK module:
- render
-
-
Constructor Summary
Constructors Constructor Description TextElement(double xCoord, double yCoord, String text, Color color)
Constructs a new TextElement with the contenttext
to be drawn at position (x,y) in the colorcolor
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(IRenderingVisitor visotor)
Converts thisTextElement
into widget specific objects.
-
-
-
Constructor Detail
-
TextElement
public TextElement(double xCoord, double yCoord, String text, Color color)
Constructs a new TextElement with the contenttext
to be drawn at position (x,y) in the colorcolor
.- Parameters:
xCoord
- x coordinate where the text should be displayedyCoord
- y coordinate where the text should be displayedtext
- the text to be drawncolor
- the color of the text
-
-
Method Detail
-
accept
public void accept(IRenderingVisitor visotor)
Converts thisTextElement
into widget specific objects.- Specified by:
accept
in interfaceIRenderingElement
- Parameters:
visotor
- Toolkit specific widget factory.
-
-