Class PolygonShape

Hierarchy: Object , PolygonShape
All Implemented Interfaces: Shape
public class PolygonShape
implements Shape
A Shape which represents a polygon which may contain holes. Provided because the standard AWT Polygon class does not support holes.
Authors:
Martin Davis
public PolygonShape(Coordinate[] shellVertices, Collection holeVerticesCollection)
Creates a new polygon Shape.
Parameters:
shellVertices - shellVertices the vertices of the shell
holeVerticesCollection - holeVerticesCollection a collection of Coordinate[] for each hole
public PolygonShape()
public Rectangle getBounds()
public Rectangle2D getBounds2D()
public boolean contains(double x, double y)
public boolean contains(Point2D p)
public boolean intersects(double x, double y, double w, double h)
public boolean intersects(Rectangle2D r)
public boolean contains(double x, double y, double w, double h)
public boolean contains(Rectangle2D r)
public PathIterator getPathIterator(AffineTransform at)
public PathIterator getPathIterator(AffineTransform at, double flatness)