com.esri.core.geometry
Class Polygon

java.lang.Object
  extended by com.esri.core.geometry.Geometry
      extended by com.esri.core.geometry.MultiPath
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class com.esri.core.geometry.Geometry
Geometry.Type
 
Field Summary
 
Fields inherited from class com.esri.core.geometry.MultiPath
m_impl
 
Fields inherited from class com.esri.core.geometry.Geometry
m_description
 
Constructor Summary
Polygon()
          Creates a Polygon
 
Method Summary
 double calculateRingArea2D(int ringIndex)
          Calculates and returns the ring area for the specified ring
 Geometry createInstance()
          Creates instance of empty Geometry with the same VertexDescription.
 boolean equals(Object other)
           
 int getDimension()
          Returns the Geometry Dimension.
 Geometry.Type getType()
          Returns the Geometry type.
 int hashCode()
           
 void setXY(int i, double x, double y)
           
 
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
 
Methods inherited from class com.esri.core.geometry.Geometry
addID, addM, addZ, hasID, hasM, hasZ, isSegment, queryEnvelope
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Polygon

public Polygon()
Creates a Polygon

Method Detail

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.