|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.symbol.TextSymbol
public class TextSymbol
Used to display text at points on the graphics layer.
| Field Summary | |
|---|---|
static String |
TYPE
|
| Constructor Summary | |
|---|---|
TextSymbol(float size,
String text,
int color)
Instantiates an object of TextSymbol in the specified size and color. |
|
TextSymbol(org.codehaus.jackson.JsonNode node)
Instantiates an object of TextSymbol from a JsonNode. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
android.graphics.Paint.Align |
getAlign()
Returns the Align value for drawing text. |
int |
getColor()
Returns the color of the TextSymbol. |
float |
getOffsetX()
The TextSymbol adheres to a point feature. |
float |
getOffsetY()
The TextSymbol adheres to a point feature. |
float |
getSize()
Returns the font size in pixels. |
String |
getText()
Returns the text content of the symbol. |
int |
hashCode()
|
void |
setAlign(android.graphics.Paint.Align align)
Sets the Align value for drawing text. |
void |
setColor(int color)
Sets the color to render the TextSymbol with. |
void |
setOffsetX(float offsetX)
The TextSymbol adheres to a point feature. |
void |
setOffsetY(float offsetY)
The TextSymbol adheres to a point feature. |
void |
setSize(float size)
Sets the font size. |
void |
setText(String text)
Sets the text content of the symbol. |
String |
toJson()
Converts the symbol to a Json String. |
android.graphics.Paint |
toPaint(android.graphics.Paint p)
Returns the symbol as a Paint object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE
| Constructor Detail |
|---|
public TextSymbol(org.codehaus.jackson.JsonNode node)
node - the text symbol node.
public TextSymbol(float size,
String text,
int color)
size - the size of the font.text - the text content.color - the color of the text.| Method Detail |
|---|
public float getOffsetX()
public void setOffsetX(float offsetX)
offsetX - the offset along x-axis in pixels.public float getOffsetY()
public void setOffsetY(float offsetY)
offsetY - the offset along y-axis in pixels.public String getText()
public void setText(String text)
text - the text string.public int getColor()
public void setColor(int color)
color - the color in RGB color value.public float getSize()
public void setSize(float size)
size - the size in pixels.public android.graphics.Paint.Align getAlign()
public void setAlign(android.graphics.Paint.Align align)
align - the Align value for drawing text.public android.graphics.Paint toPaint(android.graphics.Paint p)
PaintSymbolPaint object.
toPaint in interface PaintSymbolp - override the given paint object instead of create a new paint object.
public String toJson()
throws Exception
Symbol
toJson in interface SymbolExceptionpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||