public interface 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.
|
Chart |
createChart(ClientAnchor anchor)
Creates a chart.
|
Picture |
createPicture(ClientAnchor anchor,
int pictureIndex)
Creates a picture.
|
void |
deleteChart(ZssChartX chartX)
Remove an existing chart
|
void |
deletePicture(Picture pic)
Remove an existing picture
|
boolean |
isEmpty() |
void |
moveChart(ZssChartX chart,
ClientAnchor anchor) |
void |
movePicture(Picture pic,
ClientAnchor anchor) |
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.Comment createCellComment(ClientAnchor anchor)
anchor
- the client anchor describes how this comment is attached
to the sheet.Chart createChart(ClientAnchor anchor)
anchor
- the client anchor describes how this chart 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.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.void deletePicture(Picture pic)
pic
- the picture to be removedvoid movePicture(Picture pic, ClientAnchor anchor)
void moveChart(ZssChartX chart, ClientAnchor anchor)
void deleteChart(ZssChartX chartX)
chartX
- the chart to be removedboolean isEmpty()
Copyright © 2020. All rights reserved.