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()
GeographicText
getBackgroundColor
in interface GeographicText
public Color getColor()
GeographicText
getColor
in interface GeographicText
public Font getFont()
GeographicText
getFont
in interface GeographicText
public Position getPosition()
GeographicText
getPosition
in interface GeographicText
public double getPriority()
GeographicText
getPriority
in interface GeographicText
public CharSequence getText()
GeographicText
getText
in interface GeographicText
public boolean isVisible()
GeographicText
false
.isVisible
in interface GeographicText
true
if the text is visible, otherwise false
.public void setBackgroundColor(Color background)
GeographicText
setBackgroundColor
in interface GeographicText
background
- New background color.public void setColor(Color color)
GeographicText
setColor
in interface GeographicText
color
- New color.public void setFont(Font font)
GeographicText
setFont
in interface GeographicText
font
- New font.public void setPosition(Position position)
GeographicText
setPosition
in interface GeographicText
position
- New text position.public void setPriority(double priority)
GeographicText
setPriority
in interface GeographicText
priority
- New priority.public void setText(CharSequence text)
GeographicText
setText
in interface GeographicText
text
- New text.public void setVisible(boolean visible)
GeographicText
false
.setVisible
in interface GeographicText
visible
- true
if the text should be visible. false
if not.