com.esri.arcgis.carto
Class DynamicHit

java.lang.Object
  extended by com.esri.arcgis.carto.DynamicHit
All Implemented Interfaces:
IDynamicHit, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class DynamicHit
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IDynamicHit

dynamic hit-test results class.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
DynamicHit()
          Constructs a DynamicHit using ArcGIS Engine.
DynamicHit(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DynamicHit theDynamicHit = (DynamicHit) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int getNameCount()
          Number of names (for internal use).
 Object getObject()
          The object that is hit.
 int getObjectID()
          The oject ID.
 Object getOwner()
          The owner (layer) that is hit.
 int getParentID()
          The parent identifier.
 int hashCode()
          the hashcode for this object
 void setNameCount(int count)
          Number of names (for internal use).
 void setObjectByRef(Object ppObject)
          The object that is hit.
 void setObjectID(int iD)
          The oject ID.
 void setOwnerByRef(Object ppOwner)
          The owner (layer) that is hit.
 void setParentID(int iD)
          The parent identifier.
 
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

DynamicHit

public DynamicHit()
           throws IOException,
                  UnknownHostException
Constructs a DynamicHit using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

DynamicHit

public DynamicHit(Object obj)
           throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DynamicHit theDynamicHit = (DynamicHit) obj;

Construct a DynamicHit using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to DynamicHit.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


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

getOwner

public Object getOwner()
                throws IOException,
                       AutomationException
The owner (layer) that is hit.

Product Availability

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

Specified by:
getOwner in interface IDynamicHit
Returns:
A reference to another Object (IUnknown)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setOwnerByRef

public void setOwnerByRef(Object ppOwner)
                   throws IOException,
                          AutomationException
The owner (layer) that is hit.

Product Availability

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

Specified by:
setOwnerByRef in interface IDynamicHit
Parameters:
ppOwner - A reference to another Object (IUnknown) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getObject

public Object getObject()
                 throws IOException,
                        AutomationException
The object that is hit.

Product Availability

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

Specified by:
getObject in interface IDynamicHit
Returns:
A reference to another Object (IUnknown)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setObjectByRef

public void setObjectByRef(Object ppObject)
                    throws IOException,
                           AutomationException
The object that is hit.

Product Availability

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

Specified by:
setObjectByRef in interface IDynamicHit
Parameters:
ppObject - A reference to another Object (IUnknown) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getParentID

public int getParentID()
                throws IOException,
                       AutomationException
The parent identifier.

Product Availability

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

Specified by:
getParentID in interface IDynamicHit
Returns:
The iD
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setParentID

public void setParentID(int iD)
                 throws IOException,
                        AutomationException
The parent identifier.

Product Availability

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

Specified by:
setParentID in interface IDynamicHit
Parameters:
iD - The iD (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getObjectID

public int getObjectID()
                throws IOException,
                       AutomationException
The oject ID.

Product Availability

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

Specified by:
getObjectID in interface IDynamicHit
Returns:
The iD
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setObjectID

public void setObjectID(int iD)
                 throws IOException,
                        AutomationException
The oject ID.

Product Availability

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

Specified by:
setObjectID in interface IDynamicHit
Parameters:
iD - The iD (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNameCount

public int getNameCount()
                 throws IOException,
                        AutomationException
Number of names (for internal use).

Product Availability

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

Specified by:
getNameCount in interface IDynamicHit
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setNameCount

public void setNameCount(int count)
                  throws IOException,
                         AutomationException
Number of names (for internal use).

Product Availability

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

Specified by:
setNameCount in interface IDynamicHit
Parameters:
count - The count (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.