|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.symbol.MarkerSymbol
com.esri.core.symbol.SimpleMarkerSymbol
public class SimpleMarkerSymbol
Used to draw points and multipoints (or nodes of polylines and polygons) on the graphics layer using simple markers. SimpleMarkerSymbol is used to display points as a simple shape, for example, a circle.
| Nested Class Summary | |
|---|---|
static class |
SimpleMarkerSymbol.STYLE
The marker style. |
| Field Summary | |
|---|---|
static String |
TYPE
The String type to represent the symbol. |
| Constructor Summary | |
|---|---|
SimpleMarkerSymbol(int color,
int size,
SimpleMarkerSymbol.STYLE style)
Instantiates a SimpleMarkerSymbol with the given color, size and style. |
|
SimpleMarkerSymbol(org.codehaus.jackson.JsonNode node)
Instantiates an object of SimpleMakerSymbol from a JsonNode. |
|
| Method Summary | |
|---|---|
void |
drawAt(float x,
float y,
android.graphics.Canvas canvas)
Implements the method to draw the marker on the given canvas at device's screen (x,y). |
boolean |
equals(Object obj)
|
int |
getColor()
Returns the color of the symbol. |
float |
getSize()
Returns the symbol size in pixels. |
SimpleMarkerSymbol.STYLE |
getStyle()
Returns the marker SimpleMarkerSymbol.STYLE. |
int |
hashCode()
|
void |
setColor(int color)
Sets the color of the symbol. |
void |
setSize(float size)
Sets the size in pixels. |
void |
setStyle(SimpleMarkerSymbol.STYLE style)
Sets the drawing style. |
String |
toJson()
Converts the symbol to a Json String. |
| Methods inherited from class com.esri.core.symbol.MarkerSymbol |
|---|
getHeight, getOffsetX, getOffsetY, getWidth, 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 SimpleMarkerSymbol(org.codehaus.jackson.JsonNode node)
throws Exception
node - the SimpleMakerSymbol node.
Exception
public SimpleMarkerSymbol(int color,
int size,
SimpleMarkerSymbol.STYLE style)
color - the symbol color.size - the symbol size in pixels.style - the drawing SimpleMarkerSymbol.STYLE| Method Detail |
|---|
public int getColor()
public void setColor(int color)
color - the color in ARGB color value.public float getSize()
public void setSize(float size)
size - the size in pixels.public SimpleMarkerSymbol.STYLE getStyle()
SimpleMarkerSymbol.STYLE.
public void setStyle(SimpleMarkerSymbol.STYLE style)
style - one of the SimpleMarkerSymbol.STYLE.
public void drawAt(float x,
float y,
android.graphics.Canvas canvas)
MarkerSymbol
drawAt in class MarkerSymbolx - the x coordinate to draw the marker.y - the y coordinate to draw the marker.canvas - the canvas to draw the marker.
public String toJson()
throws Exception
Symbol
Exceptionpublic int hashCode()
hashCode in class MarkerSymbolpublic boolean equals(Object obj)
equals in class MarkerSymbol
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||