public final class HSSFPatriarch extends java.lang.Object implements HSSFShapeContainer, Drawing<HSSFShape>
Modifier and Type | Method and Description |
---|---|
void |
addShape(HSSFShape shape)
add a shape to this drawing
(向此绘图添加形状)
|
void |
clear()
remove all shapes inside patriarch
(删除族长内部的所有形状)
|
boolean |
containsChart()
Does this HSSFPatriarch contain a chart? (Technically a reference to a chart, since they get stored in a different block of records) FIXME - detect chart in all cases (only seems to work on some charts so far)
(这个 HSSFPatriarch 是否包含图表? (技术上是对图表的引用,因为它们存储在不同的记录块中) FIXME - 在所有情况下检测图表(到目前为止似乎只适用于某些图表))
|
int |
countOfAllChildren()
Total count of all children and their children's children.
(所有孩子及其孩子的孩子的总数。)
|
HSSFClientAnchor |
createAnchor(int dx1, int dy1, int dx2, int dy2, int col1, int row1, int col2, int row2)
Creates a new client anchor and sets the top-left and bottom-right coordinates of the anchor.
(创建一个新的客户端锚点并设置锚点的左上角和右下角坐标。)
|
HSSFComment |
createCellComment(ClientAnchor anchor)
Creates a comment.
(创建评论。)
|
HSSFComment |
createComment(HSSFAnchor anchor)
Constructs a cell comment.
(构造一个单元格注释。)
|
HSSFShapeGroup |
createGroup(HSSFClientAnchor anchor)
Creates a new group record stored under this patriarch.
(创建存储在此族长下的新组记录。)
|
HSSFObjectData |
createObjectData(ClientAnchor anchor, int storageId, int pictureIndex)
Adds a new OLE Package Shape
(添加新的 OLE 包形状)
|
HSSFPicture |
createPicture(ClientAnchor anchor, int pictureIndex)
Creates a picture.
(创建图片。)
|
HSSFPicture |
createPicture(HSSFClientAnchor anchor, int pictureIndex)
Creates a picture.
(创建图片。)
|
HSSFPolygon |
createPolygon(HSSFClientAnchor anchor)
Creates a polygon
(创建一个多边形)
|
HSSFSimpleShape |
createSimpleShape(HSSFClientAnchor anchor)
Creates a simple shape.
(创建一个简单的形状。)
|
HSSFTextbox |
createTextbox(HSSFClientAnchor anchor)
Constructs a textbox under the patriarch.
(在族长下构造一个文本框。)
|
EscherAggregate |
getBoundAggregate()
Returns the aggregate escher record we're bound to
(返回我们绑定到的聚合 escher 记录)
|
java.util.List<HSSFShape> |
getChildren()
Returns a unmodifiable list of all shapes contained by the patriarch.
(返回族长包含的所有形状的不可修改列表。)
|
protected HSSFSheet |
getSheet() |
int |
getX1() |
int |
getX2() |
int |
getY1() |
int |
getY2() |
java.util.Iterator<HSSFShape> |
iterator() |
protected void |
preSerialize()
check if any shapes contain wrong data At now(13.08.2010) check if patriarch contains 2 or more comments with same coordinates
(检查是否有任何形状包含错误的数据 现在(13.08.2010)检查族长是否包含 2 个或更多具有相同坐标的评论)
|
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.
(设置该组的坐标空间。)
|
protected void preSerialize()
public boolean removeShape(HSSFShape shape)
HSSFShapeContainer
removeShape
in interface
HSSFShapeContainer
(接口 HSSFShapeContainer 中的 removeShape)
shape
- to be removed
(形状 - 被移除)
public HSSFShapeGroup createGroup(HSSFClientAnchor anchor)
anchor
- the client anchor describes how this group is attached to the sheet.
(锚点 - 客户端锚点描述了该组是如何附加到工作表上的。)
public HSSFSimpleShape createSimpleShape(HSSFClientAnchor anchor)
anchor
- the client anchor describes how this group is attached to the sheet.
(锚点 - 客户端锚点描述了该组是如何附加到工作表上的。)
public HSSFPicture createPicture(HSSFClientAnchor anchor, int pictureIndex)
anchor
- the client anchor describes how this group is attached to the sheet.
(锚点 - 客户端锚点描述了该组是如何附加到工作表上的。)
pictureIndex
- - pointer to the byte array saved inside workbook in escher bse record
(pictureIndex - - 指向保存在 escher bse 记录中工作簿内的字节数组的指针)
public HSSFPicture createPicture(ClientAnchor anchor, int pictureIndex)
Drawing
createPicture
in interface
Drawing<HSSFShape>
(界面绘图中的createPicture
anchor
- the client anchor describes how this picture is attached to the sheet.
(锚点 - 客户端锚点描述了这张图片是如何附加到工作表上的。)
pictureIndex
- the index of the picture in the workbook collection of pictures.
(pictureIndex - 图片工作簿集合中图片的索引。)
public HSSFObjectData createObjectData(ClientAnchor anchor, int storageId, int pictureIndex)
Drawing
createObjectData
in interface
Drawing<HSSFShape>
(界面绘图中的createObjectData
anchor
- the client anchor describes how this picture is attached to the sheet.
(锚点 - 客户端锚点描述了这张图片是如何附加到工作表上的。)
storageId
- the storageId returned by
Workbook.addOlePackage(byte[], String, String, String)
(storageId - Workbook.addOlePackage(byte[], String, String, String) 返回的 storageId)
pictureIndex
- the index of the picture (used as preview image) in the workbook collection of pictures.
(pictureIndex - 图片工作簿集合中图片(用作预览图像)的索引。)
public HSSFPolygon createPolygon(HSSFClientAnchor anchor)
anchor
- the client anchor describes how this group is attached to the sheet.
(锚点 - 客户端锚点描述了该组是如何附加到工作表上的。)
public HSSFTextbox createTextbox(HSSFClientAnchor anchor)
anchor
- the client anchor describes how this group is attached to the sheet.
(锚点 - 客户端锚点描述了该组是如何附加到工作表上的。)
public HSSFComment createComment(HSSFAnchor anchor)
anchor
- the client anchor describes how this comment is attached to the sheet.
(锚点 - 客户锚点描述如何将此评论附加到工作表。)
public HSSFComment createCellComment(ClientAnchor anchor)
Drawing
createCellComment
in interface
Drawing<HSSFShape>
(界面绘图中的createCellComment
anchor
- the client anchor describes how this comment is attached to the sheet.
(锚点 - 客户锚点描述如何将此评论附加到工作表。)
public java.util.List<HSSFShape> getChildren()
getChildren
in interface
HSSFShapeContainer
(接口 HSSFShapeContainer 中的 getChildren)
@Internal public void addShape(HSSFShape shape)
addShape
in interface
HSSFShapeContainer
(接口 HSSFShapeContainer 中的 addShape)
public int countOfAllChildren()
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 boolean containsChart()
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)
@Internal public EscherAggregate getBoundAggregate()
public HSSFClientAnchor createAnchor(int dx1, int dy1, int dx2, int dy2, int col1, int row1, int col2, int row2)
createAnchor
in interface
Drawing<HSSFShape>
(界面绘图中的createAnchor
dx1
- the x coordinate in EMU within the first cell.
(dx1 - 第一个单元格内 EMU 中的 x 坐标。)
dy1
- the y coordinate in EMU within the first cell.
(dy1 - 第一个单元格内 EMU 中的 y 坐标。)
dx2
- the x coordinate in EMU within the second cell.
(dx2 - 第二个单元格内 EMU 中的 x 坐标。)
dy2
- the y coordinate in EMU within the second cell.
(dy2 - 第二个单元格内 EMU 中的 y 坐标。)
col1
- the column (0 based) of the first cell.
(col1 - 第一个单元格的列(基于 0)。)
row1
- the row (0 based) of the first cell.
(row1 - 第一个单元格的行(基于 0)。)
col2
- the column (0 based) of the second cell.
(col2 - 第二个单元格的列(基于 0)。)
row2
- the row (0 based) of the second cell.
(row2 - 第二个单元格的行(基于 0)。)
public java.util.Iterator<HSSFShape> iterator()
iterator
in interface
java.lang.Iterable<HSSFShape>
(接口 java.lang.Iterable 中的迭代器
protected HSSFSheet getSheet()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.