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_frc, _paragraphs, _txtbox, WrapByPoints, WrapNone, WrapSquare, WrapThrough, WrapTopBottom_clientData, _clientRecords, 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.
|
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.
|
afterInsert, appendText, getBottomInset, getEscherTextboxWrapper, getHyperlinks, getInsets, getLeftInset, getPlaceholderAtom, getRawText, getRightInset, getRunType, getText, getTextDirection, getTextHeight, getTextId, getTextParagraphs, getTopInset, getVerticalAlignment, getWordWrap, getWordWrapEx, isAlignToBaseline, isHorizontalCentered, isPlaceholder, iterator, resizeToFitText, setAlignToBaseline, setBottomInset, setHorizontalCentered, setHyperlink, setLeftInset, setRightInset, setRunType, setSheet, setText, setTextId, setTopInset, setVerticalAlignment, setWordWrap, storeTextcreateSpContainer, getAdjustValue, getClientDataRecord, getClientRecords, getFillColor, getGeometry, getLineColor, getLineCompound, getLineDashing, getLineDecoration, getLineWidth, getShadow, getShadowAngle, getShadowColor, getShadowDistance, getStrokeStyle, setFillColor, setHyperlink, setLineColor, setLineCompound, setLineDashing, setLineWidth, updateClientDatadraw, getAnchor, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFillStyle, getFlipHorizontal, getFlipVertical, getHyperlink, getParent, getRotation, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setFlipHorizontal, setFlipVertical, setRotation, setShapeId, setShapeTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInsets, getTextDirection, getTextHeight, getTextParagraphs, getVerticalAlignment, getWordWrap, isHorizontalCenteredgetFillStyle, getGeometry, getLineDecoration, getShadow, getShapeType, getStrokeStyle, isPlaceholdergetAdjustValuegetAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, setAnchor, setFlipHorizontal, setFlipVertical, setRotationprotected 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)
HSLFTextShapesetDefaultTextProperties in class HSLFTextShapepublic 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).
idx - the adjust index in the [0, 9] rangepublic 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).
idx - the adjust index in the [0, 9] rangeval - the adjustment valueCopyright 2016 The Apache Software Foundation or its licensors, as applicable.