com.esri.arcgis.controls
Class ARUnitConverter

java.lang.Object
  extended by com.esri.arcgis.controls.ARUnitConverter
All Implemented Interfaces:
IARUnitConverter, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class ARUnitConverter
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IARUnitConverter

COM Class 'ARUnitConverter'. Generated 3/19/2015 1:20:50 PM from 'C:\ArcGIS\COM\esriPublisherControls.olb'

Description 'ARUnitConverter object.' 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 =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.controls.IARUnitConverter
DISPID_1_NAME, DISPID_2_NAME, DISPID_3_NAME, DISPID_4_NAME, DISPID_5_NAME, DISPID_6_NAME, IID, IID11a10d49_2e44_4204_b253_f63b9c18ba89, xxDummy
 
Constructor Summary
ARUnitConverter(java.lang.Object obj)
          Construct a ARUnitConverter using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 double convertUnits(double dValue, int inUnits, int outUnits)
          Converts the specified value between two units of measure.
 java.lang.String doubleAsString(double dValue, int nDigits, boolean bSeparators)
          Converts the specified value to a string rounded to a specified number of decimal places.
 boolean equals(java.lang.Object o)
          Compare this object with another
 java.lang.String esriUnitsAsAbbreviatedString(int units, int caseAppearance)
          Converts the specified units to a string abbreviation in upper or lower case.
 java.lang.String esriUnitsAsString(int units, int caseAppearance, boolean bPlural)
          Converts the specified units to strings in upper or lower case.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 void getLocationAsString(IARMap pMap, double xCoord, double yCoord, int displayUnits, java.lang.String[] sXLocation, java.lang.String[] sYLocation, java.lang.String[] sUnits)
          Converts the specified coordinates and units to strings.
 void getLongLatAsString(double longitude, double latitude, int displayUnits, java.lang.String[] sLongitude, java.lang.String[] sLatitude, java.lang.String[] sUnits)
          Converts the specified degree coordinates and units to strings.
 int hashCode()
          the hashcode for this object
 void release()
          Release a ARUnitConverter.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ARUnitConverter

public ARUnitConverter(java.lang.Object obj)
                throws java.io.IOException
Construct a ARUnitConverter using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to ARUnitConverter.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
ARUnitConverter o = (ARUnitConverter)obj; // will not work

ARUnitConverter o = new ARUnitConverter(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
java.io.IOException - if there are interop problems ARUnitConverter theARUnitConverter = (ARUnitConverter) obj;
Method Detail

equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a ARUnitConverter.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getLocationAsString

public void getLocationAsString(IARMap pMap,
                                double xCoord,
                                double yCoord,
                                int displayUnits,
                                java.lang.String[] sXLocation,
                                java.lang.String[] sYLocation,
                                java.lang.String[] sUnits)
                         throws java.io.IOException,
                                AutomationException
Converts the specified coordinates and units to strings.

Specified by:
getLocationAsString in interface IARUnitConverter
Parameters:
pMap - A reference to a com.esri.arcgis.controls.IARMap (in)
xCoord - The xCoord (in)
yCoord - The yCoord (in)
displayUnits - A com.esri.arcgis.controls.esriARUnits constant (in)
sXLocation - The sXLocation (in/out: use single element array)
sYLocation - The sYLocation (in/out: use single element array)
sUnits - The sUnits (in/out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

esriUnitsAsString

public java.lang.String esriUnitsAsString(int units,
                                          int caseAppearance,
                                          boolean bPlural)
                                   throws java.io.IOException,
                                          AutomationException
Converts the specified units to strings in upper or lower case.

Specified by:
esriUnitsAsString in interface IARUnitConverter
Parameters:
units - A com.esri.arcgis.controls.esriARUnits constant (in)
caseAppearance - A com.esri.arcgis.controls.esriARCaseAppearance constant (in)
bPlural - The bPlural (in)
Returns:
The sUnitString
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

convertUnits

public double convertUnits(double dValue,
                           int inUnits,
                           int outUnits)
                    throws java.io.IOException,
                           AutomationException
Converts the specified value between two units of measure.

Specified by:
convertUnits in interface IARUnitConverter
Parameters:
dValue - The dValue (in)
inUnits - A com.esri.arcgis.controls.esriARUnits constant (in)
outUnits - A com.esri.arcgis.controls.esriARUnits constant (in)
Returns:
The outValue
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

doubleAsString

public java.lang.String doubleAsString(double dValue,
                                       int nDigits,
                                       boolean bSeparators)
                                throws java.io.IOException,
                                       AutomationException
Converts the specified value to a string rounded to a specified number of decimal places.

Specified by:
doubleAsString in interface IARUnitConverter
Parameters:
dValue - The dValue (in)
nDigits - The nDigits (in)
bSeparators - The bSeparators (in)
Returns:
The sValueString
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLongLatAsString

public void getLongLatAsString(double longitude,
                               double latitude,
                               int displayUnits,
                               java.lang.String[] sLongitude,
                               java.lang.String[] sLatitude,
                               java.lang.String[] sUnits)
                        throws java.io.IOException,
                               AutomationException
Converts the specified degree coordinates and units to strings.

Specified by:
getLongLatAsString in interface IARUnitConverter
Parameters:
longitude - The longitude (in)
latitude - The latitude (in)
displayUnits - A com.esri.arcgis.controls.esriARUnits constant (in)
sLongitude - The sLongitude (in/out: use single element array)
sLatitude - The sLatitude (in/out: use single element array)
sUnits - The sUnits (in/out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

esriUnitsAsAbbreviatedString

public java.lang.String esriUnitsAsAbbreviatedString(int units,
                                                     int caseAppearance)
                                              throws java.io.IOException,
                                                     AutomationException
Converts the specified units to a string abbreviation in upper or lower case.

Specified by:
esriUnitsAsAbbreviatedString in interface IARUnitConverter
Parameters:
units - A com.esri.arcgis.controls.esriARUnits constant (in)
caseAppearance - A com.esri.arcgis.controls.esriARCaseAppearance constant (in)
Returns:
The sUnitString
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.