public interface Drawing<T extends Shape> extends ShapeContainer<T>
Modifier and Type | Method and Description |
---|---|
ClientAnchor |
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.
(创建一个新的客户端锚点并设置锚点的左上角和右下角坐标。)
|
Comment |
createCellComment(ClientAnchor anchor)
Creates a comment.
(创建评论。)
|
ObjectData |
createObjectData(ClientAnchor anchor, int storageId, int pictureIndex)
Adds a new OLE Package Shape
(添加新的 OLE 包形状)
|
Picture |
createPicture(ClientAnchor anchor, int pictureIndex)
Creates a picture.
(创建图片。)
|
Picture createPicture(ClientAnchor anchor, int pictureIndex)
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 - 图片工作簿集合中图片的索引。)
Comment createCellComment(ClientAnchor anchor)
anchor
- the client anchor describes how this comment is attached to the sheet.
(锚点 - 客户锚点描述如何将此评论附加到工作表。)
ClientAnchor createAnchor(int dx1, int dy1, int dx2, int dy2, int col1, int row1, int col2, int row2)
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)。)
ObjectData createObjectData(ClientAnchor anchor, int storageId, int pictureIndex)
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 - 图片工作簿集合中图片(用作预览图像)的索引。)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.