com.esri.arcgis.display
Interface IRepresentationGraphics

All Superinterfaces:
Serializable
All Known Implementing Classes:
RepresentationGraphics, RepresentationMarker

public interface IRepresentationGraphics
extends Serializable

Provides access to the content of a RepresentationGraphics object.

Remarks

Use IRepresentationGraphics interface to create new or manage an existing RepresentationGraphics or RepresentationMarker object. When a feature representation is converted to a free representation, the result is a representation graphics object.

Add method can be used to add geometries to a RepresentationGraphics or RepresentationMarker object. This method takes arguments such as geometry and representation rule. The geometry is in map coordinates.

Product Availability

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


Method Summary
 void add(IGeometry geometry, IRepresentationRule repRule)
          Adds a new graphic.
 void changeGeometry(int iD, IGeometry geometry)
          Changes a geometry.
 void next(IGeometry[] geometry, IRepresentationRule[] repRule)
          Retrieves the next graphic.
 void nextGeometry(int[] iD, IGeometry[] geometry)
          Accesses the next geometry.
 void remove(IGeometry geometry, IRepresentationRule repRule)
          Removes a graphic.
 void removeAll()
          Removes all graphics.
 void reset()
          Resets the graphic enumeration.
 void resetGeometry()
          Resets the geometry collection.
 

Method Detail

reset

void reset()
           throws IOException,
                  AutomationException
Resets the graphic enumeration.

Product Availability

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

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

next

void next(IGeometry[] geometry,
          IRepresentationRule[] repRule)
          throws IOException,
                 AutomationException
Retrieves the next graphic.

Product Availability

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

Parameters:
geometry - A reference to a com.esri.arcgis.geometry.IGeometry (out: use single element array)
repRule - A reference to a com.esri.arcgis.display.IRepresentationRule (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

void add(IGeometry geometry,
         IRepresentationRule repRule)
         throws IOException,
                AutomationException
Adds a new graphic.

Remarks

Add method can be used to add representation graphics to a RepresentationGraphics object. This method takes arguments such as geometry and representation rule. The geometry is in map coordinates.

Product Availability

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

Parameters:
geometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)
repRule - A reference to a com.esri.arcgis.display.IRepresentationRule (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

void remove(IGeometry geometry,
            IRepresentationRule repRule)
            throws IOException,
                   AutomationException
Removes a graphic.

Product Availability

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

Parameters:
geometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)
repRule - A reference to a com.esri.arcgis.display.IRepresentationRule (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeAll

void removeAll()
               throws IOException,
                      AutomationException
Removes all graphics.

Product Availability

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

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

resetGeometry

void resetGeometry()
                   throws IOException,
                          AutomationException
Resets the geometry collection.

Product Availability

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

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

nextGeometry

void nextGeometry(int[] iD,
                  IGeometry[] geometry)
                  throws IOException,
                         AutomationException
Accesses the next geometry.

Remarks

NextGeometry method can be used to call the geometries present in a RepresentationGraphics or RepresentationMarker. Reset method has to be called prior to calling this method as this will reset the collection of geometries to the starting.

Product Availability

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

Parameters:
iD - The iD (out: use single element array)
geometry - A reference to a com.esri.arcgis.geometry.IGeometry (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

changeGeometry

void changeGeometry(int iD,
                    IGeometry geometry)
                    throws IOException,
                           AutomationException
Changes a geometry.

Product Availability

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

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