|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRepresentationRenderer
Provides access to the properties and methods of a RepresentationRenderer.
IRepresentationRenderer interface has properties useful for managing a RepresentationRenderer. A Representation Renderer is useful for displaying features using the representation information stored in any of its Representation Classes. RepresentationClass property can be used to set reference to a representation class or to make changes to an existing one.
Use this interface to reference the renderer to any available representation classes using RepresentationClass property so that all features are drawn with associated representation rules and any overriden attributes. Also, once the renderer renders all features, features having null rule values or invisible features may be managed using this interface.
InvalidRuleColor and InvisibleColor properties can be used to change colors and DrawInvalidRule and DrawInvisible properties can be used to control drawing of such feature representations.
The following piece of code shows how to get reference to a representation class using a feature layer in ArcMap which has been rendered using representation renderer.
Method Summary | |
---|---|
IColor |
getInvalidRuleColor()
Color used for representations with an invalid rule ID. |
IColor |
getInvisibleColor()
Color used for invisible representations. |
IRepresentationClass |
getRepresentationClass()
Property RepresentationClass. |
boolean |
isDrawInvalidRule()
Indicates if representations with an invalid Rule ID will draw. |
boolean |
isDrawInvisible()
Indicates whether or not invisible representations will be drawn. |
void |
setDrawInvalidRule(boolean draw)
Indicates if representations with an invalid Rule ID will draw. |
void |
setDrawInvisible(boolean draw)
Indicates whether or not invisible representations will be drawn. |
void |
setInvalidRuleColor(IColor color)
Color used for representations with an invalid rule ID. |
void |
setInvisibleColor(IColor color)
Color used for invisible representations. |
void |
setRepresentationClassByRef(IRepresentationClass repClass)
Property RepresentationClass. |
Method Detail |
---|
void setRepresentationClassByRef(IRepresentationClass repClass) throws IOException, AutomationException
This is the RepresentationClass referenced by the renderer so that all features are drawn using the representation information present in the representation class. Since a single feature class can have multiple representation classes, any single representation class can be used to draw all of its features.
repClass
- A reference to a com.esri.arcgis.geodatabase.IRepresentationClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IRepresentationClass getRepresentationClass() throws IOException, AutomationException
This is the RepresentationClass referenced by the renderer so that all features are drawn using the representation information present in the representation class. Since a single feature class can have multiple representation classes, any single representation class can be used to draw all of its features.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isDrawInvisible() throws IOException, AutomationException
DrawInvisible is a boolean that indicates if invisible feature representations will be drawn or not. To change the visibility property use IRepresentaionClass::GraphicAttributes.
For example, if pRepClass is a reference to a representation class then the Viibility property for all its features can be managed as follows:
Dim pGA As IGraphicAttributes
Set pGA = pRepClass.GraphicAttributes
pGA.Value(0) = False 'Make invisible
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDrawInvisible(boolean draw) throws IOException, AutomationException
draw
- The draw (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IColor getInvisibleColor() throws IOException, AutomationException
InvisibleColor is the color used by the renderer to draw invisible feature representations.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setInvisibleColor(IColor color) throws IOException, AutomationException
color
- A reference to a com.esri.arcgis.display.IColor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isDrawInvalidRule() throws IOException, AutomationException
DrawInvalidRule is a boolean that indicates if feature representations having either invalid or null representation rule values will be drawn by the renderer or not.
An invalid representation rule is a rule that does not belong to the collection of RepresentationRules object for that particular RepresentationClass or a rule having null value. Representation rule IDs are stored in the RuleID field of the attribute table.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDrawInvalidRule(boolean draw) throws IOException, AutomationException
draw
- The draw (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IColor getInvalidRuleColor() throws IOException, AutomationException
InvalidRuleColor is the color used by the renderer to draw all feature representations having invalid representation rule values.
An invalid representation rule is a rule that is not present in the collection of RepresentationRules object for that particular RepresentationClass or a null rule value. Representation rule ID values are stored in the RuleID field of the attribute table.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setInvalidRuleColor(IColor color) throws IOException, AutomationException
color
- A reference to a com.esri.arcgis.display.IColor (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 |