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
(从 patriarch.escherAggregate 中删除 escher 容器 删除 obj、textObj 和注释记录(如果有必要)在 ShapeGroup 的情况下删除所有包含的形状)
|
protected ObjRecord |
createObjRecord()
Creates the low level OBJ record for this shape.
(为此形状创建低级 OBJ 记录。)
|
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 coordinates
(xPoints - - x 坐标数组)
yPoints
- - array of y coordinates
(yPoints - - y 坐标数组)
public void setPolygonDrawArea(int width, int height)
width
-
(宽度 -)
height
-
(高度 -)
public int getDrawAreaWidth()
public int getDrawAreaHeight()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.