com.esri.arcgis.geometry
Interface ILine2

All Superinterfaces:
ICurve, IGeometry, ILine, java.io.Serializable
All Known Implementing Classes:
ILine2Proxy, Line

public interface ILine2
extends ILine, java.io.Serializable

Provides access to the coordinates of a line segment in the form of Well Known Structures (WKS).

Product Availability

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

Supported Platforms

Windows, Solaris, Linux


Method Summary
 void putWKSCoords(_WKSPoint from, _WKSPoint to)
          From and To become the new endpoints of this line.
 void queryWKSCoords(_WKSPoint[] from, _WKSPoint[] to)
          Returns the (x,y) coordinates of this line's endpoints.
 
Methods inherited from interface com.esri.arcgis.geometry.ILine
getAngle, putCoords, queryCoords
 
Methods inherited from interface com.esri.arcgis.geometry.ICurve
getFromPoint, getLength, getSubcurve, getToPoint, isClosed, queryFromPoint, queryNormal, queryPoint, queryPointAndDistance, queryTangent, queryToPoint, reverseOrientation, setFromPoint, setToPoint
 
Methods inherited from interface com.esri.arcgis.geometry.IGeometry
geoNormalize, geoNormalizeFromLongitude, getDimension, getEnvelope, getGeometryType, getSpatialReference, isEmpty, project, queryEnvelope, setEmpty, setSpatialReferenceByRef, snapToSpatialReference
 

Method Detail

putWKSCoords

public void putWKSCoords(_WKSPoint from,
                         _WKSPoint to)
                  throws java.io.IOException,
                         AutomationException
From and To become the new endpoints of this line. Any existing attributes are deleted.

Supported Platforms

Windows, Solaris, Linux

Remarks

The from and to parameters are WKSPoint structures instead of Point objects. If you are not interested in using or preserving vertex attributes then PutWKSCoords and QueryWKSCoords can be a quicker way to modify and obtain the xy coordinates defining the line.

Parameters:
from - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (in)
to - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryWKSCoords

public void queryWKSCoords(_WKSPoint[] from,
                           _WKSPoint[] to)
                    throws java.io.IOException,
                           AutomationException
Returns the (x,y) coordinates of this line's endpoints.

Supported Platforms

Windows, Solaris, Linux

Remarks

The from and to parameters are WKSPoint structures instead of Point objects. If you are not interested in using or preserving vertex attributes then PutWKSCoords and QueryWKSCoords can be a quicker way to modify and obtain the xy coordinates defining the line.

Parameters:
from - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (out: use single element array)
to - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.