com.esri.arcgis.geometry
Class IPolylineProxy

java.lang.Object
  extended bycom.esri.arcgis.interop.Dispatch
      extended bycom.esri.arcgis.geometry.IGeometryProxy
          extended bycom.esri.arcgis.geometry.ICurveProxy
              extended bycom.esri.arcgis.geometry.IPolycurveProxy
                  extended bycom.esri.arcgis.geometry.IPolylineProxy
All Implemented Interfaces:
java.io.Externalizable, ICurve, IGeometry, IPolycurve, IPolyline, java.io.Serializable
Direct Known Subclasses:
IPolyline2Proxy

public class IPolylineProxy
extends IPolycurveProxy
implements IPolyline, java.io.Serializable

Provides access to members that identify and add behavior to a polyline object.

Product Availability

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

See Also:
Serialized Form

Field Summary
static java.lang.Class targetClass
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF
 
Constructor Summary
  IPolylineProxy()
          For internal use only
  IPolylineProxy(java.lang.Object obj)
           
protected IPolylineProxy(java.lang.Object obj, java.lang.String iid)
           
  IPolylineProxy(java.lang.String CLSID, java.lang.String host, AuthInfo authInfo)
           
protected IPolylineProxy(java.lang.String CLSID, java.lang.String iid, java.lang.String host, AuthInfo authInfo)
           
 
Method Summary
 void addListener(java.lang.String iidStr, java.lang.Object theListener, java.lang.Object theSource)
          Adds a Java object to be a listener for a specific kind of event generated by the COM object.
 void removeListener(java.lang.String iidStr, java.lang.Object theListener)
          Removes a Java object as a listener to events generated by a COM object.
 boolean reshape(IPath reshapeSource)
          Modifies this polyline by replacing some of its segments with some segments from reshapeSource.
 void simplifyNetwork()
          Performs a simplification that preserves network properties and creates a consistent network geometry.
 
Methods inherited from class com.esri.arcgis.geometry.IPolycurveProxy
densify, generalize, smooth, splitAtDistance, splitAtPoint, weed
 
Methods inherited from class com.esri.arcgis.geometry.ICurveProxy
getFromPoint, getLength, getSubcurve, getToPoint, isClosed, queryFromPoint, queryNormal, queryPoint, queryPointAndDistance, queryTangent, queryToPoint, reverseOrientation, setFromPoint, setToPoint
 
Methods inherited from class com.esri.arcgis.geometry.IGeometryProxy
geoNormalize, geoNormalizeFromLongitude, getDimension, getEnvelope, getGeometryType, getSpatialReference, isEmpty, project, queryEnvelope, setEmpty, setSpatialReferenceByRef, snapToSpatialReference
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, hashCode, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, queryInterface, readExternal, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.geometry.IPolycurve
densify, generalize, smooth, splitAtDistance, splitAtPoint, weed
 
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
 

Field Detail

targetClass

public static final java.lang.Class targetClass
Constructor Detail

IPolylineProxy

public IPolylineProxy(java.lang.String CLSID,
                      java.lang.String host,
                      AuthInfo authInfo)
               throws java.net.UnknownHostException,
                      java.io.IOException

IPolylineProxy

public IPolylineProxy()
For internal use only


IPolylineProxy

public IPolylineProxy(java.lang.Object obj)
               throws java.io.IOException

IPolylineProxy

protected IPolylineProxy(java.lang.Object obj,
                         java.lang.String iid)
                  throws java.io.IOException

IPolylineProxy

protected IPolylineProxy(java.lang.String CLSID,
                         java.lang.String iid,
                         java.lang.String host,
                         AuthInfo authInfo)
                  throws java.io.IOException
Method Detail

addListener

public void addListener(java.lang.String iidStr,
                        java.lang.Object theListener,
                        java.lang.Object theSource)
                 throws java.io.IOException
Description copied from class: Dispatch
Adds a Java object to be a listener for a specific kind of event generated by the COM object. when you wish to invoke method on the COM object using IDispatch (not using custom marshalling).

Overrides:
addListener in class IPolycurveProxy
Throws:
java.io.IOException

removeListener

public void removeListener(java.lang.String iidStr,
                           java.lang.Object theListener)
                    throws java.io.IOException
Description copied from class: Dispatch
Removes a Java object as a listener to events generated by a COM object. when you wish to invoke method on the COM object using IDispatch (not using custom marshalling).

Overrides:
removeListener in class IPolycurveProxy
Throws:
java.io.IOException

reshape

public boolean reshape(IPath reshapeSource)
                throws java.io.IOException,
                       AutomationException
Description copied from interface: IPolyline
Modifies this polyline by replacing some of its segments with some segments from reshapeSource.

Supported Platforms

Windows, Solaris, Linux

Description

Reshape replaces the Segments in the Polyline between consecutive Intersections with the input Path segments that connect those intersections.  Reshape returns a boolean indicating whether or not a modification to the Polyline occurred.

Remarks

Note: For multipart (more than one path) polyline output part ordering may not be preserved. The orientation of vertices within parts is preserved.

Specified by:
reshape in interface IPolyline
Parameters:
reshapeSource - A reference to a com.esri.arcgis.geometry.IPath (in)
Returns:
The didReshape
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

simplifyNetwork

public void simplifyNetwork()
                     throws java.io.IOException,
                            AutomationException
Description copied from interface: IPolyline
Performs a simplification that preserves network properties and creates a consistent network geometry.

Supported Platforms

Windows, Solaris, Linux

Description

Performs a partial simplification of the Polyline to ensure necessary consistency for a valid Network but not true topological simplicity.  SimplifyNetwork performs the following alterations to the base Polyline:

1) Deletes empty and zero length segments.
2) Removes empty parts.
3) Makes segment orientation mutually consistent.  Ensures that the following FromPoints and preceding ToPoints of connected segments are equal.
4) Creates new parts for discontiguous segments or segments with different attributes.
5) Merge parts where exactly two parts share an endpoint.
6) For a pair of segments in a part that share an endpoint such that one segment has NaN attributes and the other has non-NaN attributes, assign the non-NaN attributes of one to the corresponding NaN slots of the other.

Remarks

It is possbile for network features to have an inconsistent geometry requiring simplification, for example, a network edge can be a multipart feature whose parts share an endpoint.  To correct the feature's geometry, set IsKnownSimple to False and call SimplifyNetwork on the feature to correct the inconsistency.

Specified by:
simplifyNetwork in interface IPolyline
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.