public interface FreeformShape<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>> extends AutoShape<S,P>
TextShape.TextAutofit, TextShape.TextDirection, TextShape.TextPlaceholder
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Path2D |
getPath()
Gets the shape path.
(获取形状路径。)
|
int |
setPath(java.awt.geom.Path2D path)
Set the shape path
(设置形状路径)
|
appendText, getInsets, getText, getTextDirection, getTextHeight, getTextHeight, getTextParagraphs, getTextPlaceholder, getTextRotation, getVerticalAlignment, getWordWrap, isHorizontalCentered, resizeToFitText, resizeToFitText, setHorizontalCentered, setInsets, setText, setTextDirection, setTextPlaceholder, setTextRotation, setVerticalAlignment, setWordWrap
createHyperlink, getFillColor, getFillStyle, getGeometry, getHyperlink, getLineDecoration, getPlaceholder, getPlaceholderDetails, getShadow, getShapeType, getStrokeStyle, isPlaceholder, setFillColor, setPlaceholder, setShapeType, setStrokeStyle
draw, getAnchor, getParent, getShapeId, getShapeName, getSheet
getAdjustValue
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotation
java.awt.geom.Path2D getPath()
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)
(获取形状路径。路径在形状的坐标系中平移,即 freeform.getPath2D().getBounds2D() 等于 freeform.getAnchor() (由于舍入误差可能会出现小的差异))int setPath(java.awt.geom.Path2D path)
path
- shape outline
(路径 - 形状轮廓)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.