|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGraphicAttributes
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
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.
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.
Method Summary | |
---|---|
String |
getClassName()
Class name of the graphic attribute. |
int |
getGraphicAttributeCount()
Number of graphic attributes. |
int |
getID(int attrIndex)
ID of graphic attributes. |
int |
getIDByName(String name)
ID of the graphic attribute, given its name. |
String |
getName(int attrId)
Name of the graphic attribute. |
IGraphicAttributeType |
getType(int attrId)
Type of the graphic attribute. |
Object |
getValue(int attrId)
Value of the graphic attribute. |
void |
setValue(int attrId,
Object val)
Value of the graphic attribute. |
Method Detail |
---|
int getGraphicAttributeCount() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getID(int attrIndex) throws IOException, AutomationException
attrIndex
- The attrIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getName(int attrId) throws IOException, AutomationException
attrId
- The attrId (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGraphicAttributeType getType(int attrId) throws IOException, AutomationException
attrId
- The attrId (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getValue(int attrId) throws IOException, AutomationException
attrId
- The attrId (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setValue(int attrId, Object val) throws IOException, AutomationException
attrId
- The attrId (in)val
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getIDByName(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getClassName() throws IOException, AutomationException
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 |