com.esri.arcgis.trackinganalyst
Class Listener

java.lang.Object
  extended by com.esri.arcgis.trackinganalyst.Listener
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IListener, 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.

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. Requires Tracking Analyst Extension.

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. Requires Tracking Analyst Extension.

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.