Package gov.nasa.worldwind.render
Interface GeographicText
-
- All Known Implementing Classes:
OpenStreetMapShapefileLoader.Label,SurfaceText,UserFacingText
public interface GeographicTextA 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.ColorgetBackgroundColor()Indicates the background color used to draw the text.java.awt.ColorgetColor()Indicates the color used to draw the text.java.awt.FontgetFont()Indicates the font used to draw the text.PositiongetPosition()Indicates the geographic position of the text.doublegetPriority()Indicates the text priority.java.lang.CharSequencegetText()Indicates the text contained in this object.booleanisVisible()Indicates whether or not the text is visible.voidsetBackgroundColor(java.awt.Color background)Specifies the background color used to draw the text.voidsetColor(java.awt.Color color)Specifies the color used to draw the text.voidsetFont(java.awt.Font font)Specifies the font used to draw the text.voidsetPosition(Position position)Specifies the geographic position of the text.voidsetPriority(double d)Specifies the text priority.voidsetText(java.lang.CharSequence text)Specifies the text.voidsetVisible(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:
trueif 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-trueif the text should be visible.falseif 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.
-
-