com.esri.arcgis.system
Class AngularConverter

java.lang.Object
  extended by com.esri.arcgis.system.AngularConverter
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IAngularConverter, IAngularConverter2, Serializable

public class AngularConverter
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IAngularConverter, IAngularConverter2

Converts angle measurement from one unit to another.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
AngularConverter()
          Constructs a AngularConverter using ArcGIS Engine.
AngularConverter(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
AngularConverter theAngularConverter = (AngularConverter) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 double getAngle(int dt, int du)
          Reads the angle.
static String getClsid()
          getClsid.
 String getString(int dt, int du, int precision)
          Reads the angle.
 int hashCode()
          the hashcode for this object
 boolean isNegativeAngles()
          Allow an angle to be converted from one direction unit to another.
 boolean setAngle(double angle, int dt, int du)
          Writes an angle.
 void setNegativeAngles(boolean negAngles)
          Allow an angle to be converted from one direction unit to another.
 boolean setString(String angle, int dt, int du)
          Writes an angle.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

AngularConverter

public AngularConverter()
                 throws IOException,
                        UnknownHostException
Constructs a AngularConverter using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

AngularConverter

public AngularConverter(Object obj)
                 throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
AngularConverter theAngularConverter = (AngularConverter) obj;

Construct a AngularConverter using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to AngularConverter.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

setAngle

public boolean setAngle(double angle,
                        int dt,
                        int du)
                 throws IOException,
                        AutomationException
Writes an angle.

Product Availability

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

Specified by:
setAngle in interface IAngularConverter
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

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

Product Availability

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

Specified by:
getAngle in interface IAngularConverter
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

public boolean setString(String angle,
                         int dt,
                         int du)
                  throws IOException,
                         AutomationException
Writes an angle.

Product Availability

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

Specified by:
setString in interface IAngularConverter
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

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

Product Availability

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

Specified by:
getString in interface IAngularConverter
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.

setNegativeAngles

public void setNegativeAngles(boolean negAngles)
                       throws IOException,
                              AutomationException
Allow an angle to be converted from one direction unit to another.

Product Availability

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

Specified by:
setNegativeAngles in interface IAngularConverter2
Parameters:
negAngles - The negAngles (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isNegativeAngles

public boolean isNegativeAngles()
                         throws IOException,
                                AutomationException
Allow an angle to be converted from one direction unit to another.

Product Availability

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

Specified by:
isNegativeAngles in interface IAngularConverter2
Returns:
The negAngles
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.