| Constructor and Description |
|---|
PolygonShape(com.vividsolutions.jts.geom.Coordinate[] shellVertices,
Collection holeVerticesCollection) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(double x,
double y) |
boolean |
contains(double x,
double y,
double w,
double h) |
boolean |
contains(Point2D p) |
boolean |
contains(Rectangle2D r) |
Rectangle |
getBounds() |
Rectangle2D |
getBounds2D() |
PathIterator |
getPathIterator(AffineTransform at) |
PathIterator |
getPathIterator(AffineTransform at,
double flatness) |
boolean |
intersects(double x,
double y,
double w,
double h) |
boolean |
intersects(Rectangle2D r) |
public PolygonShape(com.vividsolutions.jts.geom.Coordinate[] shellVertices,
Collection holeVerticesCollection)
shellVertices - in view coordinatesholeVerticesCollection - a Coordinate[] for each hole, in view coordinatespublic Rectangle2D getBounds2D()
getBounds2D in interface Shapepublic boolean intersects(double x,
double y,
double w,
double h)
intersects in interface Shapepublic boolean intersects(Rectangle2D r)
intersects in interface Shapepublic boolean contains(double x,
double y,
double w,
double h)
public boolean contains(Rectangle2D r)
public PathIterator getPathIterator(AffineTransform at)
getPathIterator in interface Shapepublic PathIterator getPathIterator(AffineTransform at, double flatness)
getPathIterator in interface ShapeCopyright © 2015. All rights reserved.