com.esri.arcgis.geometry
Class SegmentGraph

java.lang.Object
  extended by com.esri.arcgis.geometry.SegmentGraph
All Implemented Interfaces:
ISegmentGraph, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class SegmentGraph
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ISegmentGraph

A topologically structured collection of segments.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
SegmentGraph()
          Constructs a SegmentGraph using ArcGIS Engine.
SegmentGraph(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
SegmentGraph theSegmentGraph = (SegmentGraph) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 ISegmentGraphCursor getCursor(IPoint p)
          Returns a SegmentGraphCursor initially located at the segment closest to the specified point.
 IEnvelope getEnvelope()
          The Envelope of the SegmentGraph.
 int hashCode()
          the hashcode for this object
 void load(IEnumGeometry geometries, boolean generateFaces, boolean takeOwnership)
          Defines a SegmentGraph from an enumeration of polylines or polygons.
 void setEmpty()
          Sets the SegmentGraph to the empty state.
 
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

SegmentGraph

public SegmentGraph()
             throws IOException,
                    UnknownHostException
Constructs a SegmentGraph using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

SegmentGraph

public SegmentGraph(Object obj)
             throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
SegmentGraph theSegmentGraph = (SegmentGraph) obj;

Construct a SegmentGraph using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to SegmentGraph.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

getCursor

public ISegmentGraphCursor getCursor(IPoint p)
                              throws IOException,
                                     AutomationException
Returns a SegmentGraphCursor initially located at the segment closest to the specified point.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getCursor in interface ISegmentGraph
Parameters:
p - A reference to a com.esri.arcgis.geometry.IPoint (in)
Returns:
A reference to a com.esri.arcgis.geometry.ISegmentGraphCursor
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

load

public void load(IEnumGeometry geometries,
                 boolean generateFaces,
                 boolean takeOwnership)
          throws IOException,
                 AutomationException
Defines a SegmentGraph from an enumeration of polylines or polygons.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
load in interface ISegmentGraph
Parameters:
geometries - A reference to a com.esri.arcgis.geometry.IEnumGeometry (in)
generateFaces - The generateFaces (in)
takeOwnership - The takeOwnership (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setEmpty

public void setEmpty()
              throws IOException,
                     AutomationException
Sets the SegmentGraph to the empty state.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

getEnvelope

public IEnvelope getEnvelope()
                      throws IOException,
                             AutomationException
The Envelope of the SegmentGraph.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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