com.esri.adf.web.data.graphics
Class GraphicFeature

java.lang.Object
  extended by com.esri.adf.web.data.graphics.GraphicFeature
All Implemented Interfaces:
Serializable

public class GraphicFeature
extends Object
implements Serializable

GraphicFeature is a class for storing spatial and nonspatial atributes. Instances of GraphicFeature constitute the content of GraphicsLayer

See Also:
Serialized Form

Constructor Summary
GraphicFeature()
           
 
Method Summary
 Map<String,String> getAttributes()
          Returns a Map of nonspatial feature attributes.
 WebGeometry getGeometry()
          Returns geometry of the feature
 void setAttributes(Map<String,String> attributes)
          Sets the attributes to the feature.
 void setGeometry(WebGeometry geometry)
          Sets the geometry to the feature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicFeature

public GraphicFeature()
Method Detail

getAttributes

public Map<String,String> getAttributes()
Returns a Map of nonspatial feature attributes.

Returns:
attributes of the feature

setAttributes

public void setAttributes(Map<String,String> attributes)
Sets the attributes to the feature.

Parameters:
attributes - a Map of attributes to be set.

setGeometry

public void setGeometry(WebGeometry geometry)
Sets the geometry to the feature. Geometry type can be one of the following: WebPoint, WebMultiPoint, WebPolyline, WebPolygon, or WebExtent

Parameters:
geometry - feature geometry

getGeometry

public WebGeometry getGeometry()
Returns geometry of the feature

Returns:
geometry of the feature