com.esri.arcgis.editor
Class ITraverseWindowProxy

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

public class ITraverseWindowProxy
extends com.esri.arcgis.interop.Dispatch
implements ITraverseWindow, Serializable

Provides access to members that interact with the Traverse Window dialog.

Superseded By

ITraverseWindow2

Remarks

ITraverseWindow allows courses to be added to the existing traverse within the Traverse dialog. A current workspace must be being edited for the Traverse dialog to be enabled. Also the current edit layer must be either a Polyline or a Polygon.

The type of course being added to the traverse depends on the CourseType. The esriCTDirectionDistance and esriCTAngleDistance courses create line segments, the esriCTCurve and esriCTTangentCurve courses create circular arc segments. The courses are defined by text values within the MeasureText, CurveParameter, CurveDirectionType and TurnDirection properties.

When the course type is DirectionDistance, MeasureText(0) is the direction of the course and MeasureText(1) is the distance of the course. For a course type of AngleDistance, MeasureText(0) is the clockwise angle between the previous segment and the new segment and MeasureText(1) is the distance of the line segment. For both the TangentCurve and Curve course types, MeasureText(0) is a text value representing the appropriate curve parameter defined by CurveParameter(0) and MeasureText(1) is a text value representing the appropriate curve parameter defined by CurveParameter(1). Any two of the CurveParameters are required to create a circular arc including Chord Length, Arc Length, Delta Angle or Radius. The TurnDirection is also required to indicate if the curve turns to the left or right If the course type is Curve, a text value in MeasureText(2) and CurveDirectionType define the direction of the curve.

Once all of the parameters have been set for a course, IsAddEnabled will test if the values are correct. Add is used to create a new course. The StartPoint needs to be set before any courses can be added. An optional FinishPoint can exist for the traverse.

All Directions and Angles are in the current units specified within the Editor options. Distances are in the current data frame map units, however they can also be entered with an appropriate suffix that specifies the length units. Refer to the IDistanceConverter for more on the converting distances.

To interact with specific controls on the Traverse Window dialog, the MeasureSelected, MeasureHWND and SetFocusToMeasure methods are used.

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
  ITraverseWindowProxy()
           
  ITraverseWindowProxy(Object obj)
           
protected ITraverseWindowProxy(Object obj, String iid)
           
 
Method Summary
 void add()
          Add the course that is defined by the current course parameters.
 void addListener(String iidStr, Object theListener, Object theSource)
           
 ICourse getCourse(int index)
          A reference to the ith course.
 int getCourseCount()
          The number of courses in the traverse.
 int getCourseType()
          The type of the course being added.
 int getCurveDirectionType()
          If the course type is esriCTCurve, defines the direction type of the curve.
 int getCurveParameter(int index)
          If the course type is esriCTCurve or esriCTTangentCurve, describes the type of curve paramater that the ith measure text represents.
 IPoint getFinishPoint()
          The specified end point of the traverse.
 int getMeasureHWND(int index)
          The handle of the ith measure text control.
 String getMeasureText(int index)
          The ith value that defines the course to add.
 IPoint getStartPoint()
          The specified start point of the traverse.
 int getTurnDirection()
          If the course type is esriCTCurve or esriCTTangentCurve, indicates if the curve turns to the left or right.
 boolean isAddEnabled()
          Indicates if the Add command on the Traverse Window dialog is enabled.
 boolean isMeasureSelected(int index)
          Indicates if the text in the ith measure is selected.
 boolean isVisible()
          Indicates if Traverse Window is visible.
 void removeListener(String iidStr, Object theListener)
           
 void setCourseType(int type)
          The type of the course being added.
 void setCurveDirectionType(int direction)
          If the course type is esriCTCurve, defines the direction type of the curve.
 void setCurveParameter(int index, int curveParam)
          If the course type is esriCTCurve or esriCTTangentCurve, describes the type of curve paramater that the ith measure text represents.
 void setFocusToMeasure(int index)
          Change the focus to the ith measure text control.
 void setMeasureSelected(int index, boolean sel)
          Indicates if the text in the ith measure is selected.
 void setMeasureText(int index, String text)
          The ith value that defines the course to add.
 void setTurnDirection(int direction)
          If the course type is esriCTCurve or esriCTTangentCurve, indicates if the curve turns to the left or right.
 void setVisible(boolean vis)
          Indicates if Traverse Window is visible.
 
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

ITraverseWindowProxy

public ITraverseWindowProxy()

ITraverseWindowProxy

public ITraverseWindowProxy(Object obj)
                     throws IOException
Throws:
IOException

ITraverseWindowProxy

protected ITraverseWindowProxy(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

setVisible

public void setVisible(boolean vis)
                throws IOException,
                       AutomationException
Indicates if Traverse Window is visible.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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

isVisible

public boolean isVisible()
                  throws IOException,
                         AutomationException
Indicates if Traverse Window is visible.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
isVisible in interface ITraverseWindow
Returns:
The vis
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getStartPoint

public IPoint getStartPoint()
                     throws IOException,
                            AutomationException
The specified start point of the traverse.

Remarks

The starting coordinates of the traverse. The start point must be set before any courses can be added to the traverse with the Add method.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getStartPoint in interface ITraverseWindow
Returns:
A reference to a com.esri.arcgis.geometry.IPoint
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFinishPoint

public IPoint getFinishPoint()
                      throws IOException,
                             AutomationException
The specified end point of the traverse.

Remarks

An optional finish point for the traverse. The finish point is only used by the Closure command and Adjust command on the Traverse dialog.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getFinishPoint in interface ITraverseWindow
Returns:
A reference to a com.esri.arcgis.geometry.IPoint
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCourseCount

public int getCourseCount()
                   throws IOException,
                          AutomationException
The number of courses in the traverse.

Remarks

Returns the number of courses in the Course collection. The last course in the Course collection has an index equal to CourseCount - 1.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getCourseCount in interface ITraverseWindow
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCourse

public ICourse getCourse(int index)
                  throws IOException,
                         AutomationException
A reference to the ith course.

Product Availability

Available with ArcGIS Desktop.

Specified by:
getCourse in interface ITraverseWindow
Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.editor.ICourse
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCourseType

public int getCourseType()
                  throws IOException,
                         AutomationException
The type of the course being added.

Remarks

Specifies the type of course that will be added when the Add method is used. Changing the Type will also switch the controls that are visible on the Traverse dialog. The course is defined by the other methods on the ITraverseWindow interface. There are four course types;

esriCTDirectionDistance - Add a straight course defined by a direction and a distance.

esriCTAngleDistance - Add a straight course defined by an angle from the previous course and a distance.

esriCTCurve - Add a non-tangent curve course.

esriCTTangentCurve - Add a curve that is tangent to the previous course.

Notes: A start point must exist before the course can be added. If the course type is esriCTAngleDistance or esriCTTangentCurve, there must be at least one course in the traverse already.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getCourseType in interface ITraverseWindow
Returns:
A com.esri.arcgis.editor.esriCourseType constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCourseType

public void setCourseType(int type)
                   throws IOException,
                          AutomationException
The type of the course being added.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
setCourseType in interface ITraverseWindow
Parameters:
type - A com.esri.arcgis.editor.esriCourseType constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isMeasureSelected

public boolean isMeasureSelected(int index)
                          throws IOException,
                                 AutomationException
Indicates if the text in the ith measure is selected.

Product Availability

Available with ArcGIS Desktop.

Specified by:
isMeasureSelected in interface ITraverseWindow
Parameters:
index - The index (in)
Returns:
The sel
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMeasureSelected

public void setMeasureSelected(int index,
                               boolean sel)
                        throws IOException,
                               AutomationException
Indicates if the text in the ith measure is selected.

Product Availability

Available with ArcGIS Desktop.

Specified by:
setMeasureSelected in interface ITraverseWindow
Parameters:
index - The index (in)
sel - The sel (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMeasureText

public String getMeasureText(int index)
                      throws IOException,
                             AutomationException
The ith value that defines the course to add.

Product Availability

Available with ArcGIS Desktop.

Specified by:
getMeasureText in interface ITraverseWindow
Parameters:
index - The index (in)
Returns:
The text
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMeasureText

public void setMeasureText(int index,
                           String text)
                    throws IOException,
                           AutomationException
The ith value that defines the course to add.

Product Availability

Available with ArcGIS Desktop.

Specified by:
setMeasureText in interface ITraverseWindow
Parameters:
index - The index (in)
text - The text (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMeasureHWND

public int getMeasureHWND(int index)
                   throws IOException,
                          AutomationException
The handle of the ith measure text control.

Product Availability

Available with ArcGIS Desktop.

Specified by:
getMeasureHWND in interface ITraverseWindow
Parameters:
index - The index (in)
Returns:
The hWND (A COM typedef)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCurveParameter

public int getCurveParameter(int index)
                      throws IOException,
                             AutomationException
If the course type is esriCTCurve or esriCTTangentCurve, describes the type of curve paramater that the ith measure text represents.

Product Availability

Available with ArcGIS Desktop.

Specified by:
getCurveParameter in interface ITraverseWindow
Parameters:
index - The index (in)
Returns:
A com.esri.arcgis.editor.esriCurveParameter constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCurveParameter

public void setCurveParameter(int index,
                              int curveParam)
                       throws IOException,
                              AutomationException
If the course type is esriCTCurve or esriCTTangentCurve, describes the type of curve paramater that the ith measure text represents.

Product Availability

Available with ArcGIS Desktop.

Specified by:
setCurveParameter in interface ITraverseWindow
Parameters:
index - The index (in)
curveParam - A com.esri.arcgis.editor.esriCurveParameter constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTurnDirection

public int getTurnDirection()
                     throws IOException,
                            AutomationException
If the course type is esriCTCurve or esriCTTangentCurve, indicates if the curve turns to the left or right.

Remarks

The TurnDirection property defines which way a circular arc geometry turns, to the left or right. The property is only used when the course type is either esriCTCurve or esruCTTangentCurve

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getTurnDirection in interface ITraverseWindow
Returns:
A com.esri.arcgis.editor.esriTurnDirection constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTurnDirection

public void setTurnDirection(int direction)
                      throws IOException,
                             AutomationException
If the course type is esriCTCurve or esriCTTangentCurve, indicates if the curve turns to the left or right.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
setTurnDirection in interface ITraverseWindow
Parameters:
direction - A com.esri.arcgis.editor.esriTurnDirection constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCurveDirectionType

public int getCurveDirectionType()
                          throws IOException,
                                 AutomationException
If the course type is esriCTCurve, defines the direction type of the curve.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getCurveDirectionType in interface ITraverseWindow
Returns:
A com.esri.arcgis.editor.esriCurveDirectionType constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCurveDirectionType

public void setCurveDirectionType(int direction)
                           throws IOException,
                                  AutomationException
If the course type is esriCTCurve, defines the direction type of the curve.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
setCurveDirectionType in interface ITraverseWindow
Parameters:
direction - A com.esri.arcgis.editor.esriCurveDirectionType constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isAddEnabled

public boolean isAddEnabled()
                     throws IOException,
                            AutomationException
Indicates if the Add command on the Traverse Window dialog is enabled.

Remarks

The Add command on the Traverse Window dialog is enabled under the following conditions;

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
isAddEnabled in interface ITraverseWindow
Returns:
The enabled
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public void add()
         throws IOException,
                AutomationException
Add the course that is defined by the current course parameters.

Remarks

Adds a course to the end of the traverse desfined within the TraverseWindow. The course must be specified using the other methods on the ITraverseWindow interface.

The StartPoint needs to exist before any courses can be added.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
add in interface ITraverseWindow
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setFocusToMeasure

public void setFocusToMeasure(int index)
                       throws IOException,
                              AutomationException
Change the focus to the ith measure text control.

Remarks

Use the SetFocusToMeasure method in conjunction with the MeasureSelected property to select the text within a specific measure control on the Traverse dialog.

The index refers to the measure control to select text in.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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