|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IRepresentationRule
Provides access to members that control a representation rule.
IRepresentationRule interface provides access to the members of a single representation rule used by a representation class to draw the individual feature representations. A representation rule consists of one or more basic symbol layers namely BasicLineSymbol, BasicFillSymbol and BasicMarkerSymbol. In addition to the symbol layers, a representation rule may also contain geometric effects.
The following code snippet shows how to get access to a RepresentationRule object given with its name. The name of the representation rule can be changed to get access to a different representation rule.
Dim pRepRules As IRepresentationRules
Dim pRepRule As IRepresentationRule
Dim lID As Long, sName As String
Set pRepRules = pRepClass.RepresentationRules
'walk through the representationrules and get a specific rule with given name
pRepRules.Reset
pRepRules.Next lID, pRepRule
Do Until pRepRule Is Nothing
If pRepRules.Name(lID) = "Buildings_Rule" Then Exit Do
pRepRules.Next lID, pRepRule
Loop
Use IRepresentationRule interface to get reference to the individual representation rule objects present in the RepresentationRules collection for a representation class.
| Method Summary | |
|---|---|
void |
draw(int index,
IOutputContext context,
IGeometry geometry,
IEnvelope envelope)
Draws a layer of a representation rule. |
IBasicSymbol |
getLayer(int index)
Layer at a given index. |
int |
getLayerCount()
Number of layers in the representation rule. |
void |
insertLayer(int index,
IBasicSymbol symbol)
Adds a layer to the representation rule. |
void |
removeLayer(int index)
Removes a layer from the representation rule. |
| Method Detail |
|---|
int getLayerCount()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
IBasicSymbol getLayer(int index)
throws IOException,
AutomationException
index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void insertLayer(int index,
IBasicSymbol symbol)
throws IOException,
AutomationException
index - The index (in)symbol - A reference to a com.esri.arcgis.display.IBasicSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void removeLayer(int index)
throws IOException,
AutomationException
If RemoveLayer method is used to remove the very last symbol layer present in a representation rule, it is the responsibility of the developer to add atleast one symbol layer. Use InsertLayer or IRepresentationRuleInit::InitWithSymbol methods to achieve this.
index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void draw(int index,
IOutputContext context,
IGeometry geometry,
IEnvelope envelope)
throws IOException,
AutomationException
index - The index (in)context - A reference to a com.esri.arcgis.display.IOutputContext (in)geometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)envelope - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
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 | ||||||||