com.esri.arcgis.carto
Class AnnotateFeature

java.lang.Object
  extended by com.esri.arcgis.carto.AnnotateFeature
All Implemented Interfaces:
IAnnotateFeature, IAnnotateFeature2, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class AnnotateFeature
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IAnnotateFeature, IAnnotateFeature2

A renderer for labeling one feature.

Description

AnnotateFeature labels one feature based on the properties given, and returns IElement as result.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
AnnotateFeature()
          Constructs a AnnotateFeature using ArcGIS Engine.
AnnotateFeature(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
AnnotateFeature theAnnotateFeature = (AnnotateFeature) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 void label(IAnnotateLayerProperties annoLayerProps, IFeature feature, IDisplay display, ISpatialReference pSpatialRef, IBarrierCollection barrierColl, IElement[] placedElement, IElement[] unplacedElement)
          Labels a feature based on the properties given.
 void label(IOverposterProperties overposterProps, IAnnotateLayerProperties annoLayerProps, IFeature feature, IDisplay display, ISpatialReference pSpatialRef, IBarrierCollection barrierColl, IElement[] placedElement, IElement[] unplacedElement)
          Labels a feature based on the properties given.
 
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

AnnotateFeature

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

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

AnnotateFeature

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

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

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

label

public void label(IAnnotateLayerProperties annoLayerProps,
                  IFeature feature,
                  IDisplay display,
                  ISpatialReference pSpatialRef,
                  IBarrierCollection barrierColl,
                  IElement[] placedElement,
                  IElement[] unplacedElement)
           throws IOException,
                  AutomationException
Labels a feature based on the properties given.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
label in interface IAnnotateFeature
Parameters:
annoLayerProps - A reference to a com.esri.arcgis.carto.IAnnotateLayerProperties (in)
feature - A reference to a com.esri.arcgis.geodatabase.IFeature (in)
display - A reference to a com.esri.arcgis.display.IDisplay (in)
pSpatialRef - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
barrierColl - A reference to a com.esri.arcgis.carto.IBarrierCollection (in)
placedElement - A reference to a com.esri.arcgis.carto.IElement (out: use single element array)
unplacedElement - A reference to a com.esri.arcgis.carto.IElement (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

label

public void label(IOverposterProperties overposterProps,
                  IAnnotateLayerProperties annoLayerProps,
                  IFeature feature,
                  IDisplay display,
                  ISpatialReference pSpatialRef,
                  IBarrierCollection barrierColl,
                  IElement[] placedElement,
                  IElement[] unplacedElement)
           throws IOException,
                  AutomationException
Labels a feature based on the properties given.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
label in interface IAnnotateFeature2
Parameters:
overposterProps - A reference to a com.esri.arcgis.carto.IOverposterProperties (in)
annoLayerProps - A reference to a com.esri.arcgis.carto.IAnnotateLayerProperties (in)
feature - A reference to a com.esri.arcgis.geodatabase.IFeature (in)
display - A reference to a com.esri.arcgis.display.IDisplay (in)
pSpatialRef - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
barrierColl - A reference to a com.esri.arcgis.carto.IBarrierCollection (in)
placedElement - A reference to a com.esri.arcgis.carto.IElement (out: use single element array)
unplacedElement - A reference to a com.esri.arcgis.carto.IElement (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.