public class TextEntity
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static boolean |
DEFAULT_TEXT_ANTI_ALIASED |
The default text anti-aliased status.
|
static Color |
DEFAULT_TEXT_COLOR |
The default text color.
|
static boolean |
DEFAULT_TEXT_USE_FRACTIONAL_METRICS |
The default text use fractional matrix status.
|
Constructor | Description |
---|---|
TextEntity(java.lang.String text) |
Default constructor.
|
Modifier and Type | Method | Description |
---|---|---|
java.awt.Font |
getFont() |
Return the text font.
|
java.awt.Dimension |
getSize() |
Return the dimension in pixel of the text entity.
|
java.lang.String |
getText() |
Return the text content.
|
Color |
getTextColor() |
Return the text color.
|
boolean |
isTextAntiAliased() |
Return the text anti-aliased status.
|
boolean |
isTextUseFractionalMetrics() |
Return the text use fractional metrics status.
|
boolean |
isValid() |
TextEntity validity getter.
|
void |
setFont(java.awt.Font font) |
Set the text font.
|
void |
setText(java.lang.String text) |
Set the text content.
|
void |
setTextAntiAliased(boolean textAntiAliased) |
Set the text anti-aliased status.
|
void |
setTextColor(Color textColor) |
Set the text color.
|
void |
setTextUseFractionalMetrics(boolean textUseFractionalMetrics) |
Set the text use fractional metrics status.
|
public static final Color DEFAULT_TEXT_COLOR
public static final boolean DEFAULT_TEXT_ANTI_ALIASED
public static final boolean DEFAULT_TEXT_USE_FRACTIONAL_METRICS
public TextEntity(java.lang.String text)
text
- the text content.public java.lang.String getText()
public void setText(java.lang.String text)
text
- the new text content.public java.awt.Font getFont()
public void setFont(java.awt.Font font)
font
- the new text font.public Color getTextColor()
public void setTextColor(Color textColor)
textColor
- the new text color.public boolean isTextAntiAliased()
public void setTextAntiAliased(boolean textAntiAliased)
textAntiAliased
- the new text anti-aliased status.public boolean isTextUseFractionalMetrics()
public void setTextUseFractionalMetrics(boolean textUseFractionalMetrics)
textUseFractionalMetrics
- the new text use fractional metrics status.public boolean isValid()
public java.awt.Dimension getSize()