com.esri.core.symbol
Class PictureMarkerSymbol

java.lang.Object
  extended by com.esri.core.symbol.MarkerSymbol
      extended by com.esri.core.symbol.PictureMarkerSymbol
All Implemented Interfaces:
Symbol, Serializable

public class PictureMarkerSymbol
extends MarkerSymbol

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.

See Also:
Serialized Form

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(PictureMarkerSymbol symbol)
           
PictureMarkerSymbol(String pictureUrl)
          Instantiates a PictureMarkerSymbol with a URL of an image.
 
Method Summary
 Symbol copy()
          Gets a copy of this Symbol object.
 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
getAngle, getHeight, getOffsetX, getOffsetY, getWidth, setAngle, setOffsetX, setOffsetY
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

PictureMarkerSymbol

public PictureMarkerSymbol(org.codehaus.jackson.JsonNode node)
                    throws Exception
Instantiates an object of PictureMarkerSymbol from a JsonNode.

Parameters:
node - the PictureMarkerSymbol node.
Throws:
Exception

PictureMarkerSymbol

public PictureMarkerSymbol(android.graphics.drawable.Drawable drawable)
Instantiates a PictureMarkerSymbol with a Drawable image.

Parameters:
drawable - the image.

PictureMarkerSymbol

public PictureMarkerSymbol(PictureMarkerSymbol symbol)

PictureMarkerSymbol

public PictureMarkerSymbol(String pictureUrl)
                    throws MalformedURLException,
                           IOException
Instantiates a PictureMarkerSymbol with a URL of an image.

Parameters:
pictureUrl - the image URL.
Throws:
MalformedURLException
IOException
Method Detail

getDrawable

public android.graphics.drawable.Drawable getDrawable()
Returns the Drawable of the PictureMarkerSymbol.


hashCode

public int hashCode()
Overrides:
hashCode in class MarkerSymbol

equals

public boolean equals(Object obj)
Overrides:
equals in class MarkerSymbol

toJson

public String toJson()
              throws Exception
Description copied from interface: Symbol
Converts the symbol to a Json String.

Throws:
Exception

copy

public Symbol copy()
            throws Exception
Description copied from interface: Symbol
Gets a copy of this Symbol object.

Returns:
Symbol object
Throws:
Exception


Copyright © 2012. All Rights Reserved.