Package com.evopdf

# Class PolygonElement

java.lang.Object
com.evopdf.PageElement
com.evopdf.PageGraphicElement
com.evopdf.PolygonElement

public class PolygonElement extends PageGraphicElement
Represents a polygon in a PDF document

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PolygonElement(PointFloat[] points)`
  Constructs a polygon element

- ## Method Summary

  Modifier and Type
  Method
  Description
  `PointFloat[]`
  `points()`
  Gets the polygon points
  `void`
  `setPoints(PointFloat[] points)`
  Sets the polygon points

  ### Methods inherited from class com.evopdf.PageGraphicElement

  `backColor, blending, clipRectangle, foreColor, gradient, lineStyle, opacity, rotate, scale, setBackColor, setBlending, setClipRectangle, setForeColor, setGradient, setLineStyle, setOpacity, skew, translate`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PolygonElement

    public PolygonElement(PointFloat[] points)
    Constructs a polygon element
    Parameters:
      `points` - the points to be connected

- ## Method Details

  - ### points

    public PointFloat[] points()
    Gets the polygon points
    Returns:
      the polygon points

  - ### setPoints

    public void setPoints(PointFloat[] points)
    Sets the polygon points
    Parameters:
      `points` - the polygon points