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

java.lang.Object
  extended by com.esri.adf.web.data.GISResource
      extended by com.esri.adf.web.data.graphics.GraphicsResource
          extended by com.esri.adf.web.data.graphics.DefaultGraphicsResource
All Implemented Interfaces:
WebContextInitialize, WebLifecycle, Serializable

public class DefaultGraphicsResource
extends GraphicsResource

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.esri.adf.web.data.graphics.GraphicsResource
spatialReference
 
Fields inherited from class com.esri.adf.web.data.GISResource
alias, context, defaultSpatialReference, functionalities, hasFailedFunctionalities, init
 
Constructor Summary
DefaultGraphicsResource()
           
 
Method Summary
 int addGraphicsLayer(GraphicsLayer layer)
          Adds a GraphicsLayer to the internal list of GraphicsLayers.
 boolean isUpdated()
           
 void removeAllGraphicsLayer()
          Removes all graphics layers.
 void removeGraphicsLayer(GraphicsLayer layer)
          Removes a given graphics layer.
 void setUpdated(boolean state)
           
 
Methods inherited from class com.esri.adf.web.data.graphics.GraphicsResource
getAlias, getLayers, init, setDefaultSpatialReference
 
Methods inherited from class com.esri.adf.web.data.GISResource
activate, addFunctionality, destroy, getDefaultSpatialReference, getFunctionalities, getFunctionality, getWebContext, passivate, setAlias, setFunctionalities
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGraphicsResource

public DefaultGraphicsResource()
Method Detail

setUpdated

public void setUpdated(boolean state)

isUpdated

public boolean isUpdated()

addGraphicsLayer

public int addGraphicsLayer(GraphicsLayer layer)
Description copied from class: GraphicsResource
Adds a GraphicsLayer to the internal list of GraphicsLayers.

Overrides:
addGraphicsLayer in class GraphicsResource
Parameters:
layer - a layer to be added
Returns:
id of the added layer

removeGraphicsLayer

public void removeGraphicsLayer(GraphicsLayer layer)
Description copied from class: GraphicsResource
Removes a given graphics layer.

Overrides:
removeGraphicsLayer in class GraphicsResource
Parameters:
layer - a layer to be removed

removeAllGraphicsLayer

public void removeAllGraphicsLayer()
Description copied from class: GraphicsResource
Removes all graphics layers.

Overrides:
removeAllGraphicsLayer in class GraphicsResource