public class UserFacingText extends Object implements GeographicText
| Constructor and Description |
|---|
UserFacingText(CharSequence text,
Position textPosition) |
| Modifier and Type | Method and Description |
|---|---|
Color |
getBackgroundColor()
Indicates the background color used to draw the text.
|
Color |
getColor()
Indicates the color used to draw the text.
|
Font |
getFont()
Indicates the font used to draw the text.
|
Position |
getPosition()
Indicates the geographic position of the text.
|
double |
getPriority()
Indicates the text priority.
|
CharSequence |
getText()
Indicates the text contained in this object.
|
boolean |
isVisible()
Indicates whether or not the text is visible.
|
void |
setBackgroundColor(Color background)
Specifies the background color used to draw the text.
|
void |
setColor(Color color)
Specifies the color used to draw the text.
|
void |
setFont(Font font)
Specifies the font used to draw the text.
|
void |
setPosition(Position position)
Specifies the geographic position of the text.
|
void |
setPriority(double priority)
Specifies the text priority.
|
void |
setText(CharSequence text)
Specifies the text.
|
void |
setVisible(boolean visible)
Specifies whether or not the text is visible.
|
public UserFacingText(CharSequence text, Position textPosition)
public Color getBackgroundColor()
GeographicTextgetBackgroundColor in interface GeographicTextpublic Color getColor()
GeographicTextgetColor in interface GeographicTextpublic Font getFont()
GeographicTextgetFont in interface GeographicTextpublic Position getPosition()
GeographicTextgetPosition in interface GeographicTextpublic double getPriority()
GeographicTextgetPriority in interface GeographicTextpublic CharSequence getText()
GeographicTextgetText in interface GeographicTextpublic boolean isVisible()
GeographicTextfalse.isVisible in interface GeographicTexttrue if the text is visible, otherwise false.public void setBackgroundColor(Color background)
GeographicTextsetBackgroundColor in interface GeographicTextbackground - New background color.public void setColor(Color color)
GeographicTextsetColor in interface GeographicTextcolor - New color.public void setFont(Font font)
GeographicTextsetFont in interface GeographicTextfont - New font.public void setPosition(Position position)
GeographicTextsetPosition in interface GeographicTextposition - New text position.public void setPriority(double priority)
GeographicTextsetPriority in interface GeographicTextpriority - New priority.public void setText(CharSequence text)
GeographicTextsetText in interface GeographicTexttext - New text.public void setVisible(boolean visible)
GeographicTextfalse.setVisible in interface GeographicTextvisible - true if the text should be visible. false if not.