|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IAngularConverter
Provides access to methods that allow an angle to be converted from one direction unit to another.
Use either the SetAngle method or SetString method to input a direction. These methods return a boolean which can be used to check if the input direction is valid. Use either the GetAngle or GetString method to retrieve the new direction. Each of these methods requires a direction type esriDirectionType and direction units esriDirectionUnits.
| Method Summary | |
|---|---|
double |
getAngle(int dt,
int du)
Reads the angle. |
String |
getString(int dt,
int du,
int precision)
Reads the angle. |
boolean |
setAngle(double angle,
int dt,
int du)
Writes an angle. |
boolean |
setString(String angle,
int dt,
int du)
Writes an angle. |
| Method Detail |
|---|
boolean setAngle(double angle,
int dt,
int du)
throws IOException,
AutomationException
angle - The angle (in)dt - A com.esri.arcgis.system.esriDirectionType constant (in)du - A com.esri.arcgis.system.esriDirectionUnits constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
double getAngle(int dt,
int du)
throws IOException,
AutomationException
dt - A com.esri.arcgis.system.esriDirectionType constant (in)du - A com.esri.arcgis.system.esriDirectionUnits constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean setString(String angle,
int dt,
int du)
throws IOException,
AutomationException
angle - The angle (in)dt - A com.esri.arcgis.system.esriDirectionType constant (in)du - A com.esri.arcgis.system.esriDirectionUnits constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getString(int dt,
int du,
int precision)
throws IOException,
AutomationException
dt - A com.esri.arcgis.system.esriDirectionType constant (in)du - A com.esri.arcgis.system.esriDirectionUnits constant (in)precision - The precision (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 | ||||||||