Class Polygon

    • Constructor Detail

      • Polygon

        public Polygon​(ShapeContainer<HSLFShape,​HSLFTextParagraph> parent)
        Create a new Polygon. This constructor is used when a new shape is created.
        Parameters:
        parent - the parent of this Shape. For example, if this text box is a cell in a table then the parent is Table.
      • Polygon

        public Polygon()
        Create a new Polygon. This constructor is used when a new shape is created.
    • Method Detail

      • setPoints

        public void setPoints​(float[] xPoints,
                              float[] yPoints)
        Set the polygon vertices
        Parameters:
        xPoints -
        yPoints -
      • setPoints

        public void setPoints​(java.awt.geom.Point2D[] points)
        Set the polygon vertices
        Parameters:
        points - the polygon vertices