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

    • Method Detail

      • getPath

        Path2D getPath()
        Gets the shape path.

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

        Returns:
        the path
      • setPath

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