public final class Freeform extends AutoShape
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
.
Modifier and Type | Field and Description |
---|---|
static byte[] |
SEGMENTINFO_CLOSE |
static byte[] |
SEGMENTINFO_CUBICTO |
static byte[] |
SEGMENTINFO_CUBICTO2 |
static byte[] |
SEGMENTINFO_END |
static byte[] |
SEGMENTINFO_ESCAPE |
static byte[] |
SEGMENTINFO_ESCAPE2 |
static byte[] |
SEGMENTINFO_LINETO |
static byte[] |
SEGMENTINFO_MOVETO |
_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 |
---|---|
|
Freeform()
Create a new Freeform.
|
protected |
Freeform(EscherContainerRecord escherRecord,
Shape parent)
Create a Freeform object and initialize it from the supplied Record container.
|
|
Freeform(Shape parent)
Create a new Freeform.
|
Modifier and Type | Method and Description |
---|---|
Shape |
getOutline()
Return shape outline as a java.awt.Shape object
|
GeneralPath |
getPath()
Gets the freeform path
|
void |
setPath(GeneralPath path)
Set the shape path
|
createSpContainer, getAdjustmentValue, setAdjustmentValue, setDefaultTextProperties
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
public static final byte[] SEGMENTINFO_MOVETO
public static final byte[] SEGMENTINFO_LINETO
public static final byte[] SEGMENTINFO_ESCAPE
public static final byte[] SEGMENTINFO_ESCAPE2
public static final byte[] SEGMENTINFO_CUBICTO
public static final byte[] SEGMENTINFO_CUBICTO2
public static final byte[] SEGMENTINFO_CLOSE
public static final byte[] SEGMENTINFO_END
protected Freeform(EscherContainerRecord escherRecord, Shape parent)
escherRecord
- EscherSpContainer
container which holds information about this shapeparent
- the parent of the shapepublic Freeform(Shape parent)
parent
- the parent of this Shape. For example, if this text box is a cell
in a table then the parent is Table.public Freeform()
public void setPath(GeneralPath path)
path
- public GeneralPath getPath()
public Shape getOutline()
Shape
getOutline
in class AutoShape
Copyright © 2020. All rights reserved.