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
,java.lang.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>
-
-
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 java.awt.geom.Path2D.Double
getPath()
Gets the shape path.int
setPath(java.awt.geom.Path2D.Double path)
Set the shape path-
Methods inherited from interface org.apache.poi.sl.draw.geom.IAdjustableShape
getAdjustValue
-
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
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
-
-