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

    • Method Detail

      • getPath

        java.awt.geom.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​(java.awt.geom.Path2D.Double path)
        Set the shape path
        Parameters:
        path - shape outline
        Returns:
        the number of points written