Package org.apache.poi.sl.usermodel
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>
public interface FreeformShape<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>> extends AutoShape<S,P>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.poi.sl.usermodel.TextShape
TextShape.TextAutofit, TextShape.TextDirection, TextShape.TextPlaceholder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Path2D
getPath()
Gets the shape path.int
setPath(Path2D path)
Set the shape path-
Methods inherited from interface org.apache.poi.sl.draw.geom.IAdjustableShape
getAdjustValue
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface org.apache.poi.sl.usermodel.PlaceableShape
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotation
-
Methods inherited from interface org.apache.poi.sl.usermodel.Shape
draw, getAnchor, getParent, getShapeId, getShapeName, getSheet
-
Methods inherited from interface org.apache.poi.sl.usermodel.SimpleShape
createHyperlink, getFillColor, getFillStyle, getGeometry, getHyperlink, getLineDecoration, getPlaceholder, getPlaceholderDetails, getShadow, getShapeType, getStrokeStyle, isPlaceholder, setFillColor, setPlaceholder, setShapeType, setStrokeStyle
-
Methods inherited from interface org.apache.poi.sl.usermodel.TextShape
appendText, getInsets, getText, getTextDirection, getTextHeight, getTextHeight, getTextParagraphs, getTextPlaceholder, getTextRotation, getVerticalAlignment, getWordWrap, isHorizontalCentered, resizeToFitText, resizeToFitText, setHorizontalCentered, setInsets, setText, setTextDirection, setTextPlaceholder, setTextRotation, setVerticalAlignment, setWordWrap
-
-
-
-
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
-
-