com.esri.core.geometry
Class Polygon
java.lang.Object
com.esri.core.geometry.Geometry
com.esri.core.geometry.MultiPath
com.esri.core.geometry.Polygon
- All Implemented Interfaces:
- Serializable
public final class Polygon
- extends MultiPath
- implements Serializable
The Polygon is a collection of points.
- See Also:
- Serialized Form
|
Constructor Summary |
Polygon()
Creates a Polygon |
| Methods inherited from class com.esri.core.geometry.MultiPath |
_getImpl, add, addEnvelope, addPath, calculateArea2D, calculateLength2D, closeAllPaths, closePathWithArc, closePathWithLine, copyTo, getPathCount, getPathEnd, getPathIndexFromPointIndex, getPathSize, getPathStart, getPoint, getPointCount, getSegmentCount, getSegmentCount, hasNonLinearSegments, hasNonLinearSegments, insertPoints, isClosedPath, isEmpty, lineTo, lineTo, querySegmentIterator, querySegmentIteratorAtVertex, setEmpty, setPoint, startPath, startPath |
Polygon
public Polygon()
- Creates a Polygon
createInstance
public Geometry createInstance()
- Description copied from class:
Geometry
- Creates instance of empty Geometry with the same VertexDescription.
- Specified by:
createInstance in class Geometry
getDimension
public int getDimension()
- Description copied from class:
Geometry
- Returns the Geometry Dimension. (0 for Point and MultiPoint, 1 for
curves, 2 for objects that have area, 3 for objects with volume)
- Specified by:
getDimension in class Geometry
getType
public Geometry.Type getType()
- Description copied from class:
Geometry
- Returns the Geometry type.
- Specified by:
getType in class Geometry
calculateRingArea2D
public double calculateRingArea2D(int ringIndex)
- Calculates and returns the ring area for the specified ring
- Parameters:
ringIndex - - the ring for which ring area is required
- Returns:
- ring area for the specified ring
equals
public boolean equals(Object other)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class MultiPath
setXY
public void setXY(int i,
double x,
double y)
Copyright © 2010. All Rights Reserved.