Class PolygonShape
java.lang.Object
com.vividsolutions.jump.workbench.ui.renderer.java2D.PolygonShape
- All Implemented Interfaces:
Shape
-
Constructor Summary
ConstructorsConstructorDescriptionPolygonShape(org.locationtech.jts.geom.Coordinate[] shellVertices, Collection holeVerticesCollection) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(double x, double y) booleancontains(double x, double y, double w, double h) booleanbooleangetPathIterator(AffineTransform at, double flatness) booleanintersects(double x, double y, double w, double h) booleanfinal GeneralPathtoPolygon(org.locationtech.jts.geom.Coordinate[] coordinates)
-
Constructor Details
-
PolygonShape
public PolygonShape() -
PolygonShape
public PolygonShape(org.locationtech.jts.geom.Coordinate[] shellVertices, Collection holeVerticesCollection) - Parameters:
shellVertices- in view coordinatesholeVerticesCollection- a Coordinate[] for each hole, in view coordinates
-
-
Method Details
-
toPolygon
-
getBounds
-
getBounds2D
- Specified by:
getBounds2Din interfaceShape
-
contains
-
contains
-
intersects
public boolean intersects(double x, double y, double w, double h) - Specified by:
intersectsin interfaceShape
-
intersects
- Specified by:
intersectsin interfaceShape
-
contains
-
contains
-
getPathIterator
- Specified by:
getPathIteratorin interfaceShape
-
getPathIterator
- Specified by:
getPathIteratorin interfaceShape
-