|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAnnotationFeature
Provides access to members that control the annotation feature.
The IAnnotationFeature interface is used for relating annotation features to other features or updating the graphic of the annotation. The Annotation property will accept any object implementing IGraphicElement. If a TextElement is used, you may reference an exiting TextSymbol stored in the SymbolCollection of the AnnotationFeatureClassExtension by using the ISymbolCollectionElement interface. It is highly recommended that you reference symbols in the SymbolCollection when storing TextElements in an annotation feature class. See the help for ISymbolCollectionElement for more details on this storage system.
The LinkedFeatureID property is used to indicate which feature the annotation is linked to for feature-linked annotation. If the feature is not linked, the property will be -1.
After updating the either of these properties, the IFeature::Store method must be called.
The IAnnotationFeature interface maintains information about an annotation feature.
// 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(); }
IFeature
,
IFeatureCursor
Method Summary | |
---|---|
IElement |
getAnnotation()
The annotation element for the feature. |
int |
getLinkedFeatureID()
Feature ID. |
void |
setAnnotation(IElement element)
The annotation element for the feature. |
void |
setLinkedFeatureID(int fID)
Feature ID. |
Method Detail |
---|
IElement getAnnotation() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAnnotation(IElement element) throws IOException, AutomationException
element
- A reference to a com.esri.arcgis.carto.IElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLinkedFeatureID(int fID) throws IOException, AutomationException
fID
- The fID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getLinkedFeatureID() throws IOException, AutomationException
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 |