|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.symbol.MarkerSymbol com.esri.core.symbol.TextSymbol
public class TextSymbol
Used to display text at points on the graphics layer.
Nested Class Summary | |
---|---|
static class |
TextSymbol.HorizontalAlignment
|
static class |
TextSymbol.VerticalAlignment
|
Field Summary | |
---|---|
static String |
TYPE
|
Constructor Summary | |
---|---|
TextSymbol(float size,
String text,
Color 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 | |
---|---|
Symbol |
copy()
Gets a copy of this Symbol object. |
boolean |
equals(Object obj)
|
Color |
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(Color 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()
Converts the symbol to a Json String. |
Methods inherited from class com.esri.core.symbol.MarkerSymbol |
---|
getAngle, getHeight, getOffsetX, getOffsetY, getWidth, setAngle, setHeight, setOffsetX, setOffsetY, setWidth |
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, Color color)
size
- the size of the font.text
- the text content.color
- the color of the text.Method Detail |
---|
public String getText()
public void setText(String text)
text
- the text string.public Color getColor()
public void setColor(Color color)
color
- the color in RGB color value.public float getSize()
public void setSize(float size)
size
- the size in pixels.public String toJson() throws Exception
Symbol
Exception
public Symbol copy() throws Exception
Symbol
Exception
public TextSymbol.HorizontalAlignment getHorizontalAlignment()
public void setHorizontalAlignment(TextSymbol.HorizontalAlignment horizontalAlignment)
horizontalAlignment
- The horizontalAlignment to set.public TextSymbol.VerticalAlignment getVerticalAlignment()
public void setVerticalAlignment(TextSymbol.VerticalAlignment verticalAlignment)
verticalAlignment
- The verticalAlignment to set.public int hashCode()
hashCode
in class MarkerSymbol
public boolean equals(Object obj)
equals
in class MarkerSymbol
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |