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 | 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 |
_escherContainer, _fill, _parent, _sheet, EMU_PER_CENTIMETER, EMU_PER_INCH, EMU_PER_POINT, logger, MASTER_DPI, PIXEL_DPI, POINT_DPI_clientData, _clientRecords, DEFAULT_LINE_WIDTH_frc, _txtbox, _txtrun, AlignCenter, AlignJustify, AlignLeft, AlignRight, AnchorBottom, AnchorBottomBaseline, AnchorBottomCentered, AnchorBottomCenteredBaseline, AnchorMiddle, AnchorMiddleCentered, AnchorTop, AnchorTopBaseline, AnchorTopCentered, AnchorTopCenteredBaseline, WrapByPoints, WrapNone, WrapSquare, WrapThrough, WrapTopBottom| Modifier | Constructor | 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 | Description |
|---|---|---|
java.awt.Shape |
getOutline() |
Return shape outline as a java.awt.Shape object
|
java.awt.geom.GeneralPath |
getPath() |
Gets the freeform path
|
void |
setPath(java.awt.geom.GeneralPath path) |
Set the shape path
|
createSpContainer, getAdjustmentValue, setAdjustmentValue, setDefaultTextPropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnchor, getAnchor2D, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFlipHorizontal, getFlipVertical, getHyperlink, getParent, getRotation, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setRotation, setShapeId, setShapeTypecreateSpContainer, getClientDataRecord, getClientRecords, getFillColor, getLineColor, getLineDashing, getLineStyle, getLineWidth, getLogicalAnchor2D, setFillColor, setHyperlink, setLineColor, setLineDashing, setLineStyle, setLineWidth, updateClientDataafterInsert, 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, setWordWrappublic 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(java.awt.geom.GeneralPath path)
path - public java.awt.geom.GeneralPath getPath()
public java.awt.Shape getOutline()
ShapegetOutline in class AutoShapeCopyright 2018 The Apache Software Foundation or its licensors, as applicable.