|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.system.UnitConverter
public class UnitConverter
Helper CoClass to convert units.
The UnitCoverter Class provides methods for converting values between different units of measure, and converting units to strings.
Constructor Summary | |
---|---|
UnitConverter()
Constructs a UnitConverter using ArcGIS Engine. |
|
UnitConverter(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. UnitConverter theUnitConverter = (UnitConverter) obj; |
Method Summary | |
---|---|
double |
convertUnits(double dValue,
int inUnits,
int outUnits)
Convert ESRI units. |
boolean |
equals(Object o)
Compare this object with another |
String |
esriUnitsAsString(int units,
int appearance,
boolean bPlural)
Convert ESRI unit enumerations to strings. |
static String |
getClsid()
getClsid. |
int |
hashCode()
the hashcode for this object |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public UnitConverter() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic UnitConverter(Object obj) throws IOException
UnitConverter theUnitConverter = (UnitConverter) obj;
obj
to UnitConverter
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public 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.
convertUnits
in interface IUnitConverter
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.public 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.
esriUnitsAsString
in interface IUnitConverter
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 |