|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAnnotationEditExtension
Provides access to members that control annotation feature editing.
Use IEditor::FindExtension to access the AnnotationEditExtension and its interfaces.
Method Summary | |
---|---|
IEnumAnnotationConstructor |
getAnnotationConstructors()
The annotation constructors for creating new annotations. |
ITextSymbol |
getConstructionSymbol()
The symbol to be used for newly created annotation features. |
int |
getConstructionSymbolID()
The symbol id of newly created annotation features. |
String |
getConstructionText()
The current text that will be used to construct the annotation. |
IAnnotationConstructor |
getCurrentConstructor()
The currently selected annotation constructor. |
int |
getLinkedFeatureID()
The linked feature id for the newly created annotation feature. |
boolean |
isAnnotationTarget()
Indicates if an annotation feature class is the current editor target. |
void |
setConstructionSymbolID(int text)
The symbol id of newly created annotation features. |
void |
setConstructionText(String text)
The current text that will be used to construct the annotation. |
void |
setCurrentConstructorByRef(IAnnotationConstructor constructor)
The currently selected annotation constructor. |
void |
setLinkedFeatureID(int featureID)
The linked feature id for the newly created annotation feature. |
Method Detail |
---|
IEnumAnnotationConstructor getAnnotationConstructors() throws IOException, AutomationException
Returns the current annotation constructors under the component category 'ESRI Annotation Constructors', returning them in an IEnumAnnotationConstructor.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IAnnotationConstructor getCurrentConstructor() throws IOException, AutomationException
CurrentConstructor returns an IAnnotationConstructor representing the AnnotationExitExtension's current annotation constructor.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCurrentConstructorByRef(IAnnotationConstructor constructor) throws IOException, AutomationException
Use this property to check or change the editor's current annotation construction method. When the editor's current task is 'Create New Feature' and the IEditLayers::CurrentLayer is an annotation layer, IAnnotationEditExtension::CurrentConstructor determines the geometry of the edit sketch used to complete the new annotation.
constructor
- A reference to a com.esri.arcgis.editor.IAnnotationConstructor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isAnnotationTarget() throws IOException, AutomationException
Determines if the editor's target layer is an annotation feature class. This could also be determined by querying the GeometryType of the target layer's feature class. This property returns True for both 8.3 annotation feature classes and annotation updated or created in 9.0.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getConstructionText() throws IOException, AutomationException
ConstructionText determines the text string used for constructing new annotation features. ConstructionText may contain a value containing line break characters to construct stacked text. To set the ConstructionText to be multi-line you can use your development environment's carriage return character in the string you set to the ConstructionText property. If the ConstructionText value is an empty string, the AnnotationEditExtension will automatically use the default string "Text".
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setConstructionText(String text) throws IOException, AutomationException
Use this property to determine the text string used during the creation of new annotation features. Changing this property does not impact the text of existing annotation features.
text
- The text (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getConstructionSymbolID() throws IOException, AutomationException
Use this property to control the symbol used for constructing new annotation features. When setting the value of ConstructionSymbolID You should check the target annotation feature class' symbol collection to ensure that the ID exists; if it does not exist an error will be returned.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setConstructionSymbolID(int text) throws IOException, AutomationException
text
- The text (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ITextSymbol getConstructionSymbol() throws IOException, AutomationException
Returns the current text symbol from the symbol collection of the current target annotation feature class. Use the symbol returned when creating feedback for a custom annotation constructor.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getLinkedFeatureID() throws IOException, AutomationException
This property allows you to set the FeatureID value for newly-constructed annotation. The value determines the feature in the origin class it is linked to if the annotation feature class is feature-linked.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLinkedFeatureID(int featureID) throws IOException, AutomationException
featureID
- The featureID (in)
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 |