Class Polygon

All Implemented Interfaces:
Shape

final class Polygon extends Polyline
A polygons as a Java2D Shape.
Since:
1.1
Version:
1.1
  • Constructor Details

    • Polygon

      Polygon(double[] coordinates, int size)
      Creates a new polygon with the given coordinates. The coordinates array shall not be empty.
      Parameters:
      coordinates - the coordinate values as (x,y) tuples.
      size - number of valid value in coordinates array.