com.esri.arcgis.controls
Class IARUnitConverterProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.controls.IARUnitConverterProxy
All Implemented Interfaces:
IARUnitConverter, Externalizable, Serializable

public class IARUnitConverterProxy
extends com.esri.arcgis.interop.Dispatch
implements IARUnitConverter, Serializable

Provides access to members that control the ARUnitConverter.

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, E
 
Constructor Summary
  IARUnitConverterProxy()
           
  IARUnitConverterProxy(Object obj)
           
protected IARUnitConverterProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 double convertUnits(double dValue, int inUnits, int outUnits)
          Converts the specified value between two units of measure.
 String doubleAsString(double dValue, int nDigits, boolean bSeparators)
          Converts the specified value to a string rounded to a specified number of decimal places.
 String esriUnitsAsAbbreviatedString(int units, int caseAppearance)
          Converts the specified units to a string abbreviation in upper or lower case.
 String esriUnitsAsString(int units, int caseAppearance, boolean bPlural)
          Converts the specified units to strings in upper or lower case.
 void getLocationAsString(IARMap pMap, double xCoord, double yCoord, int displayUnits, String[] sXLocation, String[] sYLocation, String[] sUnits)
          Converts the specified coordinates and units to strings.
 void getLongLatAsString(double longitude, double latitude, int displayUnits, String[] sLongitude, String[] sLatitude, String[] sUnits)
          Converts the specified degree coordinates and units to strings.
 void readExternal(ObjectInput in)
           
 void removeListener(String iidStr, Object theListener)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, queryInterface, release, setNativeMode, setPropertyByName, toString, vtblInvoke
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IARUnitConverterProxy

public IARUnitConverterProxy()

IARUnitConverterProxy

public IARUnitConverterProxy(Object obj)
                      throws IOException
Throws:
IOException

IARUnitConverterProxy

protected IARUnitConverterProxy(Object obj,
                                String iid)
                         throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

getLocationAsString

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

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

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:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

esriUnitsAsString

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

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

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:
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 IOException,
                           AutomationException
Converts the specified value between two units of measure.

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

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:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

doubleAsString

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

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

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

getLongLatAsString

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

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

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:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

esriUnitsAsAbbreviatedString

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

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

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:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class com.esri.arcgis.interop.Dispatch
Throws:
IOException
ClassNotFoundException