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

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

public class GroupGraphicsLayer
extends GraphicsLayer

GroupGraphicsLayer is a layer that holds sublayers. GroupGraphicsLayer is not designed to hold GraphicFeaturess, only the instances of GraphicLayer can hold GraphicFeaturess

See Also:
Serialized Form

Constructor Summary
GroupGraphicsLayer()
          Creates an instance of GraphicsLayer that contains an empty list of sublayers.
 
Method Summary
 void addGraphicFeature(GraphicFeature feature)
          Adds a feature to the layer.
 void addSublayer(GraphicsLayer sublayer)
          Adds a layer to the list of sublayers.
 void drawLayer(WebElementConverter converter, WebExtent extent, WebSpatialReference spatialReference)
          Draws the layer.
 List<GraphicFeature> getGraphicsFeatures()
          Returns the list of graphic features in the layer.
 List<GraphicsLayer> getSubLayers()
          Returns a list of sublayers.
 void removeAllGraphicFeatures()
          Removes all features from the layer.
 void removeGraphicFeature(GraphicFeature feature)
          Removes a feature from the layer.
 void removeSublayer(GraphicsLayer sublayer)
          Finds a given layer in the list of sublayers and removes it.
 void setSublayers(List<? extends GraphicsLayer> sublayers)
          Sets an incomming list of layers to the internal list of sublayers.
 
Methods inherited from class com.esri.adf.web.data.graphics.GraphicsLayer
equals, getCalloutTemplate, getHighlightRenderer, getId, getName, getRenderer, getSymbol, getSymbol, isVisible, setCalloutTemplate, setHighlightRenderer, setName, setRenderer, setVisible
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupGraphicsLayer

public GroupGraphicsLayer()
Creates an instance of GraphicsLayer that contains an empty list of sublayers.

Method Detail

addSublayer

public void addSublayer(GraphicsLayer sublayer)
Adds a layer to the list of sublayers.

Parameters:
sublayer - a sublayer to be added.

setSublayers

public void setSublayers(List<? extends GraphicsLayer> sublayers)
Sets an incomming list of layers to the internal list of sublayers.

Parameters:
sublayers - list of layers to be set as sublayers of this layer

getSubLayers

public List<GraphicsLayer> getSubLayers()
Returns a list of sublayers.

Returns:
list of sublayers

removeSublayer

public void removeSublayer(GraphicsLayer sublayer)
Finds a given layer in the list of sublayers and removes it.

Parameters:
sublayer - a sublayer to be removed

addGraphicFeature

public void addGraphicFeature(GraphicFeature feature)
Description copied from class: GraphicsLayer
Adds a feature to the layer.

Overrides:
addGraphicFeature in class GraphicsLayer
Parameters:
feature - a graphics feature to be added

removeGraphicFeature

public void removeGraphicFeature(GraphicFeature feature)
Description copied from class: GraphicsLayer
Removes a feature from the layer.

Overrides:
removeGraphicFeature in class GraphicsLayer
Parameters:
feature - a graphics feature to be removed

removeAllGraphicFeatures

public void removeAllGraphicFeatures()
Description copied from class: GraphicsLayer
Removes all features from the layer.

Overrides:
removeAllGraphicFeatures in class GraphicsLayer

getGraphicsFeatures

public List<GraphicFeature> getGraphicsFeatures()
Description copied from class: GraphicsLayer
Returns the list of graphic features in the layer.

Overrides:
getGraphicsFeatures in class GraphicsLayer
Returns:
the list of graphic features in the layer

drawLayer

public void drawLayer(WebElementConverter converter,
                      WebExtent extent,
                      WebSpatialReference spatialReference)
Description copied from class: GraphicsLayer
Draws the layer.

Overrides:
drawLayer in class GraphicsLayer
Parameters:
converter - is an input/output parameter that holds the image on which the layer is drawn
extent - spatial extent of the layer
spatialReference - all feature geometries in the layer are projected using this spatial reference before drawing