Package com.massifmaps.styles
Class TextStyle
java.lang.Object
com.massifmaps.styles.Style
com.massifmaps.styles.BillboardStyle
com.massifmaps.styles.LabelStyle
com.massifmaps.styles.TextStyle
A style for text labels. Contains attributes for configuring how the text label is drawn on the screen.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the background color of the text.Returns the color of the border.floatReturns the width of the border.Returns the font's color.Returns the font's name.floatReturns the font's size.Returns the color of the stroke.floatReturns the width of the stroke.Returns the text field variable to use.Returns the margins for the text.booleanReturns the state of the 'break lines' flag.Methods inherited from class com.massifmaps.styles.LabelStyle
getAnchorPointX, getAnchorPointY, getOrientationMode, getRenderScale, getScalingMode, isFlippableMethods inherited from class com.massifmaps.styles.BillboardStyle
getAnimationStyle, getAttachAnchorPointX, getAttachAnchorPointY, getHorizontalOffset, getPlacementPriority, getVerticalOffset, isCausesOverlap, isHideIfOverlapped, isScaleWithDPI
-
Method Details
-
getFontColor
Returns the font's color.- Returns:
- The color of the font.
-
getFontName
Returns the font's name.- Returns:
- The platform dependent name of the font.
-
getTextField
Returns the text field variable to use.- Returns:
- The text field variable.
-
getFontSize
public float getFontSize()Returns the font's size.- Returns:
- The size of the font in points.
-
isBreakLines
public boolean isBreakLines()Returns the state of the 'break lines' flag.- Returns:
- The state of the 'break lines' flag.
-
getTextMargins
Returns the margins for the text.- Returns:
- The margins for the text.
-
getStrokeColor
Returns the color of the stroke.- Returns:
- The color of the stroke around the text.
-
getStrokeWidth
public float getStrokeWidth()Returns the width of the stroke.- Returns:
- The width of the stroke around the text.
-
getBorderColor
Returns the color of the border.- Returns:
- The color of the border around the text.
-
getBorderWidth
public float getBorderWidth()Returns the width of the border.- Returns:
- The width of the border around the text.
-
getBackgroundColor
Returns the background color of the text.- Returns:
- The background color of the text.
-