|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUnitConverter
Provides access to members used for converting units.
The IUnitConverter interface provides methods for converting values between different units of measure, and converting units to strings.
Method Summary | |
---|---|
double |
convertUnits(double dValue,
int inUnits,
int outUnits)
Convert Esri units. |
String |
esriUnitsAsString(int units,
int appearance,
boolean bPlural)
Convert Esri unit enumerations to strings. |
Method Detail |
---|
double convertUnits(double dValue, int inUnits, int outUnits) throws IOException, AutomationException
Converts the specified numeric data value from one unit of measure to another unit of measure.
dValue
- The dValue (in)inUnits
- A com.esri.arcgis.system.esriUnits constant (in)outUnits
- A com.esri.arcgis.system.esriUnits constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String esriUnitsAsString(int units, int appearance, boolean bPlural) throws IOException, AutomationException
Converts the specified units to a string. Specify the case (eg. lower or upper case) of the string and whether the string specifies a single unit or many unit(s).
The EsriUnitsAsString method is useful for providing text to the user interface.
units
- A com.esri.arcgis.system.esriUnits constant (in)appearance
- A com.esri.arcgis.system.esriCaseAppearance constant (in)bPlural
- The bPlural (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 |