|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAnnotationLayer
Provides access to members that control the annotation layer.
IAnnotationLayer provides a fast mechanism for inserting annotation features into geodatabase annotation feature classes. Insertions performed via this interface are done as low level inserts that bypass polymorphic object insert behavior, therefore no events will be fired.
Adding annotation features or elements should always be done after calling the BeginAddElements method. After the features or elements are inserted, be sure to issue a call to the EndAddElements method.
If inserting annotation elements without attributes, use the DoAddElements method which takes an enumeration of GraphicElement objects. If inserting annotation elements with attributes, use the SetupAttributeConversion method to setup the field mapping between the input features and the target annotation feature class, then call DoAddFeature. DoAddFeature will add the element, the placement polygon shape and populate any attributes that are mapped. DoAddNullElement will add a null element to the feature class. The SetupAttributeConversion method cannot be called from Visual Basic. Instead, use the SetupAttributeConversion2 method on IFDOAttributeConversion to setup the field mapping. Field mapping should be setup after the BeginAddElements method is called.
Method Summary | |
---|---|
void |
beginAddElements()
Begins a batch process for adding elements to a graphics layer. |
void |
doAddElements(IElementCollection pElements,
int zorder)
Adds a batch of elements to a graphics layer. |
void |
doAddFeature(IFeature pFeature,
IElement pElement,
int zorder,
int annotationClassID,
int status)
Adds a feature and its corresponding element to a graphics layer. |
void |
doAddNullElement(int featureId,
int annotationClassID,
int status)
Adds a feature and its corresponding element to a graphics layer. |
void |
endAddElements()
Ends the batch process for adding elements to a graphics layer. |
void |
getAddErrorInfo(String[] errors,
String[] filePath)
The errors and the file and path of the GL*.log file which stores error information when Add is called in batch (using BeginAddElements and EndAddElements). |
IColor |
getUnplacedAnnotationColor()
Indicates the color with which unplaced annotation is drawn. |
boolean |
isDrawUnplacedAnnotation()
Indicates if unplaced annotation is going to draw. |
void |
setDrawUnplacedAnnotation(boolean flag)
Indicates if unplaced annotation is going to draw. |
void |
setUnplacedAnnotationColorByRef(IColor color)
Indicates the color with which unplaced annotation is drawn. |
void |
setupAttributeConversion(int numAttributes,
int[] inputCols,
int[] outputCols)
Sets up attribute conversion parameters for batch conversion. |
Method Detail |
---|
void beginAddElements() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setupAttributeConversion(int numAttributes, int[] inputCols, int[] outputCols) throws IOException, AutomationException
This method takes the number of fields to match, and and two arrays which define the field mapping. These arrays will have the indexes of the fields from the source feature and the indexes of the matching fields in the target annotation feature class.
This method should be called after calling BeginAddElements. BeginAddElements will reset any attribute conversion setup that was established ,before calling it.
This method cannot be called from Visual Basic, Java, or the .NET languages. Instead, use the SetupAttributeConversion2 interface on IFDOAttributeConversion.
numAttributes
- The numAttributes (in)inputCols
- The inputCols (in)outputCols
- The outputCols (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void doAddFeature(IFeature pFeature, IElement pElement, int zorder, int annotationClassID, int status) throws IOException, AutomationException
pFeature
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)pElement
- A reference to a com.esri.arcgis.carto.IElement (in)zorder
- The zorder (in)annotationClassID
- The annotationClassID (in)status
- A com.esri.arcgis.carto.esriAnnotationStatus constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void doAddElements(IElementCollection pElements, int zorder) throws IOException, AutomationException
pElements
- A reference to a com.esri.arcgis.carto.IElementCollection (in)zorder
- The zorder (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void endAddElements() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void doAddNullElement(int featureId, int annotationClassID, int status) throws IOException, AutomationException
featureId
- The featureId (in)annotationClassID
- The annotationClassID (in)status
- A com.esri.arcgis.carto.esriAnnotationStatus constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isDrawUnplacedAnnotation() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDrawUnplacedAnnotation(boolean flag) throws IOException, AutomationException
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IColor getUnplacedAnnotationColor() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUnplacedAnnotationColorByRef(IColor color) throws IOException, AutomationException
color
- A reference to a com.esri.arcgis.display.IColor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getAddErrorInfo(String[] errors, String[] filePath) throws IOException, AutomationException
errors
- The errors (out: use single element array)filePath
- The filePath (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 |