Package com.esri.core.geometry
Class Polyline
- java.lang.Object
-
- com.esri.core.geometry.Geometry
-
- com.esri.core.geometry.MultiVertexGeometry
-
- com.esri.core.geometry.MultiPath
-
- com.esri.core.geometry.Polyline
-
- All Implemented Interfaces:
java.io.Serializable
public class Polyline extends MultiPath implements java.io.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.GeometryAccelerationDegree, Geometry.GeometryType, Geometry.Type
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class com.esri.core.geometry.Geometry
m_description, m_touchFlag
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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(java.lang.Object other)
Returns TRUE when this geometry has exactly same type, properties, and coordinates as the other geometry.long
estimateMemorySize()
Returns an estimate of this object size in bytes.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.void
interpolateAttributes(int from_path_index, int from_point_index, int to_path_index, int to_point_index)
void
interpolateAttributes(int semantics, int from_path_index, int from_point_index, int to_path_index, int to_point_index)
-
Methods inherited from class com.esri.core.geometry.MultiPath
_getImpl, add, addAttribute, addEnvelope, addEnvelope, addPath, addPath, addSegmentsFromPath, applyTransformation, applyTransformation, assignVertexDescription, bezierTo, calculateArea2D, calculateLength2D, calculatePathLength2D, closeAllPaths, closePathWithArc, closePathWithBezier, closePathWithLine, copyTo, dropAllAttributes, dropAttribute, getAttributeAsDbl, getAttributeAsInt, getBoundary, getDescription, getPathCount, getPathEnd, getPathIndexFromPointIndex, getPathSize, getPathStart, getPoint, getPointByVal, getPointCount, getSegmentCount, getSegmentCount, getStateFlag, getXY, getXY, getXYZ, hasNonLinearSegments, hasNonLinearSegments, insertPath, insertPath, insertPoint, insertPoint, insertPoints, insertPoints, isClosedPath, isClosedPathInXYPlane, isEmpty, lineTo, lineTo, lineTo, lineTo, mergeVertexDescription, queryCoordinates, queryCoordinates, queryCoordinates, queryCoordinates, queryEnvelope, queryEnvelope2D, queryEnvelope3D, queryInterval, queryLooseEnvelope, queryLooseEnvelope, queryPathEnvelope2D, querySegmentIterator, querySegmentIteratorAtVertex, removePath, removePoint, replaceNaNs, reverseAllPaths, reversePath, setAttribute, setAttribute, setEmpty, setPoint, setPointByVal, setXY, setXYZ, startPath, startPath, startPath, startPath
-
Methods inherited from class com.esri.core.geometry.MultiVertexGeometry
_assignVertexDescriptionImpl, getCoordinates2D, getCoordinates3D, getPoint
-
Methods inherited from class com.esri.core.geometry.Geometry
_clone, _touch, addID, addM, addZ, copy, estimateMemorySize, getDimensionFromType, hasAttribute, hasID, hasM, hasZ, isArea, isLinear, isMultiPath, isMultiVertex, isPoint, isSegment, queryLooseEnvelope2D, queryLooseEnvelope3D, toString, vertex_count, writeReplace
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Polyline
public Polyline()
Creates an empty polyline.
-
Polyline
public Polyline(VertexDescription vd)
-
-
Method Detail
-
createInstance
public Geometry createInstance()
Description copied from class:Geometry
Creates an instance of an empty geometry of the same type.- Specified by:
createInstance
in classGeometry
- Returns:
- The new instance.
-
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 classGeometry
- Returns:
- Returns the integer value of the dimension of geometry.
-
getType
public Geometry.Type getType()
Description copied from class:Geometry
Returns the geometry type.
-
estimateMemorySize
public long estimateMemorySize()
Description copied from class:Geometry
Returns an estimate of this object size in bytes.This estimate doesn't include the size of the
VertexDescription
object because instances ofVertexDescription
are shared among geometry objects.- Specified by:
estimateMemorySize
in classGeometry
- Returns:
- Returns an estimate of this object size in bytes.
-
equals
public boolean equals(java.lang.Object other)
Returns TRUE when this geometry has exactly same type, properties, and coordinates as the other geometry.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Returns the hash code for the polyline.
-
addSegment
public void addSegment(Segment segment, boolean bStartNewPath)
Description copied from class:MultiPath
Adds a new segment to this multipath.- Overrides:
addSegment
in classMultiPath
- Parameters:
segment
- The segment to be added to this mulitpath.bStartNewPath
- TRUE if a new path will be added.
-
interpolateAttributes
public void interpolateAttributes(int from_path_index, int from_point_index, int to_path_index, int to_point_index)
-
interpolateAttributes
public void interpolateAttributes(int semantics, int from_path_index, int from_point_index, int to_path_index, int to_point_index)
-
-