com.esri.arcgis.trackinganalyst
Class Listener

java.lang.Object
  extended by com.esri.arcgis.trackinganalyst.Listener
All Implemented Interfaces:
IListener, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class Listener
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IListener

Provides the mechanism for the realtime feeds to notify the dynamic controller when to update the screen.

Description

This object is a non-createable internal object that is handed out to real time workspace feature classes so they can notify the dynamic display object that new data has arrived or data has been deleted. This object is apartment neutral therefore it does not suffer from the apartment threaded woes that ArcMap restricts us to. In fact this object’s existent is due to the apartment threaded model of ArcMap.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Tracking Analyst Extension.

See Also:
Serialized Form

Constructor Summary
Listener(Object obj)
          Construct a Listener using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 void addData(IFeatureClass piFeatureClass, double dXMin, double dYMin, double dXMax, double dYMax)
          Adds data to the display controller.
 boolean equals(Object o)
          Compare this object with another
 int hashCode()
          the hashcode for this object
 void removeData(IFeatureClass piFeatureClass, double dXMin, double dYMin, double dXMax, double dYMax)
          Removes data from the display controller.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

Listener

public Listener(Object obj)
         throws IOException
Construct a Listener using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to Listener.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
Listener o = (Listener)obj; // will not work

Listener o = new Listener(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
IOException - if there are interop problems Listener theListener = (Listener) obj;
Method Detail

equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

addData

public void addData(IFeatureClass piFeatureClass,
                    double dXMin,
                    double dYMin,
                    double dXMax,
                    double dYMax)
             throws IOException,
                    AutomationException
Adds data to the display controller.

Product Availability

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

Specified by:
addData in interface IListener
Parameters:
piFeatureClass - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
dXMin - The dXMin (in)
dYMin - The dYMin (in)
dXMax - The dXMax (in)
dYMax - The dYMax (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeData

public void removeData(IFeatureClass piFeatureClass,
                       double dXMin,
                       double dYMin,
                       double dXMax,
                       double dYMax)
                throws IOException,
                       AutomationException
Removes data from the display controller.

Product Availability

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

Specified by:
removeData in interface IListener
Parameters:
piFeatureClass - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
dXMin - The dXMin (in)
dYMin - The dYMin (in)
dXMax - The dXMax (in)
dYMax - The dYMax (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.