com.esri.arcgis.editor
Class TraverseAdjustment

java.lang.Object
  extended by com.esri.arcgis.editor.TraverseAdjustment
All Implemented Interfaces:
ITraverseAdjustment, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class TraverseAdjustment
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ITraverseAdjustment

Performs Traverse Adjustment Calculations.

Remarks

The TraverseAdjustment is used to adjust a polyline to eliminate misclosure between the endpoint of the geometry and a desired endpoint.

Product Availability

Available with ArcGIS Desktop.

See Also:
Serialized Form

Constructor Summary
TraverseAdjustment()
          Constructs a TraverseAdjustment using ArcGIS Engine.
TraverseAdjustment(Object obj)
          Construct a TraverseAdjustment using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 IPolyline calculateAdjustment(IPolyline polyline, IPoint pEnd, int adjustmentType)
          Performs the specified adjustment computation on the geometry.
 ITraverseClosure calculateClosure(IPolyline polyline, IPoint pEnd)
          Caculates the closure for the .
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 
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

TraverseAdjustment

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

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

TraverseAdjustment

public TraverseAdjustment(Object obj)
                   throws IOException
Construct a TraverseAdjustment using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to TraverseAdjustment.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems TraverseAdjustment theTraverseAdjustment = (TraverseAdjustment) obj;
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

calculateAdjustment

public IPolyline calculateAdjustment(IPolyline polyline,
                                     IPoint pEnd,
                                     int adjustmentType)
                              throws IOException,
                                     AutomationException
Performs the specified adjustment computation on the geometry.

Remarks

The CalculateAdjustment method is used by the Traverse Window and COGO Area commands in the Editor to adjust for the differences in a polyline between the actual endpoint and a desired endpoint.

Product Availability

Available with ArcGIS Desktop.

Specified by:
calculateAdjustment in interface ITraverseAdjustment
Parameters:
polyline - A reference to a com.esri.arcgis.geometry.IPolyline (in)
pEnd - A reference to a com.esri.arcgis.geometry.IPoint (in)
adjustmentType - A com.esri.arcgis.editor.esriAdjustmentType constant (in)
Returns:
A reference to a com.esri.arcgis.geometry.IPolyline
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

calculateClosure

public ITraverseClosure calculateClosure(IPolyline polyline,
                                         IPoint pEnd)
                                  throws IOException,
                                         AutomationException
Caculates the closure for the .

Remarks

The CalculateClosure method is used by the Traverse Window in the Editor to report the differences in a polyline between the actual endpoint and a desired endpoint. The closure report is returned as an ITraverseClosure.

Product Availability

Available with ArcGIS Desktop.

Specified by:
calculateClosure in interface ITraverseAdjustment
Parameters:
polyline - A reference to a com.esri.arcgis.geometry.IPolyline (in)
pEnd - A reference to a com.esri.arcgis.geometry.IPoint (in)
Returns:
A reference to a com.esri.arcgis.editor.ITraverseClosure
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.