Class PolygonShape

java.lang.Object
org.locationtech.jts.awt.PolygonShape
All Implemented Interfaces:
Shape

public class PolygonShape extends Object implements Shape
A Shape which represents a polygon which may contain holes. Provided because the standard AWT Polygon class does not support holes.
Author:
Martin Davis
  • Constructor Details

    • PolygonShape

      public PolygonShape(Coordinate[] shellVertices, Collection holeVerticesCollection)
      Creates a new polygon Shape.
      Parameters:
      shellVertices - the vertices of the shell
      holeVerticesCollection - a collection of Coordinate[] for each hole
    • PolygonShape

      public PolygonShape()
  • Method Details