public final class XSSFShapeGroup extends XSSFShape implements ShapeContainer<XSSFShape>
Modifier | Constructor and Description |
---|---|
protected |
XSSFShapeGroup(XSSFDrawing drawing,
org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTGroupShape ctGroup)
Construct a new XSSFSimpleShape object.
|
Modifier and Type | Method and Description |
---|---|
XSSFConnector |
createConnector(XSSFChildAnchor anchor)
Creates a simple shape.
|
XSSFShapeGroup |
createGroup(XSSFChildAnchor anchor)
Creates a group shape.
|
XSSFPicture |
createPicture(XSSFClientAnchor anchor,
int pictureIndex)
Creates a picture.
|
XSSFSimpleShape |
createSimpleShape(XSSFChildAnchor anchor)
Creates a simple shape.
|
XSSFTextBox |
createTextbox(XSSFChildAnchor anchor)
Constructs a textbox.
|
org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTGroupShape |
getCTGroupShape() |
java.lang.String |
getShapeName() |
protected org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties |
getShapeProperties()
Returns xml bean with shape properties.
|
java.util.Iterator<XSSFShape> |
iterator() |
protected static org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTGroupShape |
prototype()
Initialize default structure of a new shape group
|
void |
setCoordinates(int x1,
int y1,
int x2,
int y2)
Sets the coordinate space of this group.
|
java.util.Spliterator<XSSFShape> |
spliterator() |
getAnchor, getDrawing, getParent, isNoFill, setFillColor, setLineStyle, setLineStyleColor, setLineWidth, setNoFill
protected XSSFShapeGroup(XSSFDrawing drawing, org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTGroupShape ctGroup)
drawing
- the XSSFDrawing that owns this shapectGroup
- the XML bean that stores this group contentprotected static org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTGroupShape prototype()
public XSSFTextBox createTextbox(XSSFChildAnchor anchor)
anchor
- the child anchor describes how this shape is attached
to the group.public XSSFSimpleShape createSimpleShape(XSSFChildAnchor anchor)
anchor
- the child anchor describes how this shape is attached
to the group.public XSSFConnector createConnector(XSSFChildAnchor anchor)
anchor
- the child anchor describes how this shape is attached
to the group.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 XSSFShapeGroup createGroup(XSSFChildAnchor anchor)
anchor
- the client anchor describes how this group is attached to the group.@Internal public org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTGroupShape getCTGroupShape()
public void setCoordinates(int x1, int y1, int x2, int y2)
protected org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties getShapeProperties()
XSSFShape
getShapeProperties
in class XSSFShape
public java.util.Iterator<XSSFShape> iterator()
iterator
in interface java.lang.Iterable<XSSFShape>
public java.util.Spliterator<XSSFShape> spliterator()
spliterator
in interface java.lang.Iterable<XSSFShape>
public java.lang.String getShapeName()
getShapeName
in interface Shape
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.