com.esri.arcgis.carto
Class IActiveViewEventsViewRefreshedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.esri.arcgis.carto.IActiveViewEventsViewRefreshedEvent
All Implemented Interfaces:
Serializable

public class IActiveViewEventsViewRefreshedEvent
extends EventObject

Description

Method that gets fired in response to IActiveView::Refresh and IActiveView::PartialRefresh.

Remarks

This event is useful in the case where you're watching for something to change in the view and there aren't any specific events for that change (e.g. ContentsChanged, ItemAdded). You can always listen for this method as a last resort. Care must be taken however to be very efficient in your implementation of this event because it will be called quite often.

The event parameters directly coincide with the arguments to IActiveView::PartialRefresh. For additional information about the arguments, see the help for that method.

If the event object connects to both the layout and a map, then the view parameter tells you which object initiated the event.

In an implementation of this method you typically want to check the phase and respond to only one. Otherwise, your code will execute multiple times per drawing sequence.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
IActiveViewEventsViewRefreshedEvent(Object source)
           
 
Method Summary
 Object getData()
           
 IEnvelope getEnvelope()
           
 int getPhase()
           
 IActiveView getView()
           
 void init(IActiveView view, int phase, Object data, IEnvelope envelope)
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IActiveViewEventsViewRefreshedEvent

public IActiveViewEventsViewRefreshedEvent(Object source)
Method Detail

init

public void init(IActiveView view,
                 int phase,
                 Object data,
                 IEnvelope envelope)

getView

public final IActiveView getView()

getPhase

public final int getPhase()

getData

public final Object getData()

getEnvelope

public final IEnvelope getEnvelope()