public class Polygon2D extends OrientableSurface2D implements Polygon
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatusgpgeometryType, geomManager, id, logger, projectionBEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W| Modifier | Constructor and Description |
|---|---|
|
Polygon2D(GeometryType geomType)
The constructor with the GeometryType like and argument
is used by the
GeometryType#create()
to create the geometry |
protected |
Polygon2D(GeometryType geomType,
java.lang.String id,
IProjection projection,
GeneralPathX gpx)
Constructor used in the
Geometry.cloneGeometry() method. |
| Modifier and Type | Method and Description |
|---|---|
FShape |
cloneFShape()
Creates and returns a shape equal and independent of this one.
|
int |
getShapeType()
Gets the geometry type of this shape.
|
boolean |
intersects(java.awt.geom.Rectangle2D r)
El m�todo intersects de java.awt.Shape que define la intersecci�n entre
una polil�nea y un Rectangle2D considera la polil�nea como un Shape
gen�rico y se producen errores en la selecci�n de polil�neas.
|
MultiLine |
toLines()
Converts the geometry to be lines and makes with them a multiLine
|
MultiPoint |
toPoints()
Converts the geometry to be points and makes with them a multiPoint
|
MultiPolygon |
toPolygons()
Converts the geometry to be polygons and makes with them a multiPolygon
|
Geometry |
union(Geometry other) |
addInteriorRing, getInteriorRing, getNumInteriorRings, getSurfaceAppearance, removeInteriorRing, setSurfaceAppearanceaddMoveToVertex, addVertex, addVertex, addVertex, closePrimitive, contains, contains, contains, contains, ensureCapacity, getBounds, getBounds2D, getCoordinateAt, getDimension, getEnvelope, getGeneralPath, getGeneralPathX, getNumVertices, getPathIterator, getPathIterator, getSelectHandlers, getShape, getShape, getStretchingHandlers, getVertex, insertVertex, intersects, removeVertex, reProject, setCoordinateAt, setGeneralPath, setPoints, setVertex, transformarea, buffer, centroid, cloneGeometry, closestPoints, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, equals, fastIntersects, getGeometryType, getHandlers, getId, getInteriorPoint, getInternalShape, getSRS, getType, getValidationStatus, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, overlaps, perimeter, rotate, scale, snapTo, toJTS, toString, touches, withinclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddInteriorRing, addInteriorRing, addInteriorRing, getInteriorRing, getNumInteriorRings, getSurfaceAppearance, removeInteriorRing, setSurfaceAppearanceaddMoveToVertex, addVertex, addVertex, addVertex, closePrimitive, ensureCapacity, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setGeneralPath, setVertexarea, buffer, centroid, cloneGeometry, closestPoints, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, fastIntersects, flip, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, getValidationStatus, intersection, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, out, overlaps, perimeter, reProject, rotate, scale, snapTo, touches, transform, withinpublic Polygon2D(GeometryType geomType)
GeometryType#create()
to create the geometrytype - The geometry typeprotected Polygon2D(GeometryType geomType, java.lang.String id, IProjection projection, GeneralPathX gpx)
Geometry.cloneGeometry() method.geomType - id - projection - gpx - public int getShapeType()
FShapegetShapeType in interface FShapegetShapeType in class AbstractPrimitivepublic FShape cloneFShape()
FShapecloneFShape in interface FShapepublic boolean intersects(java.awt.geom.Rectangle2D r)
OrientablePrimitive2Dintersects in interface java.awt.Shapeintersects in interface Geometryintersects in class OrientablePrimitive2Dr - Rect�ngulo.public Geometry union(Geometry other) throws GeometryOperationNotSupportedException, GeometryOperationException
union in interface Geometryunion in class AbstractPrimitiveGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic MultiPoint toPoints() throws GeometryException
GeometrytoPoints in interface GeometryGeometryExceptionpublic MultiLine toLines() throws GeometryException
GeometrytoLines in interface GeometryGeometryExceptionpublic MultiPolygon toPolygons() throws GeometryException
GeometrytoPolygons in interface GeometryGeometryException