com.esri.core.geometry
Class Polyline

java.lang.Object
  extended by com.esri.core.geometry.Geometry
      extended by com.esri.core.geometry.MultiPath
          extended by com.esri.core.geometry.Polyline
All Implemented Interfaces:
Serializable

public final class Polyline
extends MultiPath
implements Serializable

A polyline is a collection of one or many paths.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.esri.core.geometry.Geometry
Geometry.Type
 
Constructor Summary
Polyline()
          Creates an empty polyline.
 
Method Summary
 void addSegment(Segment segment, boolean bStartNewPath)
          Adds a new segment to this multipath.
 Geometry createInstance()
          Creates an instance of an empty geometry of the same type.
 boolean equals(Object other)
          Returns TRUE when this geometry has exactly same type, properties, and coordinates as the other geometry.
 int getDimension()
          Returns the topological dimension of the geometry object based on the geometry's type.
 void getPoint(int arg0, Point arg1)
           
 Geometry.Type getType()
          Returns the geometry type.
 int hashCode()
          Returns the hash code for the polyline.
 
Methods inherited from class com.esri.core.geometry.MultiPath
add, addEnvelope, addPath, applyTransformation, calculateArea2D, calculateLength2D, closeAllPaths, closePathWithLine, copyTo, getPathCount, getPathEnd, getPathIndexFromPointIndex, getPathSize, getPathStart, getPoint, getPointCount, getSegmentCount, getSegmentCount, getStateFlag, insertPath, insertPoint, insertPoints, isClosedPath, isEmpty, lineTo, lineTo, queryEnvelope, querySegmentIterator, querySegmentIteratorAtVertex, removePath, removePoint, reverseAllPaths, reversePath, setEmpty, setPoint, startPath, startPath
 
Methods inherited from class com.esri.core.geometry.Geometry
copy, getDimensionFromType, isArea, isLinear, isMultiPath, isMultiVertex, isPoint, isSegment
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Polyline

public Polyline()
Creates an empty polyline.

Method Detail

createInstance

public Geometry createInstance()
Description copied from class: Geometry
Creates an instance of an empty geometry of the same type.


getDimension

public int getDimension()
Description copied from class: Geometry
Returns the topological dimension of the geometry object based on the geometry's type.

Returns 0 for point and multipoint.

Returns 1 for lines and polylines.

Returns 2 for polygons and envelopes

Returns 3 for objects with volume

Specified by:
getDimension in class Geometry
Returns:
Returns the integer value of the dimension of geometry.

getType

public Geometry.Type getType()
Description copied from class: Geometry
Returns the geometry type.

Specified by:
getType in class Geometry
Returns:
Returns the geometry type.

equals

public boolean equals(Object other)
Returns TRUE when this geometry has exactly same type, properties, and coordinates as the other geometry.

Overrides:
equals in class Object

hashCode

public int hashCode()
Returns the hash code for the polyline.

Overrides:
hashCode in class MultiPath

addSegment

public void addSegment(Segment segment,
                       boolean bStartNewPath)
Description copied from class: MultiPath
Adds a new segment to this multipath.

Overrides:
addSegment in class MultiPath
Parameters:
segment - The segment to be added to this mulitpath.
bStartNewPath - TRUE if a new path will be added.

getPoint

public void getPoint(int arg0,
                     Point arg1)


Copyright © 2012. All Rights Reserved.