|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.editor.Course
public class Course
Creates line segments defined by COGO descriptions.
Constructor Summary | |
---|---|
Course()
Constructs a Course using ArcGIS Engine. |
|
Course(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. Course theCourse = (Course) obj; |
Method Summary | |
---|---|
ISegment |
addSegment(IGeometry geom,
double distanceFactor,
double angularOffset)
Adds a reference for the course to the input geometry. |
boolean |
equals(Object o)
Compare this object with another |
ICourse |
esri_clone()
Clones the course and adds the result to *clone. |
static String |
getClsid()
getClsid. |
int |
getCurveDirectionType()
If the course type is esriCTCurve, defines the curve direction type of the third value. |
int |
getCurveParameter1()
If the course type is esriCTTangentCurve or esriCTCurve, defines the curve parameter of the first value. |
int |
getCurveParameter2()
If the course type is esriCTTangentCurve or esriCTCurve, defines the curve parameter of the second value. |
String |
getDescription(IEditor editor)
Description of the course. |
double |
getMeasure1()
The first value that defines the course. |
double |
getMeasure2()
The second value that defines the course. |
double |
getMeasure3()
Optionally, the direction of the curve if the course type is esriCTCurve. |
int |
getTurnDirection()
Indicates if curve turns to the left or right. |
int |
getType()
The type of course. |
int |
hashCode()
the hashcode for this object |
void |
setCurveDirectionType(int cdt)
If the course type is esriCTCurve, defines the curve direction type of the third value. |
void |
setCurveParameter1(int cp)
If the course type is esriCTTangentCurve or esriCTCurve, defines the curve parameter of the first value. |
void |
setCurveParameter2(int cp)
If the course type is esriCTTangentCurve or esriCTCurve, defines the curve parameter of the second value. |
void |
setMeasure1(double measure)
The first value that defines the course. |
void |
setMeasure2(double measure)
The second value that defines the course. |
void |
setMeasure3(double measure)
Optionally, the direction of the curve if the course type is esriCTCurve. |
void |
setTurnDirection(int td)
Indicates if curve turns to the left or right. |
void |
setType(int type)
The type of course. |
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 |
---|
public Course() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic Course(Object obj) throws IOException
Course theCourse = (Course) obj;
obj
to Course
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int getType() throws IOException, AutomationException
Specifies the type of course that will be added when the AddSegment method is used. The course is defined by the other methods on the ICourse 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. Any of the following parameters can be used to define the curve; Radius, Arc, Angle or Curve. The TurnDirection specifies that the course will be curving to the left or to the right. The direction of the curve can be specified as a tangent, a radial toward the center point or a chord direction.
esriCTTangentCurve - Add a curve that is tangent to the previous course. Use the same parameters as the esriCTCurve to define the curve.
getType
in interface ICourse
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setType(int type) throws IOException, AutomationException
setType
in interface ICourse
type
- A com.esri.arcgis.editor.esriCourseType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMeasure1() throws IOException, AutomationException
The Measure1 value is a direction, angle or a distance used to define a course segment.
When the Course Type is | and CurveParameter1 is | then Measure1 is |
---|---|---|
esriCTDirectionDistance | Direction | |
esriCTAngleDistance | Angle | |
esriCTTangentCurve | esriCPChord | Distance |
esriCTTangentCurve | esriCPArc | Distance |
esriCTTangentCurve | esriCPRadius | Distance |
esriCTTangentCurve | esriCPAngle | Angle |
esriCTCurve | esriCPChord | Distance |
esriCTCurve | esriCPArc | Distance |
esriCTCurve | esriCPRadius | Distance |
esriCTCurve | esriCPAngle | Angle |
getMeasure1
in interface ICourse
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMeasure1(double measure) throws IOException, AutomationException
setMeasure1
in interface ICourse
measure
- The measure (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMeasure2() throws IOException, AutomationException
The Measure2 value is either a distance or an angle used to define a course segment.
When the Course Type is | and CurveParameter2 is | then Measure2 is |
---|---|---|
esriCTDirectionDistance | Distance | |
esriCTAngleDistance | Distance | |
esriCTTangentCurve | esriCPChord | Distance |
esriCTTangentCurve | esriCPArc | Distance |
esriCTTangentCurve | esriCPRadius | Distance |
esriCTTangentCurve | esriCPAngle | Angle |
esriCTCurve | esriCPChord | Distance |
esriCTCurve | esriCPArc | Distance |
esriCTCurve | esriCPRadius | Distance |
esriCTCurve | esriCPAngle | Angle |
A distance is specified in the linear units of the map. An angle is specified in radians.
getMeasure2
in interface ICourse
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMeasure2(double measure) throws IOException, AutomationException
setMeasure2
in interface ICourse
measure
- The measure (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMeasure3() throws IOException, AutomationException
The Measure3 value is a direction used to define a course segment. The Measure3 value is only used when the course type is esriCTCurve.
The value is specified in radians. The type of direction is specified in the CurveDirectionType property.
getMeasure3
in interface ICourse
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMeasure3(double measure) throws IOException, AutomationException
setMeasure3
in interface ICourse
measure
- The measure (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCurveParameter1() throws IOException, AutomationException
The CurveParameter1 property defines what the curve parameter in Measure1 value represents. The CurveParameter1 is only used when the course type is either esriCTCurve or esriCTTangentCurve.
getCurveParameter1
in interface ICourse
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCurveParameter1(int cp) throws IOException, AutomationException
setCurveParameter1
in interface ICourse
cp
- A com.esri.arcgis.editor.esriCurveParameter constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCurveParameter2() throws IOException, AutomationException
The CurveParameter2 property defines what the curve parameter in Measure2 value represents. The CurveParameter2 is only used when the course type is either esriCTCurve or esriCTTangentCurve.
getCurveParameter2
in interface ICourse
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCurveParameter2(int cp) throws IOException, AutomationException
setCurveParameter2
in interface ICourse
cp
- A com.esri.arcgis.editor.esriCurveParameter constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTurnDirection() throws IOException, AutomationException
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 .
getTurnDirection
in interface ICourse
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTurnDirection(int td) throws IOException, AutomationException
setTurnDirection
in interface ICourse
td
- A com.esri.arcgis.editor.esriTurnDirection constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCurveDirectionType() throws IOException, AutomationException
If the course being added is of type esriCTCurve, the direction of the geometry segment is specified with this property. The direction is defined in the Measure3 property.
getCurveDirectionType
in interface ICourse
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCurveDirectionType(int cdt) throws IOException, AutomationException
setCurveDirectionType
in interface ICourse
cdt
- A com.esri.arcgis.editor.esriCurveDirectionType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISegment addSegment(IGeometry geom, double distanceFactor, double angularOffset) throws IOException, AutomationException
Adds a geometry segment to the input geom object. If the variable is specified, a geometry segment is returned. The geometry segment must be specified using the other methods on the ICourse interface.
The geom is a 'higher level' geometry such as a Polyline or a Polygon.
The distanceFactor is a scale factor that is multiplied to any of the distances used to define the course segment. Use a value of 1 to not change the input distances.
The angularOffset is an correction that is added to any directions used to define the course segment. The value is specified in radians. Use a value of 0 to not change the input directions.
Note: If the Type is esriCTAngleDistance or esriCTTangentCurve, there must be at least one segment in the input geometry.
addSegment
in interface ICourse
geom
- A reference to a com.esri.arcgis.geometry.IGeometry (in)distanceFactor
- The distanceFactor (in)angularOffset
- The angularOffset (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ICourse esri_clone() throws IOException, AutomationException
esri_clone
in interface ICourse
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDescription(IEditor editor) throws IOException, AutomationException
Returns a description of the course. The description includes the course type and the course parameters.
getDescription
in interface ICourse
editor
- A reference to a com.esri.arcgis.editor.IEditor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |