public final class

Polyline

extends MultiPath
implements Serializable
java.lang.Object
   ↳ com.esri.core.geometry.Geometry
     ↳ com.esri.core.geometry.MultiPath
       ↳ com.esri.core.geometry.Polyline

Class Overview

A polyline is a collection of one or many paths.

Summary

[Expand]
Inherited Fields
From class com.esri.core.geometry.MultiPath
From class com.esri.core.geometry.Geometry
Public Constructors
Polyline()
Creates an empty polyline.
Public Methods
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.
Geometry.Type getType()
Returns the geometry type.
int hashCode()
Returns the hash code for the polyline.
boolean isValid()
Checks if the Polyline is valid.
[Expand]
Inherited Methods
From class com.esri.core.geometry.MultiPath
From class com.esri.core.geometry.Geometry
From class java.lang.Object

Public Constructors

public Polyline ()

Creates an empty polyline.

Public Methods

public void addSegment (Segment segment, boolean bStartNewPath)

Adds a new segment to this multipath.

Parameters
segment Segment: The segment to be added to this mulitpath.
bStartNewPath boolean: TRUE if a new path will be added.

public Geometry createInstance ()

Creates an instance of an empty geometry of the same type.

Returns
Geometry

public boolean equals (Object other)

Returns TRUE when this geometry has exactly same type, properties, and coordinates as the other geometry.

Parameters
other Object
Returns
boolean

public int getDimension ()

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

Returns
int Returns the integer value of the dimension of geometry.

public Geometry.Type getType ()

Returns the geometry type.

Returns
Geometry.Type Returns the geometry type.

public int hashCode ()

Returns the hash code for the polyline.

Returns
int

public boolean isValid ()

Checks if the Polyline is valid. The Polyline is valid if it has more than one point in its path.

Returns
boolean true if the Polyline is valid