com.esri.arcgis.display
Interface IGraphicAttributeTypeUsingUnits

All Superinterfaces:
Serializable
All Known Implementing Classes:
GraphicAttributeDashType, GraphicAttributeSizeType

public interface IGraphicAttributeTypeUsingUnits
extends Serializable

Provides access to methods dealing with graphic attribute types that are using to units. This interface is only used for UI purposes.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void formatForDisplay(int units, Object[] val)
          Formats a graphic attribute value according to a given unit before displaying it.
 void formatFromDisplay(int units, Object[] val)
          Converts a graphic attribute value coming from the UI to points.
 

Method Detail

formatForDisplay

void formatForDisplay(int units,
                      Object[] val)
                      throws IOException,
                             AutomationException
Formats a graphic attribute value according to a given unit before displaying it.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
units - A com.esri.arcgis.system.esriUnits constant (in)
val - A Variant (in/out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

formatFromDisplay

void formatFromDisplay(int units,
                       Object[] val)
                       throws IOException,
                              AutomationException
Converts a graphic attribute value coming from the UI to points.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
units - A com.esri.arcgis.system.esriUnits constant (in)
val - A Variant (in/out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.