com.esri.arcgis.geodatabase
Interface IOverride

All Superinterfaces:
Serializable
All Known Implementing Classes:
IOverrideProxy, Representation

public interface IOverride
extends Serializable

Provides access to members that manage property overrides of a representation.

Remarks

IOverride interface can be used to access override information for a feature representation. While the feature representation can have both shape and attribute overrides, this interface is used to access attribute override information only.

Attribute overrides are overrides made to graphical attributes for LineStroke, GradientPattern, LinePattern, SolidColorPattern, BasicMarkerSymbol, all marker placements, all geometric effects and visibility property which can be retrieved using IRepresentationClass::GraphicAttributes property.

When an attribute override exists for a feature representation, HasAttributeOverride property returns True.

RemoveOverride method can be used to remove override present on a specific graphical attribute given its index.

To remove all overrides present use RemoveOverrides method. However, this method cannot be used to remove shape overrides. Use IRepresentation::RemoveShapeOverride method to remove shape overrides.

Product Availability

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


Method Summary
 boolean isHasAttributeOverride()
          Indicates if a graphical attribute is overriden.
 int isOverridenWithField(IGraphicAttributes attrs, int idx)
          Checks if the value of a graphical attribute comes from a feature field.
 void removeOverride(IGraphicAttributes attrs, int idx)
          Removes a given override from the blob.
 void removeOverrides()
          Removes all attributes overrides from the representation.
 

Method Detail

removeOverride

void removeOverride(IGraphicAttributes attrs,
                    int idx)
                    throws IOException,
                           AutomationException
Removes a given override from the blob.

Remarks

RemoveOverride method can be used to remove override present on a specific graphical attribute given its index. Shape overrides cannot be handled using this method. For removing shape override, use IRepresentation::RemoveShapeOverride method.

Product Availability

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

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

isOverridenWithField

int isOverridenWithField(IGraphicAttributes attrs,
                         int idx)
                         throws IOException,
                                AutomationException
Checks if the value of a graphical attribute comes from a feature field.

Product Availability

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

Parameters:
attrs - A reference to a com.esri.arcgis.display.IGraphicAttributes (in)
idx - The idx (in)
Returns:
The fldIdx
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeOverrides

void removeOverrides()
                     throws IOException,
                            AutomationException
Removes all attributes overrides from the representation.

Remarks

RemoveOverrides method can be used to remove all overrides (except shape overrides) present on a feature representation.

For removing shape override, use IRepresentation::RemoveShapeOverride method.

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.

isHasAttributeOverride

boolean isHasAttributeOverride()
                               throws IOException,
                                      AutomationException
Indicates if a graphical attribute is overriden.

Remarks

HasAttributeOverride property will return True when a feature representation has attribute overrides. To get information on whether or not the representation has shape overrides, use IRepresentation::HasShapeOverride property.

Product Availability

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

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