com.esri.arcgis.editor
Class ITraverseAdjustmentProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.editor.ITraverseAdjustmentProxy
All Implemented Interfaces:
ITraverseAdjustment, Externalizable, Serializable

public class ITraverseAdjustmentProxy
extends com.esri.arcgis.interop.Dispatch
implements ITraverseAdjustment, Serializable

Provides access to members that perform adjustment computations.

Remarks

ITraverseAdjustment allows a misclose to be caclulated between the endpoint of a polyline and the desired endpoint. The misclose can be distributed amongst the segments of the polyline using various adjustment techniques. Use the CalculateClosure method to check how close the endpoint is from your desired endpoint. If the closure is too great, you can use the CalculateAdjustment method to create a new adjusted polyline.

Product Availability

Available with ArcGIS Desktop.

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  ITraverseAdjustmentProxy()
           
  ITraverseAdjustmentProxy(Object obj)
           
protected ITraverseAdjustmentProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 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 .
 void removeListener(String iidStr, Object theListener)
           
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

ITraverseAdjustmentProxy

public ITraverseAdjustmentProxy()

ITraverseAdjustmentProxy

public ITraverseAdjustmentProxy(Object obj)
                         throws IOException
Throws:
IOException

ITraverseAdjustmentProxy

protected ITraverseAdjustmentProxy(Object obj,
                                   String iid)
                            throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

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.