Top Methods
org.apache.poi.sl.usermodel

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

extends AutoShape<S extends Shape<S, P>, P extends TextParagraph<S, P, ? extends TextRun>>
Imports
java.awt.geom.Path2D

Method Summary

Modifier and TypeMethod and Description
public Path2D

Returns:

the path
getPath
()

Gets the shape path.

public int

Returns:

the number of points written
setPath
(Path2D
shape outline
path
)

Set the shape path

Method Detail

getPathback to summary
public 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:Path2D

the path

setPathback to summary
public int setPath(Path2D path)

Set the shape path

Parameters
path:Path2D

shape outline

Returns:int

the number of points written