public final class Polygon extends AutoShape
_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 |
---|---|---|
|
Polygon() |
Create a new Polygon.
|
protected |
Polygon(EscherContainerRecord escherRecord,
Shape parent) |
Create a Polygon object and initialize it from the supplied Record container.
|
|
Polygon(Shape parent) |
Create a new Polygon.
|
Modifier and Type | Method | Description |
---|---|---|
void |
setPoints(float[] xPoints,
float[] yPoints) |
Set the polygon vertices
|
void |
setPoints(java.awt.geom.Point2D[] points) |
Set the polygon vertices
|
createSpContainer, getAdjustmentValue, getOutline, setAdjustmentValue, setDefaultTextProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnchor, getAnchor2D, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFlipHorizontal, getFlipVertical, getHyperlink, getParent, getRotation, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setRotation, setShapeId, setShapeType
createSpContainer, getClientDataRecord, getClientRecords, getFillColor, getLineColor, getLineDashing, getLineStyle, getLineWidth, getLogicalAnchor2D, setFillColor, setHyperlink, setLineColor, setLineDashing, setLineStyle, setLineWidth, updateClientData
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
protected Polygon(EscherContainerRecord escherRecord, Shape parent)
escherRecord
- EscherSpContainer
container which holds information about this shapeparent
- the parent of the shapepublic Polygon(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 Polygon()
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.