public class Polygon2D extends OrientableSurface2D implements Polygon
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus
gp
geometryType, geomManager, id, logger, projection
BEST, 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,
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(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, setSurfaceAppearance
addMoveToVertex, 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, transform
area, 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, transform, within
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addInteriorRing, addInteriorRing, addInteriorRing, getInteriorRing, getNumInteriorRings, getSurfaceAppearance, removeInteriorRing, setSurfaceAppearance
addMoveToVertex, addVertex, addVertex, addVertex, closePrimitive, ensureCapacity, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setGeneralPath, setVertex
area, 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, within
contains, contains, contains, contains, getBounds, intersects
compareTo
public Polygon2D(GeometryType geomType)
GeometryType
#create()
to create the geometrytype
- The geometry typeprotected Polygon2D(GeometryType geomType, String id, IProjection projection, GeneralPathX gpx)
Geometry.cloneGeometry()
method.geomType
- id
- projection
- gpx
- public int getShapeType()
FShape
getShapeType
in interface FShape
getShapeType
in class AbstractPrimitive
public FShape cloneFShape()
FShape
cloneFShape
in interface FShape
public boolean intersects(Rectangle2D r)
OrientablePrimitive2D
intersects
in interface Shape
intersects
in interface Geometry
intersects
in class OrientablePrimitive2D
r
- Rect�ngulo.public Geometry union(Geometry other) throws GeometryOperationNotSupportedException, GeometryOperationException
union
in interface Geometry
union
in class AbstractPrimitive
GeometryOperationNotSupportedException
GeometryOperationException
public MultiPoint toPoints() throws GeometryException
Geometry
toPoints
in interface Geometry
GeometryException
public MultiLine toLines() throws GeometryException
Geometry
toLines
in interface Geometry
GeometryException
public MultiPolygon toPolygons() throws GeometryException
Geometry
toPolygons
in interface Geometry
GeometryException