com.esri.arcgis.controls
Interface IEngineNetworkAnalystEnvironmentEvents

All Superinterfaces:
EventListener, Serializable
All Known Implementing Classes:
IEngineNetworkAnalystEnvironmentEventsAdapter, IEngineNetworkAnalystEnvironmentEventsProxy

public interface IEngineNetworkAnalystEnvironmentEvents
extends EventListener, Serializable

Provides access to events triggered by the network analysis extension.

Description

The IEngineNetworkAnalystEnvironmentEvents interface is an outgoing interface on the EngineNetworkAnalystEnvironment singleton object that is used to notify listeners when a new INetworkLayer object referencing a NetworkDataset is added to the map or when the IEngineNetworkAnalystEnvironment::CurrentNetworkLayer is changed.

Product Availability

Available with ArcGIS Engine.


Method Summary
 void onCurrentNetworkLayerChanged(IEngineNetworkAnalystEnvironmentEventsOnCurrentNetworkLayerChangedEvent theEvent)
          Called when the current network layer has changed.
 void onNetworkLayersChanged(IEngineNetworkAnalystEnvironmentEventsOnNetworkLayersChangedEvent theEvent)
          Called when the network layers have changed.
 

Method Detail

onNetworkLayersChanged

void onNetworkLayersChanged(IEngineNetworkAnalystEnvironmentEventsOnNetworkLayersChangedEvent theEvent)
                            throws IOException,
                                   AutomationException
Called when the network layers have changed.

Description

The OnNetworkLayersChanged event is fired when a new INetworkLayer object is added, removed, or renamed within a map.

If the INetworkLayer is renamed interactively through the user interface OnNetworkLayersChanged is fired. If the INetworkLayer is renamed programmatically using the ILayer::Name property OnNetworkLayersChanged is not fired.

Product Availability

Available with ArcGIS Engine.

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

onCurrentNetworkLayerChanged

void onCurrentNetworkLayerChanged(IEngineNetworkAnalystEnvironmentEventsOnCurrentNetworkLayerChangedEvent theEvent)
                                  throws IOException,
                                         AutomationException
Called when the current network layer has changed.

Description

The OnCurrentNetworkLayerChanged event is fired when the user interactively changes the NetworkDataset or the IEngineNetworkAnalystEnvironment::CurrentNetworkLayer is set programatically.

Product Availability

Available with ArcGIS Engine.

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