|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRepresentationRules
Provides access to members that supply information about the representation rules of a feature class representation.
IRepresentationRules interface provides access to the members of the representation rules collection on a representation class. This interface can be used to add, remove or modify rules in representation rules collection.
Use Reset and Next methods to reset the cursor to the beginning of the collection and to access the next rule along with its unique ID. While ID starts with 1 and is useful to identify the rule, the index starts with 0 and determines the position of the rule in the collection. The RuleID field in the feature class attribute table contains this ID value.
Add method adds a new rule to the collection. If no name, index and representation rule are defined, the method will automatically assign default values including a unique rule ID. It is the responsibility of the user to modify the rules and attribute features with the representation rule information.
Method Summary | |
---|---|
int |
add(IRepresentationRule repRule)
Adds a new representation rule to the collection. |
boolean |
exists(int iD)
Checks whether the given representation rule exists in the collection. |
int |
getIndex(int iD)
Index of a representation rule indicated by its ID. |
String |
getName(int iD)
Name of a representation rule indicated by its ID. |
IRepresentationRule |
getRule(int iD)
The representation rule indicated by its ID. |
void |
next(int[] iD,
IRepresentationRule[] repRule)
Returns the next representation rule in the enumeration. |
void |
remove(int iD)
Removes the representation rule identified by its ID. |
void |
removeAll()
Removes all the representation rules from the collection. |
void |
reset()
Resets the representation rule enumeration to the beginning. |
void |
setIndex(int iD,
int index)
Index of a representation rule indicated by its ID. |
void |
setName(int iD,
String name)
Name of a representation rule indicated by its ID. |
void |
setRule(int iD,
IRepresentationRule repRule)
The representation rule indicated by its ID. |
Method Detail |
---|
String getName(int iD) throws IOException, AutomationException
iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setName(int iD, String name) throws IOException, AutomationException
iD
- The iD (in)name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getIndex(int iD) throws IOException, AutomationException
iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setIndex(int iD, int index) throws IOException, AutomationException
iD
- The iD (in)index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void reset() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void next(int[] iD, IRepresentationRule[] repRule) throws IOException, AutomationException
Call Reset method before calling Next method as this will take the rules collection to the beginning.
iD
- The iD (out: use single element array)repRule
- A reference to a com.esri.arcgis.display.IRepresentationRule (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IRepresentationRule getRule(int iD) throws IOException, AutomationException
iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setRule(int iD, IRepresentationRule repRule) throws IOException, AutomationException
iD
- The iD (in)repRule
- A reference to a com.esri.arcgis.display.IRepresentationRule (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int add(IRepresentationRule repRule) throws IOException, AutomationException
repRule
- A reference to a com.esri.arcgis.display.IRepresentationRule (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void remove(int iD) throws IOException, AutomationException
iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeAll() throws IOException, AutomationException
Use RemoveAll method when you want to remove all representation rule items present in a representation rules collection.
This method must be used with care as once it is used, the representation rules object will become empty and it is the responsibility of the developer to create new representation rule(s) to add to the rules collection. Add method can be used to add new rule(s)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean exists(int iD) throws IOException, AutomationException
Exists method can be used to check for the availability of a specific representation rule within a RepresentationRules object before assigning it to a feature representation.
iD
- The iD (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 |