com.esri.arcgis.carto
Interface ICompositeLayer

All Superinterfaces:
Serializable
All Known Implementing Classes:
BasemapLayer, BasemapSubLayer, CadastralFabricLayer, CompositeGraphicsLayer, FDOGraphicsLayer, GlobeServerLayer, GroupLayer, ICompositeLayerProxy, IMSMapLayer, MapServerLayer, MosaicLayer, NALayer, ProcessLayer, SchematicLayer, WMSGroupLayer, WMSMapLayer

public interface ICompositeLayer
extends Serializable

Provides access to members that work with a collection of layers that behaves like a single layer.

Description

ICompositeLayer is the most generic interface for working with layers that contain and manage properties for other layers, i.e., GroupLayers.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
IGroupLayer, ICompositeLayer, GroupLayer

Method Summary
 int getCount()
          Number of layers in the collection.
 ILayer getLayer(int index)
          Layer in the collection at the specified index.
 

Method Detail

getCount

int getCount()
             throws IOException,
                    AutomationException
Number of layers in the collection.

Description

Returns the count, or number of layers. Use the methods in the IGroupLayer interface to manage the contents of GroupLayers.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Returns:
The layerCount
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLayer

ILayer getLayer(int index)
                throws IOException,
                       AutomationException
Layer in the collection at the specified index.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.carto.ILayer
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.