public class AutoShape extends TextShape
AutoShapes are drawing objects with a particular shape that may be customized through smart resizing and adjustments.
See ShapeTypes
_frc, _txtbox, _txtrun, AlignCenter, AlignJustify, AlignLeft, AlignRight, AnchorBottom, AnchorBottomBaseline, AnchorBottomCentered, AnchorBottomCenteredBaseline, AnchorMiddle, AnchorMiddleCentered, AnchorTop, AnchorTopBaseline, AnchorTopCentered, AnchorTopCenteredBaseline, WrapByPoints, WrapNone, WrapSquare, WrapThrough, WrapTopBottom
_clientData, _clientRecords, DEFAULT_LINE_WIDTH
_escherContainer, _fill, _parent, _sheet, EMU_PER_CENTIMETER, EMU_PER_INCH, EMU_PER_POINT, logger, MASTER_DPI, PIXEL_DPI, POINT_DPI
Modifier | Constructor and Description |
---|---|
protected |
AutoShape(EscherContainerRecord escherRecord,
Shape parent) |
|
AutoShape(int type) |
|
AutoShape(int type,
Shape parent) |
Modifier and Type | Method and Description |
---|---|
protected EscherContainerRecord |
createSpContainer(int shapeType,
boolean isChild) |
int |
getAdjustmentValue(int idx)
Gets adjust value which controls smart resizing of the auto-shape.
|
Shape |
getOutline()
Return shape outline as a java.awt.Shape object
|
void |
setAdjustmentValue(int idx,
int val)
Sets adjust value which controls smart resizing of the auto-shape.
|
protected void |
setDefaultTextProperties(TextRun _txtrun)
Set default properties for the TextRun.
|
afterInsert, createTextRun, draw, getEscherTextboxWrapper, getHorizontalAlignment, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPlaceholderAtom, getText, getTextId, getTextRun, getVerticalAlignment, getWordWrap, initTextRun, resizeToFitText, setHorizontalAlignment, setHyperlink, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setSheet, setText, setTextId, setVerticalAlignment, setWordWrap
createSpContainer, getClientDataRecord, getClientRecords, getFillColor, getFlipHorizontal, getFlipVertical, getLineColor, getLineDashing, getLineStyle, getLineWidth, getLogicalAnchor2D, getRotation, setFillColor, setHyperlink, setLineColor, setLineDashing, setLineStyle, setLineWidth, setRotation, updateClientData
getAnchor, getAnchor2D, getEscherChild, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getHyperlink, getParent, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setShapeId, setShapeType
protected AutoShape(EscherContainerRecord escherRecord, Shape parent)
public AutoShape(int type, Shape parent)
public AutoShape(int type)
protected EscherContainerRecord createSpContainer(int shapeType, boolean isChild)
protected void setDefaultTextProperties(TextRun _txtrun)
TextShape
setDefaultTextProperties
in class TextShape
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).
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 valuepublic Shape getOutline()
Shape
getOutline
in class Shape
Copyright © 2020. All rights reserved.