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 final 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(BufferedImage picture)
          Instantiates a PictureMarkerSymbol with a BufferedImage image.
PictureMarkerSymbol(org.codehaus.jackson.JsonNode node)
          Instantiates a new picture marker symbol from a JSON node.
PictureMarkerSymbol(PictureMarkerSymbol other)
          Instantiates a new picture marker symbol.
PictureMarkerSymbol(String pictureUrl)
          Instantiates a new picture marker symbol from a image URL.
 
Method Summary
 Symbol copy()
          Gets a copy of this Symbol object.
 String getContentType()
           
 Image getPicture()
          Gets the picture.
protected  void init(BufferedImage picture)
          Internal construction helper.
 void setSize(int width, int height)
          Sets the size.
 String toJson()
          Converts the symbol to a Json String.
 
Methods inherited from class com.esri.core.symbol.MarkerSymbol
equals, getAngle, getHeight, getOffsetX, getOffsetY, getWidth, hashCode, setAngle, setHeight, setOffsetX, setOffsetY, setWidth
 
Methods inherited from class java.lang.Object
clone, finalize, 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(PictureMarkerSymbol other)
Instantiates a new picture marker symbol.

Parameters:
other - the other

PictureMarkerSymbol

public PictureMarkerSymbol(BufferedImage picture)
Instantiates a PictureMarkerSymbol with a BufferedImage image.

Parameters:
picture - the image.

PictureMarkerSymbol

public PictureMarkerSymbol(org.codehaus.jackson.JsonNode node)
Instantiates a new picture marker symbol from a JSON node.

Parameters:
node - the node

PictureMarkerSymbol

public PictureMarkerSymbol(String pictureUrl)
Instantiates a new picture marker symbol from a image URL.

Parameters:
pictureUrl - picture URL.
Method Detail

getPicture

public Image getPicture()
Gets the picture.

Returns:
the picture

getContentType

public String getContentType()

setSize

public void setSize(int width,
                    int height)
Sets the size.

Parameters:
width - the width
height - the height

init

protected void init(BufferedImage picture)
Internal construction helper.

Parameters:
picture - the picture

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.