|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.geometry.Geometry
com.esri.core.geometry.MultiPath
com.esri.core.geometry.Polygon
public final class Polygon
A polygon is a collection of one or many interior or exterior rings.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.esri.core.geometry.Geometry |
|---|
Geometry.GeometryAccelerationDegree, Geometry.Type |
| Constructor Summary | |
|---|---|
Polygon()
Creates a polygon. |
|
| Method Summary | |
|---|---|
double |
calculateRingArea2D(int ringIndex)
Calculates the ring area for this ring. |
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. |
com.esri.core.geometry.Point2D[] |
getCoordinates2D()
Returns XY coordinates as an array. |
int |
getDimension()
Returns the topological dimension of the geometry object based on the geometry's type. |
int |
getExteriorRingCount()
|
void |
getPoint(int index,
Point ptOut)
Returns given vertex of the Geometry by value. |
Geometry.Type |
getType()
Returns the geometry type. |
int |
hashCode()
Returns a hash code value for this polygon. |
boolean |
isExteriorRing(int partIndex)
Returns TRUE if the ring is an exterior ring. |
void |
setXY(int i,
double x,
double y)
Sets a new vertex for the polygon. |
| Methods inherited from class com.esri.core.geometry.Geometry |
|---|
addID, addM, copy, getDimensionFromType, hasAttribute, hasID, hasM, hasZ, isArea, isLinear, isMultiPath, isMultiVertex, isPoint, isSegment, queryLooseEnvelope2D |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Polygon()
| Method Detail |
|---|
public Geometry createInstance()
Geometry
createInstance in class Geometrypublic int getDimension()
GeometryReturns 0 for point and multipoint.
Returns 1 for lines and polylines.
Returns 2 for polygons and envelopes
Returns 3 for objects with volume
getDimension in class Geometrypublic Geometry.Type getType()
Geometry
getType in class Geometrypublic double calculateRingArea2D(int ringIndex)
ringIndex - The index of this ring.
public boolean isExteriorRing(int partIndex)
public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class MultiPath
public void setXY(int i,
double x,
double y)
i - The index of the new vertex.x - The X coordinate for the new vertex.y - The Y coordinate for the new vertex.public int getExteriorRingCount()
public void getPoint(int index,
Point ptOut)
public com.esri.core.geometry.Point2D[] getCoordinates2D()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||