|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAnnotateFeature
Provides access to members that control the labeling (annotation) of one feature.
IAnnotateFeature provides access to method Label of the AnnotateFeature object. This object is used for low level generation of text elements at the feature level and is not intended to be used in a loop to generate text for an entire layer or map. IAnnotateFeature2 has superseded IAnnotateFeature due to the additional support for OverposterProperties.
// Assume we have an IAnnotationFeature reference (pAnnoFeature);
IAnnotationFeature pAnnoFeature = null;
IElement pElement = pAnnoFeature.getAnnotation();
if(pElement instanceof ITextElement)
{
ITextElement pTextElement = new ITextElementProxy(pElement);
pTextElement.setText("foo");
pAnnoFeature.setAnnotation(pElement);
IFeature pFeature = new IFeatureProxy(pAnnoFeature);
pFeature.store();
}
Method Summary | |
---|---|
void |
label(IAnnotateLayerProperties annoLayerProps,
IFeature feature,
IDisplay display,
ISpatialReference pSpatialRef,
IBarrierCollection barrierColl,
IElement[] placedElement,
IElement[] unplacedElement)
Labels a feature based on the properties given. |
Method Detail |
---|
void label(IAnnotateLayerProperties annoLayerProps, IFeature feature, IDisplay display, ISpatialReference pSpatialRef, IBarrierCollection barrierColl, IElement[] placedElement, IElement[] unplacedElement) throws IOException, AutomationException
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |