Interface FreeformShape<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>>

All Superinterfaces:
AutoShape<S,P>, IAdjustableShape, Iterable<P>, PlaceableShape<S,P>, Shape<S,P>, SimpleShape<S,P>, TextShape<S,P>
All Known Implementing Classes:
HSLFFreeformShape, XSLFFreeformShape

public interface FreeformShape<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>> extends AutoShape<S,P>
  • Method Details

    • getPath

      Path2D.Double getPath()
      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)

      Returns:
      the path
    • setPath

      int setPath(Path2D.Double path)
      Set the shape path
      Parameters:
      path - shape outline
      Returns:
      the number of points written