| Constructor and Description |
|---|
XSSFDrawing(PackagePart part)
Construct a SpreadsheetML drawing from a package part
|
| Modifier and Type | Method and Description |
|---|---|
XSSFClientAnchor |
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.
|
XSSFComment |
createCellComment(ClientAnchor anchor)
Creates a comment.
|
XSSFChart |
createChart(ClientAnchor anchor)
Creates a chart.
|
XSSFChart |
createChart(XSSFClientAnchor anchor)
Creates a chart.
|
XSSFConnector |
createConnector(XSSFClientAnchor anchor)
Creates a simple shape.
|
XSSFShapeGroup |
createGroup(XSSFClientAnchor anchor)
Creates a simple shape.
|
XSSFObjectData |
createObjectData(ClientAnchor anchor,
int storageId,
int pictureIndex)
Adds a new OLE Package Shape
|
XSSFPicture |
createPicture(ClientAnchor anchor,
int pictureIndex)
Creates a picture.
|
XSSFPicture |
createPicture(XSSFClientAnchor anchor,
int pictureIndex)
Creates a picture.
|
XSSFSimpleShape |
createSimpleShape(XSSFClientAnchor anchor)
Creates a simple shape.
|
XSSFTextBox |
createTextbox(XSSFClientAnchor anchor)
Constructs a textbox under the drawing.
|
List<XSSFChart> |
getCharts()
Returns all charts in this drawing.
|
CTDrawing |
getCTDrawing()
Return the underlying CTDrawing bean, the root element of the
SpreadsheetML Drawing part.
|
List<XSSFShape> |
getShapes() |
List<XSSFShape> |
getShapes(XSSFShapeGroup groupshape) |
XSSFSheet |
getSheet() |
XSSFChart |
importChart(XSSFChart srcChart)
Imports the chart from the
srcChart into this drawing. |
Iterator<XSSFShape> |
iterator() |
_invokeOnDocumentRead, addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, isCommited, isCommitted, setCommited, setCommitted, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic XSSFDrawing(PackagePart part) throws IOException, XmlException
part - the package part holding the drawing data, the content type
must be
application/vnd.openxmlformats-officedocument.drawing+xmlIOExceptionXmlException@Internal public CTDrawing getCTDrawing()
public XSSFClientAnchor createAnchor(int dx1, int dy1, int dx2, int dy2, int col1, int row1, int col2, int row2)
DrawingcreateAnchor 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 XSSFTextBox createTextbox(XSSFClientAnchor anchor)
anchor - the client anchor describes how this group is attached to the
sheet.public XSSFPicture createPicture(XSSFClientAnchor 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,
XSSFWorkbook.getAllPictures()
.public XSSFPicture createPicture(ClientAnchor anchor, int pictureIndex)
DrawingcreatePicture 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 XSSFChart createChart(XSSFClientAnchor anchor)
anchor - the client anchor describes how this chart is attached to the
sheet.createChart(ClientAnchor)public XSSFChart createChart(ClientAnchor anchor)
anchor - the client anchor describes how this chart is attached to the
sheet.public XSSFChart importChart(XSSFChart srcChart) throws IOException, XmlException
srcChart into this drawing.srcChart - the source chart to be cloned into this drawing.XmlExceptionIOExceptionpublic XSSFSimpleShape createSimpleShape(XSSFClientAnchor anchor)
anchor - the client anchor describes how this group is attached to the
sheet.public XSSFConnector createConnector(XSSFClientAnchor anchor)
anchor - the client anchor describes how this group is attached to the
sheet.public XSSFShapeGroup createGroup(XSSFClientAnchor anchor)
anchor - the client anchor describes how this group is attached to the
sheet.public XSSFComment createCellComment(ClientAnchor anchor)
createCellComment in interface Drawing<XSSFShape>anchor - the client anchor describes how this comment is attached to
the sheet.public XSSFObjectData createObjectData(ClientAnchor anchor, int storageId, int pictureIndex)
DrawingcreateObjectData 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.public List<XSSFShape> getShapes(XSSFShapeGroup groupshape)
public XSSFSheet getSheet()
Copyright © 2010 - 2020 Adobe. All Rights Reserved