Package gov.nasa.worldwind.render
Interface GeographicText
-
- All Known Implementing Classes:
OpenStreetMapShapefileLoader.Label
,SurfaceText
,UserFacingText
public interface GeographicText
A piece of text that is drawn at a geographic location.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.Color
getBackgroundColor()
Indicates the background color used to draw the text.java.awt.Color
getColor()
Indicates the color used to draw the text.java.awt.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.java.lang.CharSequence
getText()
Indicates the text contained in this object.boolean
isVisible()
Indicates whether or not the text is visible.void
setBackgroundColor(java.awt.Color background)
Specifies the background color used to draw the text.void
setColor(java.awt.Color color)
Specifies the color used to draw the text.void
setFont(java.awt.Font font)
Specifies the font used to draw the text.void
setPosition(Position position)
Specifies the geographic position of the text.void
setPriority(double d)
Specifies the text priority.void
setText(java.lang.CharSequence text)
Specifies the text.void
setVisible(boolean visible)
Specifies whether or not the text is visible.
-
-
-
Method Detail
-
getText
java.lang.CharSequence getText()
Indicates the text contained in this object.- Returns:
- The current text.
-
setText
void setText(java.lang.CharSequence text)
Specifies the text.- Parameters:
text
- New text.
-
getPosition
Position getPosition()
Indicates the geographic position of the text.- Returns:
- The text position.
-
setPosition
void setPosition(Position position)
Specifies the geographic position of the text.- Parameters:
position
- New text position.
-
getFont
java.awt.Font getFont()
Indicates the font used to draw the text.- Returns:
- Current font.
-
setFont
void setFont(java.awt.Font font)
Specifies the font used to draw the text.- Parameters:
font
- New font.
-
getColor
java.awt.Color getColor()
Indicates the color used to draw the text.- Returns:
- Current text color.
-
setColor
void setColor(java.awt.Color color)
Specifies the color used to draw the text.- Parameters:
color
- New color.
-
getBackgroundColor
java.awt.Color getBackgroundColor()
Indicates the background color used to draw the text.- Returns:
- Current background color.
-
setBackgroundColor
void setBackgroundColor(java.awt.Color background)
Specifies the background color used to draw the text.- Parameters:
background
- New background color.
-
isVisible
boolean isVisible()
Indicates whether or not the text is visible. The text will not be drawn when the visibility is set tofalse
.- Returns:
true
if the text is visible, otherwisefalse
.
-
setVisible
void setVisible(boolean visible)
Specifies whether or not the text is visible. The text will not be drawn when the visibility is set tofalse
.- Parameters:
visible
-true
if the text should be visible.false
if not.
-
getPriority
double getPriority()
Indicates the text priority. The priority can be used to implement text culling.- Returns:
- The text priority.
-
setPriority
void setPriority(double d)
Specifies the text priority. The priority can be used to implement text culling.- Parameters:
d
- New priority.
-
-