|
||||||||||
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.PictureMarkerSymbol
public final 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(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 |
---|
public static final String TYPE
Constructor Detail |
---|
public PictureMarkerSymbol(PictureMarkerSymbol other)
other
- the otherpublic PictureMarkerSymbol(BufferedImage picture)
BufferedImage
image.
picture
- the image.public PictureMarkerSymbol(org.codehaus.jackson.JsonNode node)
node
- the nodepublic PictureMarkerSymbol(String pictureUrl)
pictureUrl
- picture URL.Method Detail |
---|
public Image getPicture()
public String getContentType()
public void setSize(int width, int height)
width
- the widthheight
- the heightprotected void init(BufferedImage picture)
picture
- the picturepublic String toJson() throws Exception
Symbol
Exception
public Symbol copy() throws Exception
Symbol
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |