public final class HSLFFreeformShape extends HSLFAutoShape implements FreeformShape<HSLFShape,HSLFTextParagraph>
Shapes drawn with the "Freeform" tool have cubic bezier curve segments in the smooth sections and straight-line segments in the straight sections. This object closely corresponds to java.awt.geom.GeneralPath
.
TextShape.TextAutofit, TextShape.TextDirection, TextShape.TextPlaceholder
WrapByPoints, WrapNone, WrapSquare, WrapThrough, WrapTopBottom
_hyperlink, ADJUST_VALUES, DEFAULT_LINE_WIDTH
Modifier | Constructor and Description |
---|---|
|
HSLFFreeformShape()
Create a new Freeform.
(创建一个新的自由形式。)
|
protected |
HSLFFreeformShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Create a Freeform object and initialize it from the supplied Record container.
(创建一个 Freeform 对象并从提供的 Record 容器中对其进行初始化。)
|
|
HSLFFreeformShape(ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Create a new Freeform.
(创建一个新的自由形式。)
|
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
(设置形状路径)
|
createSpContainer, getAdjustmentValue, getGeometry, setAdjustmentValue, setDefaultTextProperties
afterInsert, appendText, getBottomInset, getEscherTextboxWrapper, getHFPlaceholderAtom, getHyperlinks, getInsets, getLeftInset, getMetroShape, getPlaceholderAtom, getRawText, getRightInset, getRunType, getText, getTextDirection, getTextHeight, getTextHeight, getTextId, getTextParagraphs, getTextPlaceholder, getTextRotation, getTopInset, getVerticalAlignment, getWordWrap, getWordWrapEx, isAlignToBaseline, isHorizontalCentered, isPlaceholder, iterator, resizeToFitText, resizeToFitText, setAlignToBaseline, setBottomInset, setHorizontalCentered, setInsets, setLeftInset, setRightInset, setRunType, setSheet, setText, setTextDirection, setTextId, setTextPlaceholder, setTextRotation, setTopInset, setVerticalAlignment, setWordWrap, setWordWrapEx, storeText
createHyperlink, createSpContainer, getAdjustValue, getFillColor, getHyperlink, getLineBackgroundColor, getLineCap, getLineColor, getLineCompound, getLineDash, getLineDecoration, getLineHeadDecoration, getLineHeadLength, getLineHeadWidth, getLineTailDecoration, getLineTailLength, getLineTailWidth, getLineWidth, getPlaceholder, getPlaceholderDetails, getShadow, getShadowAngle, getShadowColor, getShadowDistance, getStrokeStyle, setFillColor, setHyperlink, setLineBackgroundColor, setLineCap, setLineColor, setLineCompound, setLineDash, setLineHeadDecoration, setLineHeadLength, setLineHeadWidth, setLineTailDecoration, setLineTailLength, setLineTailWidth, setLineWidth, setPlaceholder, setStrokeStyle
draw, getAnchor, getClientData, getClientDataRecord, getClientRecords, getEscherChild, getEscherChild, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFillStyle, getFlipHorizontal, getFlipVertical, getParent, getRotation, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setEscherProperty, setEscherProperty, setEscherProperty, setFlipHorizontal, setFlipVertical, setRotation, setShapeId, setShapeType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
protected HSLFFreeformShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
escherRecord
-
EscherSpContainer
container which holds information about this shape
(escherRecord - 包含此形状信息的 EscherSpContainer 容器)
parent
- the parent of the shape
(parent - 形状的父级)
public HSLFFreeformShape(ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
parent
- the parent of this Shape. For example, if this text box is a cell in a table then the parent is Table.
(parent - 此 Shape 的父级。例如,如果此文本框是表格中的一个单元格,则父级为表格。)
public HSLFFreeformShape()
public int setPath(java.awt.geom.Path2D path)
FreeformShape
setPath
in interface
FreeformShape<HSLFShape,HSLFTextParagraph>
(接口 FreeformShape 中的 setPath
path
- shape outline
(路径 - 形状轮廓)
public java.awt.geom.Path2D getPath()
FreeformShape
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() (由于舍入误差可能会出现小的差异))getPath
in interface
FreeformShape<HSLFShape,HSLFTextParagraph>
(接口 FreeformShape 中的 getPath
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.