public class TextElement extends Object implements IRenderingElement
Modifier and Type | Field and Description |
---|---|
Color |
color
The color of the text.
|
String |
text
The text to be displayed.
|
double |
xCoord
The x coordinate where the text should be displayed.
|
double |
yCoord
The y coordinate where the text should be displayed.
|
Constructor and Description |
---|
TextElement(double xCoord,
double yCoord,
String text,
Color color)
Constructs a new TextElement with the content
text to be
drawn at position (x,y) in the color color . |
Modifier and Type | Method and Description |
---|---|
void |
accept(IRenderingVisitor visotor)
Converts this
TextElement into widget specific objects. |
public final double xCoord
public final double yCoord
public final String text
public final Color color
public TextElement(double xCoord, double yCoord, String text, Color color)
text
to be
drawn at position (x,y) in the color color
.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 textpublic void accept(IRenderingVisitor visotor)
TextElement
into widget specific objects.accept
in interface IRenderingElement
visotor
- Toolkit specific widget factory.Copyright © 2018. All Rights Reserved.