com.esri.arcgis.carto
Interface ILayerExtensions

All Superinterfaces:
Serializable
All Known Implementing Classes:
CadAnnotationLayer, CadastralFabricLayer, CadFeatureLayer, CadLayer, CoverageAnnotationLayer, DimensionLayer, FDOGraphicsLayer, FeatureLayer, GdbRasterCatalogLayer, GlobeGraphicsLayer, GlobeLayer, GlobeServerLayer, GraphicsLayer3D, GroupLayer, ImageServerLayer, IMSMapLayer, KmlLayer, MapServerLayer, NALayer, NetworkLayer, ProcessLayer, RasterCatalogLayer, RasterLayer, TemporalFeatureLayer, TerrainLayer, TinLayer, WCSLayer, WMSMapLayer

public interface ILayerExtensions
extends Serializable

Provides access to the extensions of a layer.

Remarks

Use this interface to manage a layer's extensions. Extensions extend a layer's behavior.

There are several ESRI layer extensions. One set implements ILayerExtensionDraw. These coclasses store information that is used to display linearly referenced data layers. Another set of ESRI layer extensions implement IDataLayerExtension. These coclasses store information that is used to display 3D data layers in ArcScene and ArcGlobe. Another set implements IFeatureLayerSourcePageExtension. These coclasses control special dialogs for setting a feature layer's data source. Layer extensions need to implement IPersistStream to be persisted in the layer/map.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux


Method Summary
 void addExtension(Object ext)
          Adds a new extension.
 Object getExtension(int index)
          The extension at the specified index.
 int getExtensionCount()
          Number of extensions.
 void removeExtension(int index)
          Removes the specified extension.
 

Method Detail

getExtensionCount

int getExtensionCount()
                      throws IOException,
                             AutomationException
Number of extensions.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

getExtension

Object getExtension(int index)
                    throws IOException,
                           AutomationException
The extension at the specified index.

Product Availability

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

Parameters:
index - The index (in)
Returns:
A reference to another Object (IUnknown)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addExtension

void addExtension(Object ext)
                  throws IOException,
                         AutomationException
Adds a new extension.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
ext - A reference to another Object (IUnknown) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeExtension

void removeExtension(int index)
                     throws IOException,
                            AutomationException
Removes the specified extension.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
index - The index (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.