|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provides access to members that control the graphic attributes.
IGraphicAttributes has methods that define a list of graphic attributes for a number of objects such as GeometricEffects, MarkerPlacements, BasicSymbols including BasicMarkerSymbol, BasicFillSymbol and BasicMarkerSymbol, FillPatterns including SolidColorPattern, GradientPattern and LinePattern.
The following enumerations contain all graphic attributes for the above objects: esriGeometricEffectAttributes, esriGraphicAttribute and esriMarkerPlacementAttributes
Use IGraphicAttributes interface for making overrides to the graphic attributes of either Basic Symbols, Geometric Effects, Marker Placements, Fill Patterns or for custom created objects.
IGraphicAtributes interface must to be implemented by a custom marker placement, geometric effect or fill pattern.
ClassName defines the name of the object for which the attributes are listed.
ClassName will return the name of the Class object implementing this interface. For all Marker Placements, this property will return the type of the marker placement. For example, for a MarkerPlacementOnPoint, ClassName property will return a string "OnPoint". Similarly, use this interface for retreiving the class names for all types of FillPatterns and GeometricEffects Classes as well.
GraphicAttributeCount is a long and indicates the total numer of attributes present for a particular object. ID is a long and indicates the unique identifier of the attribute. Name is a string that indicates the name of the attribute. Type references to an object implementing IGraphicAttributeType. Use IGraphicAttributeType.Type property to determine the type from the following enumeration esriGraphicAttributeType. Value is a variant that can be used to either set or retrieve value from the attribute.
ID, Name, Type, IDByName and Value are methods that define each individual attribute within the graphic attributes list.
GeometricEffectOffset is a geometric effect used to offset line or polygon geometries by an offset distance. The ClassName for this object is Offset Curve and it consists of a single attribute with ID equal to 0 and name as Offset. The Attribute type is esriAttributeTypeDouble.
The following VB code explains the usage of this interface.
| Method Summary | |
java.lang.String |
getClassName()
Class name of the graphic attribute. |
int |
getGraphicAttributeCount()
Number of graphic attributes. |
int |
getID(int attrIndex)
ID of graphic attributes. |
int |
getIDByName(java.lang.String name)
ID of the graphic attribute, given its name. |
java.lang.String |
getName(int attrId)
Name of the graphic attribute. |
IGraphicAttributeType |
getType(int attrId)
Type of the graphic attribute. |
java.lang.Object |
getValue(int attrId)
Value of the graphic attribute. |
void |
setValue(int attrId,
java.lang.Object val)
Value of the graphic attribute. |
| Method Detail |
public int getGraphicAttributeCount()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getID(int attrIndex)
throws java.io.IOException,
AutomationException
attrIndex - The attrIndex (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getName(int attrId)
throws java.io.IOException,
AutomationException
attrId - The attrId (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGraphicAttributeType getType(int attrId)
throws java.io.IOException,
AutomationException
attrId - The attrId (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.Object getValue(int attrId)
throws java.io.IOException,
AutomationException
attrId - The attrId (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setValue(int attrId,
java.lang.Object val)
throws java.io.IOException,
AutomationException
attrId - The attrId (in)val - A Variant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getIDByName(java.lang.String name)
throws java.io.IOException,
AutomationException
If IDByName returns -1, the graphic attribute with the given name could not be found.
name - The name (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getClassName()
throws java.io.IOException,
AutomationException
java.io.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 | |||||||||