public class HSLFAutoShape extends HSLFTextShape implements AutoShape<HSLFShape,HSLFTextParagraph>
AutoShapes are drawing objects with a particular shape that may be customized through smart resizing and adjustments. See ShapeTypes
TextShape.TextAutofit, TextShape.TextDirection, TextShape.TextPlaceholder
WrapByPoints, WrapNone, WrapSquare, WrapThrough, WrapTopBottom
_hyperlink, ADJUST_VALUES, DEFAULT_LINE_WIDTH
Modifier | Constructor and Description |
---|---|
protected |
HSLFAutoShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> parent) |
|
HSLFAutoShape(ShapeType type) |
|
HSLFAutoShape(ShapeType type, ShapeContainer<HSLFShape,HSLFTextParagraph> parent) |
Modifier and Type | Method and Description |
---|---|
protected EscherContainerRecord |
createSpContainer(ShapeType shapeType, boolean isChild) |
int |
getAdjustmentValue(int idx)
Gets adjust value which controls smart resizing of the auto-shape.
(获取控制自动形状的智能调整大小的调整值。)
|
CustomGeometry |
getGeometry() |
void |
setAdjustmentValue(int idx, int val)
Sets adjust value which controls smart resizing of the auto-shape.
(设置控制自动形状的智能调整大小的调整值。)
|
protected void |
setDefaultTextProperties(HSLFTextParagraph _txtrun)
Set default properties for the TextRun.
(设置 TextRun 的默认属性。)
|
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, 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 HSLFAutoShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
public HSLFAutoShape(ShapeType type, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
public HSLFAutoShape(ShapeType type)
protected EscherContainerRecord createSpContainer(ShapeType shapeType, boolean isChild)
protected void setDefaultTextProperties(HSLFTextParagraph _txtrun)
HSLFTextShape
setDefaultTextProperties
in class
HSLFTextShape
public int getAdjustmentValue(int idx)
The adjustment values are given in shape coordinates: the origin is at the top-left, positive-x is to the right, positive-y is down. The region from (0,0) to (S,S) maps to the geometry box of the shape (S=21600 is a constant).
(获取控制自动形状的智能调整大小的调整值。调整值在形状坐标中给出:原点在左上角,正 x 是在右边,正 y 是向下。从 (0,0) 到 (S,S) 的区域映射到形状的几何框(S=21600 是一个常数)。)idx
- the adjust index in the [0, 9] range
(idx - [0, 9] 范围内的调整索引)
public void setAdjustmentValue(int idx, int val)
The adjustment values are given in shape coordinates: the origin is at the top-left, positive-x is to the right, positive-y is down. The region from (0,0) to (S,S) maps to the geometry box of the shape (S=21600 is a constant).
(设置控制自动形状的智能调整大小的调整值。调整值在形状坐标中给出:原点在左上角,正 x 是在右边,正 y 是向下。从 (0,0) 到 (S,S) 的区域映射到形状的几何框(S=21600 是一个常数)。)idx
- the adjust index in the [0, 9] range
(idx - [0, 9] 范围内的调整索引)
val
- the adjustment value
(val - 调整值)
public CustomGeometry getGeometry()
getGeometry
in interface
SimpleShape<HSLFShape,HSLFTextParagraph>
(接口 SimpleShape 中的 getGeometry
getGeometry
in class
HSLFSimpleShape
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.