public class SXSSFDrawing extends java.lang.Object implements Drawing<XSSFShape>
Constructor and Description |
---|
SXSSFDrawing(SXSSFWorkbook workbook,
XSSFDrawing drawing) |
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
|
SXSSFPicture |
createPicture(ClientAnchor anchor,
int pictureIndex)
Creates a picture.
|
java.util.Iterator<XSSFShape> |
iterator() |
public SXSSFDrawing(SXSSFWorkbook workbook, XSSFDrawing drawing)
public SXSSFPicture createPicture(ClientAnchor anchor, int pictureIndex)
Drawing
createPicture
in interface Drawing<XSSFShape>
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.public Comment createCellComment(ClientAnchor anchor)
Drawing
createCellComment
in interface Drawing<XSSFShape>
anchor
- the client anchor describes how this comment is attached
to the sheet.public ClientAnchor createAnchor(int dx1, int dy1, int dx2, int dy2, int col1, int row1, int col2, int row2)
Drawing
createAnchor
in interface Drawing<XSSFShape>
dx1
- the x coordinate in EMU within the first cell.dy1
- the y coordinate in EMU within the first cell.dx2
- the x coordinate in EMU within the second cell.dy2
- the y coordinate in EMU within the second cell.col1
- the column (0 based) of the first cell.row1
- the row (0 based) of the first cell.col2
- the column (0 based) of the second cell.row2
- the row (0 based) of the second cell.public ObjectData createObjectData(ClientAnchor anchor, int storageId, int pictureIndex)
Drawing
createObjectData
in interface Drawing<XSSFShape>
anchor
- the client anchor describes how this picture is
attached to the sheet.storageId
- the storageId returned by Workbook.addOlePackage(byte[], String, String, String)
pictureIndex
- the index of the picture (used as preview image) in the
workbook collection of pictures.Copyright 2020 The Apache Software Foundation or its licensors, as applicable.