Class HSLFFreeformShape

    • Constructor Detail

      • HSLFFreeformShape

        public HSLFFreeformShape​(ShapeContainer<HSLFShape,​HSLFTextParagraph> parent)
        Create a new Freeform. 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.
      • HSLFFreeformShape

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

      • getPath

        public java.awt.geom.Path2D.Double getPath()
        Description copied from interface: FreeformShape
        Gets the shape path.

        The path is translated in the shape's coordinate system, i.e. freeform.getPath().getBounds2D() equals to freeform.getAnchor() (small discrepancies are possible due to rounding errors)

        Specified by:
        getPath in interface FreeformShape<HSLFShape,​HSLFTextParagraph>
        Returns:
        the path