Class TextEntity
java.lang.Object
org.scilab.forge.scirenderer.texture.TextEntity
- Author:
- Pierre Lando
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
The default text anti-aliased status.static final Color
The default text color.static final boolean
The default text use fractional matrix status. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFont()
Return the text font.getSize()
Return the dimension in pixel of the text entity.getText()
Return the text content.Return the text color.boolean
Return the text anti-aliased status.boolean
Return the text use fractional metrics status.boolean
isValid()
TextEntity validity getter.void
Set the text font.void
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.
-
Field Details
-
DEFAULT_TEXT_COLOR
The default text color. -
DEFAULT_TEXT_ANTI_ALIASED
public static final boolean DEFAULT_TEXT_ANTI_ALIASEDThe default text anti-aliased status.- See Also:
-
DEFAULT_TEXT_USE_FRACTIONAL_METRICS
public static final boolean DEFAULT_TEXT_USE_FRACTIONAL_METRICSThe default text use fractional matrix status.- See Also:
-
-
Constructor Details
-
TextEntity
Default constructor.- Parameters:
text
- the text content.
-
-
Method Details
-
getText
Return the text content.- Returns:
- the text content.
-
setText
Set the text content.- Parameters:
text
- the new text content.
-
getFont
Return the text font.- Returns:
- the text font.
-
setFont
Set the text font.- Parameters:
font
- the new text font.
-
getTextColor
Return the text color.- Returns:
- the text color.
-
setTextColor
Set the text color.- Parameters:
textColor
- the new text color.
-
isTextAntiAliased
public boolean isTextAntiAliased()Return the text anti-aliased status.- Returns:
- the text anti-aliased status.
-
setTextAntiAliased
public void setTextAntiAliased(boolean textAntiAliased) Set the text anti-aliased status.- Parameters:
textAntiAliased
- the new text anti-aliased status.
-
isTextUseFractionalMetrics
public boolean isTextUseFractionalMetrics()Return the text use fractional metrics status.- Returns:
- the text use fractional metrics status.
-
setTextUseFractionalMetrics
public void setTextUseFractionalMetrics(boolean textUseFractionalMetrics) Set the text use fractional metrics status.- Parameters:
textUseFractionalMetrics
- the new text use fractional metrics status.
-
isValid
public boolean isValid()TextEntity validity getter.- Returns:
- true if the text entity is valid.
-
getSize
Return the dimension in pixel of the text entity.- Returns:
- the dimension in pixel of the text entity.
-