java.lang.Object | ||
↳ | com.esri.core.symbol.MarkerSymbol | |
↳ | com.esri.core.symbol.TextSymbol |
Used to display text at points on the graphics layer.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | TextSymbol.HorizontalAlignment | The Enum HorizontalAlignment. | |||||||||
enum | TextSymbol.VerticalAlignment | The Enum VerticalAlignment. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | TYPE | The Constant TYPE. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TextSymbol(JsonNode node)
Instantiates an object of TextSymbol from a JsonNode.
| |||||||||||
TextSymbol(float size, String text, int color, TextSymbol.HorizontalAlignment halign, TextSymbol.VerticalAlignment valign)
Instantiates an object of TextSymbol in the specified size and color.
| |||||||||||
TextSymbol(float size, String text, int color)
Instantiates an object of TextSymbol in the specified size and color.
| |||||||||||
TextSymbol(TextSymbol textSymbol)
The Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Symbol | copy() | ||||||||||
boolean | equals(Object obj) | ||||||||||
int |
getColor()
Returns the color of the TextSymbol.
| ||||||||||
TextSymbol.HorizontalAlignment |
getHorizontalAlignment()
Gets the horizontalAlignment of the TextSymbol.
| ||||||||||
float |
getSize()
Returns the font size in pixels.
| ||||||||||
String |
getText()
Returns the text content of the symbol.
| ||||||||||
TextSymbol.VerticalAlignment |
getVerticalAlignment()
Gets the verticalAlignment of the TextSymbol.
| ||||||||||
int | hashCode() | ||||||||||
void |
setColor(int color)
Sets the color to render the TextSymbol with.
| ||||||||||
void |
setHorizontalAlignment(TextSymbol.HorizontalAlignment horizontalAlignment)
Sets the horizontalAlignment of the TextSymbol.
| ||||||||||
void |
setSize(float size)
Sets the font size.
| ||||||||||
void |
setText(String text)
Sets the text content of the symbol.
| ||||||||||
void |
setVerticalAlignment(TextSymbol.VerticalAlignment verticalAlignment)
Sets the verticalAlignment of the TextSymbol.
| ||||||||||
String | toJson() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Instantiates an object of TextSymbol from a JsonNode.
node | the text symbol node. |
---|
Instantiates an object of TextSymbol in the specified size and color.
size | the size of the font. |
---|---|
text | the text content. |
color | the color of the text. |
halign | HorizontalAlignment |
valign | VerticalAlignment |
Instantiates an object of TextSymbol in the specified size and color. The default horizontal and vertical alignment is set to center.
size | the size of the font. |
---|---|
text | the text content. |
color | the color of the text. |
Returns the color of the TextSymbol. The color is a 32bit value containing alpha as well as RGB. This 32bit value is not pre-multiplied, meaning that its alpha can be any value, regardless of the values of RGB. See the Color class for more details.
Gets the horizontalAlignment of the TextSymbol.
Returns the font size in pixels.
Gets the verticalAlignment of the TextSymbol.
Sets the color to render the TextSymbol with. The color is a 32bit value containing alpha as well as RGB. This 32bit value is not pre-multiplied, meaning that its alpha can be any value, regardless of the values of RGB. See the Color class for more details.
color | the color in RGB color value. |
---|
Sets the horizontalAlignment of the TextSymbol.
horizontalAlignment | The horizontalAlignment to set. |
---|
Sets the font size.
size | the size in pixels. |
---|
Sets the text content of the symbol.
text | the text string. |
---|
Sets the verticalAlignment of the TextSymbol.
verticalAlignment | The verticalAlignment to set. |
---|