public class HSSFShapeGroup extends HSSFShape implements HSSFShapeContainer
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 |
---|
HSSFShapeGroup(EscherContainerRecord spgrContainer, ObjRecord objRecord) |
HSSFShapeGroup(HSSFShape parent, HSSFAnchor anchor) |
Modifier and Type | Method and Description |
---|---|
void |
addShape(HSSFShape shape)
add shape to the list of child records
(将形状添加到子记录列表中)
|
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 的情况下删除所有包含的形状)
|
void |
clear() |
protected HSSFShape |
cloneShape() |
protected HSSFShape |
cloneShape(HSSFPatriarch patriarch) |
int |
countOfAllChildren()
Count of all children and their childrens children.
(所有孩子及其孩子的孩子的计数。)
|
HSSFShapeGroup |
createGroup(HSSFChildAnchor anchor)
Create another group under this group.
(在该组下创建另一个组。)
|
protected ObjRecord |
createObjRecord() |
HSSFPicture |
createPicture(HSSFChildAnchor anchor, int pictureIndex)
Creates a picture.
(创建图片。)
|
HSSFPolygon |
createPolygon(HSSFChildAnchor anchor)
Creates a polygon
(创建一个多边形)
|
HSSFSimpleShape |
createShape(HSSFChildAnchor anchor)
Create a new simple shape under this group.
(在该组下创建一个新的简单形状。)
|
protected EscherContainerRecord |
createSpContainer() |
HSSFTextbox |
createTextbox(HSSFChildAnchor anchor)
Create a new textbox under this group.
(在该组下创建一个新的文本框。)
|
java.util.List<HSSFShape> |
getChildren()
Return all children contained by this shape.
(返回此形状包含的所有孩子。)
|
int |
getX1()
The top left x coordinate of this group.
(该组的左上 x 坐标。)
|
int |
getX2()
The bottom right x coordinate of this group.
(该组的右下 x 坐标。)
|
int |
getY1()
The top left y coordinate of this group.
(该组的左上 y 坐标。)
|
int |
getY2()
The bottom right y coordinate of this group.
(该组的右下 y 坐标。)
|
java.util.Iterator<HSSFShape> |
iterator() |
boolean |
removeShape(HSSFShape shape)
remove first level shapes
(删除第一级形状)
|
void |
setCoordinates(int x1, int y1, int x2, int y2)
Sets the coordinate space of this group.
(设置该组的坐标空间。)
|
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
public HSSFShapeGroup(EscherContainerRecord spgrContainer, ObjRecord objRecord)
public HSSFShapeGroup(HSSFShape parent, HSSFAnchor anchor)
protected EscherContainerRecord createSpContainer()
createSpContainer
in class
HSSFShape
(HSSFShape 类中的 createSpContainer)
protected ObjRecord createObjRecord()
createObjRecord
in class
HSSFShape
(HSSFShape 类中的 createObjRecord)
protected void afterRemove(HSSFPatriarch patriarch)
HSSFShape
afterRemove
in class
HSSFShape
(HSSFShape 类中的 afterRemove)
public HSSFShapeGroup createGroup(HSSFChildAnchor anchor)
anchor
- the position of the new group.
(anchor - 新组的位置。)
public void addShape(HSSFShape shape)
HSSFShapeContainer
addShape
in interface
HSSFShapeContainer
(接口 HSSFShapeContainer 中的 addShape)
public HSSFSimpleShape createShape(HSSFChildAnchor anchor)
anchor
- the position of the shape.
(anchor - 形状的位置。)
public HSSFTextbox createTextbox(HSSFChildAnchor anchor)
anchor
- the position of the shape.
(anchor - 形状的位置。)
public HSSFPolygon createPolygon(HSSFChildAnchor anchor)
anchor
- the client anchor describes how this group is attached to the sheet.
(锚点 - 客户端锚点描述了该组是如何附加到工作表上的。)
public HSSFPicture createPicture(HSSFChildAnchor anchor, int pictureIndex)
anchor
- the client anchor describes how this group is attached to the sheet.
(锚点 - 客户端锚点描述了该组是如何附加到工作表上的。)
public java.util.List<HSSFShape> getChildren()
getChildren
in interface
HSSFShapeContainer
(接口 HSSFShapeContainer 中的 getChildren)
public void setCoordinates(int x1, int y1, int x2, int y2)
setCoordinates
in interface
HSSFShapeContainer
(接口 HSSFShapeContainer 中的 setCoordinates)
public void clear()
clear
in interface
HSSFShapeContainer
(在接口 HSSFShapeContainer 中清除)
public int getX1()
getX1
in interface
HSSFShapeContainer
(接口 HSSFShapeContainer 中的 getX1)
public int getY1()
getY1
in interface
HSSFShapeContainer
(接口 HSSFShapeContainer 中的 getY1)
public int getX2()
getX2
in interface
HSSFShapeContainer
(接口 HSSFShapeContainer 中的 getX2)
public int getY2()
getY2
in interface
HSSFShapeContainer
(接口 HSSFShapeContainer 中的 getY2)
public int countOfAllChildren()
countOfAllChildren
in class
HSSFShape
protected HSSFShape cloneShape()
cloneShape
in class
HSSFShape
(HSSFShape 类中的 cloneShape)
protected HSSFShape cloneShape(HSSFPatriarch patriarch)
public boolean removeShape(HSSFShape shape)
HSSFShapeContainer
removeShape
in interface
HSSFShapeContainer
(接口 HSSFShapeContainer 中的 removeShape)
shape
- to be removed
(形状 - 被移除)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.