|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.RepresentationRules
public class RepresentationRules
A collection of representation rules object.
RepresentationRules is a collection of RepresentationRule objects useful for representing features in a representation class. Features can be categorized into groups based on these rules. A representation class is associated with a single set of rules managed by IRepresentationRules interface.
RepresentationRule is a combination of one or more basic symbols such as BasicMarkerSymol along with MarkerPlacement, BasicLineSymbol and BasicFillSymbol implementing IBasicSymbol interface. Complex symbols can be created by incorporating geometric effect(s). Standard ArcGIS symbols such as SimpleMarkerSymbol, SimpleLineSymbol etc implementing ISymbol interface can also be converted to basic symbols using for using them within a rule using IRepresentationRuleInit interface.
To access individual rules, use IRepresentationRules.Next method.
A new representation rules collection has to be created or a reference to an existing Representation Rules has to be made prior to converting a feature class into a representation class. The representation rules can also be modified by adding or removing individual rules, updating graphic attributes, adding/removing basic symbols, adding/removing geometric effects etc., or use IRepresentationClass.RepresentationRules to get a reference to an existing representation rules object.
Note: IRepresentationRule and IRepresentationRuleInit are interfaces present in esriDisplay library.
Constructor Summary | |
---|---|
RepresentationRules()
Constructs a RepresentationRules using ArcGIS Engine. |
|
RepresentationRules(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. RepresentationRules theRepresentationRules = (RepresentationRules) obj; |
Method Summary | |
---|---|
int |
add(IRepresentationRule repRule)
Adds a new representation rule to the collection. |
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
Object |
convertToSupportedObject(int docVersion)
Convert the object to another object that is supported. |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
boolean |
exists(int iD)
Checks whether the given representation rule exists in the collection. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
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 |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
isDirty()
isDirty |
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties. |
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object. |
boolean |
isSupportedAtVersion(int docVersion)
Is this object valid at the given document version. |
void |
load(IStream pstm)
load |
void |
next(int[] iD,
IRepresentationRule[] repRule)
Returns the next representation rule in the enumeration. |
void |
readExternal(ObjectInput in)
|
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 |
save(IStream pstm,
int fClearDirty)
save |
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. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public RepresentationRules() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic RepresentationRules(Object obj) throws IOException
RepresentationRules theRepresentationRules = (RepresentationRules) obj;
obj
to RepresentationRules
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getName(int iD) throws IOException, AutomationException
getName
in interface IRepresentationRules
iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(int iD, String name) throws IOException, AutomationException
setName
in interface IRepresentationRules
iD
- The iD (in)name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getIndex(int iD) throws IOException, AutomationException
getIndex
in interface IRepresentationRules
iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIndex(int iD, int index) throws IOException, AutomationException
setIndex
in interface IRepresentationRules
iD
- The iD (in)index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void reset() throws IOException, AutomationException
reset
in interface IRepresentationRules
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
next
in interface IRepresentationRules
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.public IRepresentationRule getRule(int iD) throws IOException, AutomationException
getRule
in interface IRepresentationRules
iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRule(int iD, IRepresentationRule repRule) throws IOException, AutomationException
setRule
in interface IRepresentationRules
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.public int add(IRepresentationRule repRule) throws IOException, AutomationException
add
in interface IRepresentationRules
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.public void remove(int iD) throws IOException, AutomationException
remove
in interface IRepresentationRules
iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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)
removeAll
in interface IRepresentationRules
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
exists
in interface IRepresentationRules
iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IClone esri_clone() throws IOException, AutomationException
esri_clone
in interface IClone
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void assign(IClone src) throws IOException, AutomationException
assign
in interface IClone
src
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEqual(IClone other) throws IOException, AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isIdentical(IClone other) throws IOException, AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws IOException, AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty
in interface IPersistStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isSupportedAtVersion(int docVersion) throws IOException, AutomationException
Use IsSupportedAtVersion to identify if a particular object should be saved to the ObjectStream. This result is based on the esriArcGISVersion enumeration. In some instances, if the object is not supported at a particular ArcGIS version, the object may support conversion to another similar object; use IDocumentVersionSupportGEN::ConvertToSupportedObject to accomplish this.
isSupportedAtVersion
in interface IDocumentVersionSupportGEN
docVersion
- A com.esri.arcgis.system.esriArcGISVersion constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object convertToSupportedObject(int docVersion) throws IOException, AutomationException
This method should be used when IDocumentVersionSupportGEN::IsSupportedAtVersion returns FALSE. Calling ConvertToSupportedObject will return an IUnknown pointer to a relevant object supported at the particular ArcGIS version. Not all objects will return a supported object; in these cases a null pointer will be returned.
convertToSupportedObject
in interface IDocumentVersionSupportGEN
docVersion
- A com.esri.arcgis.system.esriArcGISVersion constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |