com.esri.arcgis.carto
Interface IGraphicElements

All Superinterfaces:
Serializable
All Known Implementing Classes:
GraphicElements

public interface IGraphicElements
extends Serializable

Provides access to members that control the Graphic Elements object.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux


Method Summary
 void add(IGraphicElement element)
          Add a graphic element.
 int getCount()
          The graphic element count.
 IGraphicElement getElement(int index)
          The graphic element at the specified position.
 void insert(int index, IGraphicElement element)
          Add a graphic element at the specified posiiton.
 void remove(int index)
          Remove the graphic element at the specified position.
 void removeAll()
          Remove all graphic elements.
 

Method Detail

getCount

int getCount()
             throws IOException,
                    AutomationException
The graphic element count.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

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

getElement

IGraphicElement getElement(int index)
                           throws IOException,
                                  AutomationException
The graphic element at the specified position.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.carto.IGraphicElement
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

void remove(int index)
            throws IOException,
                   AutomationException
Remove the graphic element at the specified position.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
index - The index (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeAll

void removeAll()
               throws IOException,
                      AutomationException
Remove all graphic elements.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

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

add

void add(IGraphicElement element)
         throws IOException,
                AutomationException
Add a graphic element.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

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

insert

void insert(int index,
            IGraphicElement element)
            throws IOException,
                   AutomationException
Add a graphic element at the specified posiiton.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

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