| Constructor and Description |
|---|
PolygonShape()
|
PolygonShape(Coordinate
Creates a new polygon
Shape.
|
| 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
|
boolean |
contains(Rectangle2D
|
Rectangle |
getBounds()
|
Rectangle2D |
getBounds2D()
|
PathIterator |
getPathIterator(AffineTransform
|
PathIterator |
getPathIterator(AffineTransform
|
boolean |
intersects(double x, double y, double w, double h)
|
boolean |
intersects(Rectangle2D
|
public PolygonShape(Coordinate[] shellVertices, Collection holeVerticesCollection)
Shape.
shellVertices - the vertices of the shell
holeVerticesCollection - a collection of Coordinate[] for each hole
public PolygonShape()
public RectanglegetBounds()
public Rectangle2DgetBounds2D()
public boolean contains(double x,
double y)public boolean contains(Point2Dp)
public boolean intersects(double x,
double y,
double w,
double h)public boolean intersects(Rectangle2Dr)
public boolean contains(double x,
double y,
double w,
double h)public boolean contains(Rectangle2Dr)
public PathIteratorgetPathIterator(AffineTransform at)
public PathIteratorgetPathIterator(AffineTransform at, double flatness)