public class Graphic
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Class and Description |
---|---|
static class |
Graphic.Attributes |
Modifier and Type | Method and Description |
---|---|
static Graphic |
create(Geometry geometry,
Symbol symbol)
Creates a new Graphic object.
|
static Graphic |
create(Geometry geometry,
Symbol symbol,
Graphic.Attributes attrs,
InfoTemplate infoTemplate)
Creates a new Graphic object.
|
static Graphic |
create(com.google.gwt.core.client.JavaScriptObject json)
Creates a new Graphic object using a JSON object.
|
Graphic.Attributes |
getAttributes()
Name value pairs of fields and field values associated with the graphic.
|
java.lang.String |
getContent()
Returns the content string based on attributes and infoTemplate values.
|
Shape |
getDojoShape()
Returns the Dojo gfx shape of the ESRI graphic.
|
Geometry |
getGeometry()
The geometry that defines the graphic.
|
InfoTemplate |
getInfoTemplate()
The content for display in an InfoWindow.
|
GraphicsLayer |
getLayer()
Returns the graphics layer that contains the graphic.
|
Symbol |
getSymbol()
The symbol for the graphic.
|
java.lang.String |
getTitle()
Returns the title string based on attributes and infoTemplate values.
|
void |
hide()
Hides the graphic.
|
boolean |
isVisible()
Indicate the visiblity of the graphic.
|
Graphic |
setAttributes(Graphic.Attributes attrs)
Defines the attributes of the graphic.
|
Graphic |
setGeometry(Geometry geometry)
Defines the geometry of the graphic.
|
Graphic |
setInfoTemplate(InfoTemplate infoTemplate)
Defines the InfoTemplate for the InfoWindow of the graphic.
|
Graphic |
setSymbol(Symbol symbol)
Sets the symbol of the graphic.
|
void |
show()
Shows the graphic.
|
com.google.gwt.core.client.JavaScriptObject |
toJson()
Converts object to its ArcGIS Server JSON representation.
|
public static Graphic create(Geometry geometry, Symbol symbol)
geometry
- - The geometry that defines the graphic.symbol
- - Symbol used for drawing the graphic.public static Graphic create(Geometry geometry, Symbol symbol, Graphic.Attributes attrs, InfoTemplate infoTemplate)
geometry
- - The geometry that defines the graphic.symbol
- - Symbol used for drawing the graphic.attrs
- - Name value pairs of fields and field values associated with the graphic.infoTemplate
- - The content for display in an InfoWindow.public static Graphic create(com.google.gwt.core.client.JavaScriptObject json)
json
- - JSON object representing the graphic.public final Graphic.Attributes getAttributes()
public final Geometry getGeometry()
public final InfoTemplate getInfoTemplate()
public final Symbol getSymbol()
public final boolean isVisible()
public final java.lang.String getContent()
public final Shape getDojoShape()
public final GraphicsLayer getLayer()
public final java.lang.String getTitle()
public final void hide()
public final Graphic setAttributes(Graphic.Attributes attrs)
attrs
- public final Graphic setGeometry(Geometry geometry)
geometry
- public final Graphic setInfoTemplate(InfoTemplate infoTemplate)
infoTemplate
- public final Graphic setSymbol(Symbol symbol)
symbol
- public final void show()
public final com.google.gwt.core.client.JavaScriptObject toJson()