java.lang.Object | ||||
↳ | com.carto.styles.Style | |||
↳ | com.carto.styles.BillboardStyle | |||
↳ | com.carto.styles.LabelStyle | |||
↳ | com.carto.styles.TextStyle |
A style for text labels. Contains attributes for configuring how the text label is drawn on the screen.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
Color |
getBackgroundColor()
Returns the background color of the text.
| ||||||||||
Color |
getBorderColor()
Returns the color of the border.
| ||||||||||
float |
getBorderWidth()
Returns the width of the border.
| ||||||||||
Color |
getFontColor()
Returns the font's color.
| ||||||||||
String |
getFontName()
Returns the font's name.
| ||||||||||
float |
getFontSize()
Returns the font's size.
| ||||||||||
Color |
getStrokeColor()
Returns the color of the stroke.
| ||||||||||
float |
getStrokeWidth()
Returns the width of the stroke.
| ||||||||||
String |
getTextField()
Returns the text field variable to use.
| ||||||||||
TextMargins |
getTextMargins()
Returns the margins for the text.
| ||||||||||
boolean |
isBreakLines()
Returns the state of the 'break lines' flag.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Returns the background color of the text.
Returns the color of the border.
Returns the width of the border.
Returns the font's name.
Returns the font's size.
Returns the color of the stroke.
Returns the width of the stroke.
Returns the text field variable to use.
Returns the margins for the text.
Returns the state of the 'break lines' flag.