org.apache.poi.xslf.usermodel
Class XSLFFreeformShape
- java.lang.Object
-
- org.apache.poi.xslf.usermodel.XSLFShape
-
- org.apache.poi.xslf.usermodel.XSLFSimpleShape
-
- org.apache.poi.xslf.usermodel.XSLFTextShape
-
- org.apache.poi.xslf.usermodel.XSLFAutoShape
-
- org.apache.poi.xslf.usermodel.XSLFFreeformShape
-
- All Implemented Interfaces:
- java.lang.Iterable<XSLFTextParagraph>
@Beta public class XSLFFreeformShape extends XSLFAutoShape
Represents a custom geometric shape. This shape will consist of a series of lines and curves described within a creation path.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.geom.GeneralPathgetPath()Gets the shape path.intsetPath(java.awt.geom.GeneralPath path)Set the shape path-
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFAutoShape
toString
-
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFTextShape
addNewTextParagraph, clearText, drawContent, getBottomInset, getLeftInset, getRightInset, getText, getTextAutofit, getTextDirection, getTextHeight, getTextParagraphs, getTextType, getTopInset, getVerticalAlignment, getWordWrap, iterator, resizeToFitText, setBottomInset, setLeftInset, setPlaceholder, setRightInset, setText, setTextAutofit, setTextDirection, setTopInset, setVerticalAlignment, setWordWrap
-
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFSimpleShape
draw, getAnchor, getFillColor, getFlipHorizontal, getFlipVertical, getLineCap, getLineColor, getLineDash, getLineHeadDecoration, getLineHeadLength, getLineHeadWidth, getLineTailDecoration, getLineTailLength, getLineTailWidth, getLineWidth, getRotation, getShadow, getShapeId, getShapeName, getShapeType, getSheet, getXmlObject, setAnchor, setFillColor, setFlipHorizontal, setFlipVertical, setLineCap, setLineColor, setLineDash, setLineHeadDecoration, setLineHeadLength, setLineHeadWidth, setLineTailDecoration, setLineTailLength, setLineTailWidth, setLineWidth, setRotation, setShapeType
-
-
-
-
Method Detail
-
setPath
public int setPath(java.awt.geom.GeneralPath path)
Set the shape path- Parameters:
path- shape outline- Returns:
- the number of points written
-
getPath
public java.awt.geom.GeneralPath 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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG