|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.controls.ARUnitConverter
ARUnitConverter object.
| 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. |
IARUnitConverter |
getAsIARUnitConverter()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
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 |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ARUnitConverter(java.lang.Object obj)
throws java.io.IOException
obj to ARUnitConverter. *
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
ARUnitConverter theARUnitConverter = (ARUnitConverter) obj;
java.io.IOException - if there are interop problems| Method Detail |
public IARUnitConverter getAsIARUnitConverter()
public boolean equals(java.lang.Object o)
public int hashCode()
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
IARUnitConverter
getLocationAsString in interface IARUnitConverterpMap - 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)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.String esriUnitsAsString(int units,
int caseAppearance,
boolean bPlural)
throws java.io.IOException,
AutomationException
IARUnitConverter
esriUnitsAsString in interface IARUnitConverterunits - A com.esri.arcgis.controls.esriARUnits constant (in)caseAppearance - A com.esri.arcgis.controls.esriARCaseAppearance constant (in)bPlural - The bPlural (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double convertUnits(double dValue,
int inUnits,
int outUnits)
throws java.io.IOException,
AutomationException
IARUnitConverter
convertUnits in interface IARUnitConverterdValue - The dValue (in)inUnits - A com.esri.arcgis.controls.esriARUnits constant (in)outUnits - A com.esri.arcgis.controls.esriARUnits constant (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.String doubleAsString(double dValue,
int nDigits,
boolean bSeparators)
throws java.io.IOException,
AutomationException
IARUnitConverter
doubleAsString in interface IARUnitConverterdValue - The dValue (in)nDigits - The nDigits (in)bSeparators - The bSeparators (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
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
IARUnitConverter
getLongLatAsString in interface IARUnitConverterlongitude - 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)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String esriUnitsAsAbbreviatedString(int units,
int caseAppearance)
throws java.io.IOException,
AutomationException
IARUnitConverter
esriUnitsAsAbbreviatedString in interface IARUnitConverterunits - A com.esri.arcgis.controls.esriARUnits constant (in)caseAppearance - A com.esri.arcgis.controls.esriARCaseAppearance constant (in)
java.io.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 | |||||||||