|
||||||||||
| 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.PictureMarkerSymbol
public class PictureMarkerSymbol
Used to draw points and multipoints on the graphics layer using an image. The image can be either a Drawable
object or an image referenced by URL.
| Field Summary | |
|---|---|
static String |
TYPE
|
| Constructor Summary | |
|---|---|
PictureMarkerSymbol(android.graphics.drawable.Drawable drawable)
Instantiates a PictureMarkerSymbol with a Drawable image. |
|
PictureMarkerSymbol(org.codehaus.jackson.JsonNode node)
Instantiates an object of PictureMarkerSymbol from a JsonNode. |
|
PictureMarkerSymbol(String pictureUrl)
Instantiates a PictureMarkerSymbol with a URL of an image. |
|
| 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)
|
android.graphics.drawable.Drawable |
getDrawable()
Returns the Drawable of the PictureMarkerSymbol. |
int |
hashCode()
|
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 PictureMarkerSymbol(org.codehaus.jackson.JsonNode node)
throws Exception
node - the PictureMarkerSymbol node.
Exceptionpublic PictureMarkerSymbol(android.graphics.drawable.Drawable drawable)
Drawable image.
drawable - the image.
public PictureMarkerSymbol(String pictureUrl)
throws MalformedURLException,
IOException
pictureUrl - the image URL.
MalformedURLException
IOException| Method Detail |
|---|
public android.graphics.drawable.Drawable getDrawable()
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 int hashCode()
hashCode in class MarkerSymbolpublic boolean equals(Object obj)
equals in class MarkerSymbol
public String toJson()
throws Exception
Symbol
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||