public class HSSFPolygon extends HSSFSimpleShape
Modifier and Type | Field and Description |
---|---|
static short |
OBJECT_TYPE_MICROSOFT_OFFICE_DRAWING |
OBJECT_TYPE_ARC, OBJECT_TYPE_COMBO_BOX, OBJECT_TYPE_COMMENT, OBJECT_TYPE_LINE, OBJECT_TYPE_OVAL, OBJECT_TYPE_PICTURE, OBJECT_TYPE_RECTANGLE, WRAP_BY_POINTS, WRAP_NONE, WRAP_SQUARE
FILL__FILLCOLOR_DEFAULT, LINESTYLE__COLOR_DEFAULT, LINESTYLE_DASHDOTDOTSYS, LINESTYLE_DASHDOTGEL, LINESTYLE_DASHDOTSYS, LINESTYLE_DASHGEL, LINESTYLE_DASHSYS, LINESTYLE_DEFAULT, LINESTYLE_DOTGEL, LINESTYLE_DOTSYS, LINESTYLE_LONGDASHDOTDOTGEL, LINESTYLE_LONGDASHDOTGEL, LINESTYLE_LONGDASHGEL, LINESTYLE_NONE, LINESTYLE_SOLID, LINEWIDTH_DEFAULT, LINEWIDTH_ONE_PT, NO_FILL_DEFAULT, NO_FILLHITTEST_FALSE, NO_FILLHITTEST_TRUE
Constructor and Description |
---|
HSSFPolygon(EscherContainerRecord spContainer,
ObjRecord objRecord) |
HSSFPolygon(EscherContainerRecord spContainer,
ObjRecord objRecord,
TextObjectRecord _textObjectRecord) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterRemove(HSSFPatriarch patriarch)
remove escher container from the patriarch.escherAggregate
remove obj, textObj and note records if it's necessary
in case of ShapeGroup remove all contained shapes
|
protected ObjRecord |
createObjRecord()
Creates the low level OBJ record for this shape.
|
protected EscherContainerRecord |
createSpContainer()
Generates the shape records for this shape.
|
protected TextObjectRecord |
createTextObjRecord() |
int |
getDrawAreaHeight() |
int |
getDrawAreaWidth() |
int[] |
getXPoints() |
int[] |
getYPoints() |
void |
setPoints(int[] xPoints,
int[] yPoints) |
void |
setPolygonDrawArea(int width,
int height)
Defines the width and height of the points in the polygon
|
cloneShape, getShapeId, getShapeType, getString, getTextObjectRecord, getWrapText, setShapeType, setString, setWrapText
countOfAllChildren, getAnchor, getEscherContainer, getFillColor, getLineStyle, getLineStyleColor, getLineWidth, getObjRecord, getOptRecord, getParent, getPatriarch, getRotationDegree, getShapeName, isFlipHorizontal, isFlipVertical, isNoFill, setAnchor, setFillColor, setFillColor, setFlipHorizontal, setFlipVertical, setLineStyle, setLineStyleColor, setLineStyleColor, setLineWidth, setNoFill, setParent, setPatriarch, setPropertyValue, setRotationDegree
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnchor, getParent, getShapeName, isNoFill, setFillColor, setLineStyleColor, setNoFill
public static final short OBJECT_TYPE_MICROSOFT_OFFICE_DRAWING
public HSSFPolygon(EscherContainerRecord spContainer, ObjRecord objRecord, TextObjectRecord _textObjectRecord)
public HSSFPolygon(EscherContainerRecord spContainer, ObjRecord objRecord)
protected TextObjectRecord createTextObjRecord()
createTextObjRecord
in class HSSFSimpleShape
protected EscherContainerRecord createSpContainer()
createSpContainer
in class HSSFSimpleShape
protected ObjRecord createObjRecord()
createObjRecord
in class HSSFSimpleShape
protected void afterRemove(HSSFPatriarch patriarch)
HSSFShape
afterRemove
in class HSSFSimpleShape
public int[] getXPoints()
public int[] getYPoints()
public void setPoints(int[] xPoints, int[] yPoints)
xPoints
- - array of x coordinatesyPoints
- - array of y coordinatespublic void setPolygonDrawArea(int width, int height)
width
- height
- public int getDrawAreaWidth()
public int getDrawAreaHeight()
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.