Constructor and Description |
---|
TextImpl(java.lang.String fontName,
int size,
int style) |
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g,
java.lang.String text,
int x,
int y,
Alignment alignment)
Renders text on graphic output, to the specified location and alignment.
|
int |
getSize()
Get the text size in px (8px, 12px ...).
|
void |
setColor(java.awt.Color color)
Set the new text color value.
|
public void draw(java.awt.Graphics2D g, java.lang.String text, int x, int y, Alignment alignment)
Text
public void setColor(java.awt.Color color)
Text