com.esri.arcgis.system
Interface IAngularConverter

All Superinterfaces:
Serializable
All Known Implementing Classes:
AngularConverter

public interface IAngularConverter
extends Serializable

Provides access to methods that allow an angle to be converted from one direction unit to another.

Remarks

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.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 double getAngle(int dt, int du)
          Gets the angle.
 String getString(int dt, int du, int precision)
          Gets the angle.
 boolean setAngle(double angle, int dt, int du)
          Sets the angle.
 boolean setString(String angle, int dt, int du)
          Set the angle.
 

Method Detail

setAngle

boolean setAngle(double angle,
                 int dt,
                 int du)
                 throws IOException,
                        AutomationException
Sets the angle.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
angle - The angle (in)
dt - A com.esri.arcgis.system.esriDirectionType constant (in)
du - A com.esri.arcgis.system.esriDirectionUnits constant (in)
Returns:
The fail
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAngle

double getAngle(int dt,
                int du)
                throws IOException,
                       AutomationException
Gets the angle.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
dt - A com.esri.arcgis.system.esriDirectionType constant (in)
du - A com.esri.arcgis.system.esriDirectionUnits constant (in)
Returns:
The angle
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setString

boolean setString(String angle,
                  int dt,
                  int du)
                  throws IOException,
                         AutomationException
Set the angle.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
angle - The angle (in)
dt - A com.esri.arcgis.system.esriDirectionType constant (in)
du - A com.esri.arcgis.system.esriDirectionUnits constant (in)
Returns:
The bRet
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getString

String getString(int dt,
                 int du,
                 int precision)
                 throws IOException,
                        AutomationException
Gets the angle.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
dt - A com.esri.arcgis.system.esriDirectionType constant (in)
du - A com.esri.arcgis.system.esriDirectionUnits constant (in)
precision - The precision (in)
Returns:
The angle
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.