public class UnitConverter extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IUnitConverter
Description 'Helper CoClass to convert units.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
IID, IID1f3fbca9_6611_4567_88e4_e0fa8b6fb26d, xxDummy
Constructor and Description |
---|
UnitConverter()
Constructs a UnitConverter using ArcGIS Engine.
|
UnitConverter(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
UnitConverter theUnitConverter = (UnitConverter) obj; |
Modifier and Type | Method and Description |
---|---|
double |
convertUnits(double dValue,
int inUnits,
int outUnits)
Convert Esri units.
|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
java.lang.String |
esriUnitsAsString(int units,
int appearance,
boolean bPlural)
Convert Esri unit enumerations to strings.
|
static java.lang.String |
getClsid()
getClsid.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
int |
hashCode()
the hashcode for this object
|
void |
release()
Release this COM object reference
|
public UnitConverter() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problemsjava.net.UnknownHostException
- if there are interop problemspublic UnitConverter(java.lang.Object obj) throws java.io.IOException
UnitConverter theUnitConverter = (UnitConverter) obj;
obj
to UnitConverter
.obj
- an object returned from ArcGIS Engine or Serverjava.io.IOException
- if there are interop problemspublic static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public double convertUnits(double dValue, int inUnits, int outUnits) throws java.io.IOException, AutomationException
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)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.String esriUnitsAsString(int units, int appearance, boolean bPlural) throws java.io.IOException, AutomationException
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)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.