com.esri.arcgis.carto
Class AnnotationElement

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

public class AnnotationElement
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IAnnotationElement

An annotation feature handed out by the geodatabase.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
AnnotationElement(Object obj)
          Construct a AnnotationElement using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 IFeature getFeature()
          The feature associated with this element.
 int hashCode()
          the hashcode for this object
 
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

AnnotationElement

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

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

Throws:
IOException - if there are interop problems AnnotationElement theAnnotationElement = (AnnotationElement) 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

getFeature

public IFeature getFeature()
                    throws IOException,
                           AutomationException
The feature associated with this element.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getFeature in interface IAnnotationElement
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeature
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.