com.esri.arcgis.carto
Interface IElementCollection2

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ElementCollection, IElementCollection2Proxy

public interface IElementCollection2
extends java.io.Serializable

COM Interface 'IElementCollection2'. Generated 3/19/2015 1:20:52 PM from 'C:\ArcGIS\COM\esriCarto.olb'

Description: 'Provides access to members that control the Graphics element collection.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =


Field Summary
static java.lang.String IID
          Deprecated. Internal use only
static int IIDb2bfc403_6b4c_4490_8878_ea62c4f49720
           
static int xxDummy
          Deprecated. Internal use only
 
Method Summary
 void add(IElement element, int linkedFeatureID, int annotationClassID, int status)
          Adds an element to the collection.
 void clear()
          Removes all the elements in the collection.
 int getCount()
          Number of elements in the collection.
 void queryItem(int index, IElement[] element, int[] linkedFeatureID, int[] annotationClassID, int[] status)
          Element at the given index.
 void remove(IElement element)
          Remove an element from the collection.
 

Field Detail

IIDb2bfc403_6b4c_4490_8878_ea62c4f49720

static final int IIDb2bfc403_6b4c_4490_8878_ea62c4f49720
See Also:
Constant Field Values

xxDummy

static final int xxDummy
Deprecated. Internal use only
See Also:
Constant Field Values

IID

static final java.lang.String IID
Deprecated. Internal use only
See Also:
Constant Field Values
Method Detail

add

void add(IElement element,
         int linkedFeatureID,
         int annotationClassID,
         int status)
         throws java.io.IOException,
                AutomationException
Adds an element to the collection.

Parameters:
element - A reference to a com.esri.arcgis.carto.IElement (in)
linkedFeatureID - The linkedFeatureID (in, optional, pass 0 if not required)
annotationClassID - The annotationClassID (in, optional, pass -1 if not required)
status - A com.esri.arcgis.carto.esriAnnotationStatus constant (in, optional, pass 0 if not required)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCount

int getCount()
             throws java.io.IOException,
                    AutomationException
Number of elements in the collection.

Returns:
The count
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryItem

void queryItem(int index,
               IElement[] element,
               int[] linkedFeatureID,
               int[] annotationClassID,
               int[] status)
               throws java.io.IOException,
                      AutomationException
Element at the given index.

Parameters:
index - The index (in)
element - A reference to a com.esri.arcgis.carto.IElement (out: use single element array)
linkedFeatureID - The linkedFeatureID (out: use single element array, optional, pass single element of null if not required)
annotationClassID - The annotationClassID (out: use single element array, optional, pass single element of null if not required)
status - A com.esri.arcgis.carto.esriAnnotationStatus constant (out: use single element array, optional, pass single element of null if not required)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clear

void clear()
           throws java.io.IOException,
                  AutomationException
Removes all the elements in the collection.

Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

void remove(IElement element)
            throws java.io.IOException,
                   AutomationException
Remove an element from the collection.

Parameters:
element - A reference to a com.esri.arcgis.carto.IElement (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.