com.esri.arcgis.controls
Class ITOCBuddyEventsAdapter

java.lang.Object
  extended by com.esri.arcgis.controls.ITOCBuddyEventsAdapter
All Implemented Interfaces:
ITOCBuddyEvents, Serializable, EventListener

public class ITOCBuddyEventsAdapter
extends Object
implements ITOCBuddyEvents

See Also:
Serialized Form

Constructor Summary
ITOCBuddyEventsAdapter()
           
 
Method Summary
 void activeViewChanged(ITOCBuddyEventsActiveViewChangedEvent theEvent)
          Notifies the TOC that the active view has changed and an Update is required.
 void activeViewReplaced(ITOCBuddyEventsActiveViewReplacedEvent theEvent)
          Notifies the TOC that the active view has been replaced.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ITOCBuddyEventsAdapter

public ITOCBuddyEventsAdapter()
Method Detail

activeViewReplaced

public void activeViewReplaced(ITOCBuddyEventsActiveViewReplacedEvent theEvent)
                        throws IOException,
                               AutomationException
Notifies the TOC that the active view has been replaced.

Description

The ActiveViewReplaced event is triggered when the ActiveView of the ITOCControl::Buddy is replaced.

For example, when a new map document is loaded into the MapControl the IActiveView object contained within the MapControl gets replaced. If the MapControl is 'buddied' to a TOCControl, the MapControl fires the ITOCBuddyEvents::ActiveViewReplaced event to the TOCControl. The TOCControl stops listening to events on the 'old' IActiveView object and starts listening to events on the 'new' IActiveView object contained within the MapControl. This ensures the TOCControl automatically reflects the maps, layers and symbology of the Buddy.

Product Availability

Available with ArcGIS Engine.

Specified by:
activeViewReplaced in interface ITOCBuddyEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

activeViewChanged

public void activeViewChanged(ITOCBuddyEventsActiveViewChangedEvent theEvent)
                       throws IOException,
                              AutomationException
Notifies the TOC that the active view has changed and an Update is required.

Description

The ActiveViewChanged event is triggered whenever there is a scale change in the ActiveView of the ITOCControl::Buddy. This event is fired when the TOCControl has a 'buddy' GlobeControl and the IGlobeDisplayEvents::InteractionStopped event is fired.

Product Availability

Available with ArcGIS Engine.

Specified by:
activeViewChanged in interface ITOCBuddyEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.