com.esri.arcgis.carto
Interface ILayerEvents

All Superinterfaces:
EventListener, Serializable
All Known Implementing Classes:
FDOGraphicsLayer, GlobeGraphicsLayer, GlobeLayer, GraphicsLayer3D, GraphicsSubLayer, ILayerEventsAdapter, ILayerEventsProxy

public interface ILayerEvents
extends EventListener, Serializable

Provides access to events that occur when layer visibility changes.

Remarks

This interface has an event that is triggered when the visibility of a layer changes. This happens if the layer is turned on (checked) or off (unchecked) in the table of contents, or if the Visible checkbox is checked on or off in the layer properties dialog. This event is not triggered from visibility changes related to the layer minimum or maximum scale range properties.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux


Method Summary
 void visibilityChanged(ILayerEventsVisibilityChangedEvent theEvent)
          Occurs when layer visibility changes.
 

Method Detail

visibilityChanged

void visibilityChanged(ILayerEventsVisibilityChangedEvent theEvent)
                       throws IOException,
                              AutomationException
Occurs when layer visibility changes.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.