@Beta public class XSLFGroupShape extends XSLFShape implements XSLFShapeContainer, GroupShape<XSLFShape,XSLFTextParagraph>
| Modifier and Type | Method and Description |
|---|---|
void |
addShape(XSLFShape shape) |
void |
clear()
Removes all of the elements from this container (optional operation).
|
XSLFAutoShape |
createAutoShape()
create a new shape with a predefined geometry and add it to this shape container
|
XSLFConnectorShape |
createConnector()
create a connector
|
XSLFFreeformShape |
createFreeform()
create a new shape with a custom geometry
|
XSLFGroupShape |
createGroup()
create a group of shapes belonging to this container
|
XSLFObjectShape |
createOleShape(PictureData pictureData)
Create a new OLE object shape with the given pictureData as preview image
|
XSLFPictureShape |
createPicture(PictureData pictureData)
create a picture belonging to this container
|
XSLFTable |
createTable() |
XSLFTable |
createTable(int numRows,
int numCols)
Create a new Table of the given number of rows and columns
|
XSLFTextBox |
createTextBox()
create a text box
|
Rectangle2D |
getAnchor()
Returns the anchor (the bounding box rectangle) of this shape.
|
boolean |
getFlipHorizontal()
Whether the shape is horizontally flipped
|
boolean |
getFlipVertical()
Whether the shape is vertically flipped
|
Rectangle2D |
getInteriorAnchor()
Gets the coordinate space of this group.
|
double |
getRotation()
Rotation angle in degrees
|
List<XSLFShape> |
getShapes()
Returns an list containing all of the elements in this container in proper
sequence (from first to last element).
|
Iterator<XSLFShape> |
iterator()
Returns an iterator over the shapes in this sheet
|
boolean |
removeShape(XSLFShape xShape)
Remove the specified shape from this group
|
void |
setAnchor(Rectangle2D anchor) |
void |
setFlipHorizontal(boolean flip) |
void |
setFlipVertical(boolean flip)
Whether the shape is vertically flipped
|
void |
setInteriorAnchor(Rectangle2D anchor)
Sets the coordinate space of this group.
|
void |
setRotation(double theta)
Rotate this shape.
|
draw, getParent, getPlaceholder, getPlaceholderDetails, getShapeId, getShapeName, getSheet, getXmlObject, isPlaceholder, setParent, setPlaceholderequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdraw, getParent, getShapeId, getShapeName, getSheetforEach, spliteratorgetParent, getSheetpublic Rectangle2D getAnchor()
ShapegetAnchor in interface PlaceableShape<XSLFShape,XSLFTextParagraph>getAnchor in interface Shape<XSLFShape,XSLFTextParagraph>public void setAnchor(Rectangle2D anchor)
setAnchor in interface PlaceableShape<XSLFShape,XSLFTextParagraph>anchor - the position of this shape within the drawing canvas.
The coordinates are expressed in pointspublic Rectangle2D getInteriorAnchor()
GroupShapegetInteriorAnchor in interface GroupShape<XSLFShape,XSLFTextParagraph>public void setInteriorAnchor(Rectangle2D anchor)
GroupShapesetInteriorAnchor in interface GroupShape<XSLFShape,XSLFTextParagraph>anchor - the coordinates of the child extents rectangle
used for calculations of grouping, scaling, and rotation
behavior of shapes placed within a group.public List<XSLFShape> getShapes()
ShapeContainergetShapes in interface ShapeContainer<XSLFShape,XSLFTextParagraph>public boolean removeShape(XSLFShape xShape)
removeShape in interface ShapeContainer<XSLFShape,XSLFTextParagraph>xShape - the shape to be removed from this sheet, if presentpublic XSLFAutoShape createAutoShape()
ShapeContainercreateAutoShape in interface ShapeContainer<XSLFShape,XSLFTextParagraph>createAutoShape in interface XSLFShapeContainerpublic XSLFFreeformShape createFreeform()
ShapeContainercreateFreeform in interface ShapeContainer<XSLFShape,XSLFTextParagraph>createFreeform in interface XSLFShapeContainerpublic XSLFTextBox createTextBox()
ShapeContainercreateTextBox in interface ShapeContainer<XSLFShape,XSLFTextParagraph>createTextBox in interface XSLFShapeContainerpublic XSLFConnectorShape createConnector()
ShapeContainercreateConnector in interface ShapeContainer<XSLFShape,XSLFTextParagraph>createConnector in interface XSLFShapeContainerpublic XSLFGroupShape createGroup()
ShapeContainercreateGroup in interface ShapeContainer<XSLFShape,XSLFTextParagraph>createGroup in interface XSLFShapeContainerpublic XSLFPictureShape createPicture(PictureData pictureData)
ShapeContainercreatePicture in interface ShapeContainer<XSLFShape,XSLFTextParagraph>createPicture in interface XSLFShapeContainerpublic XSLFObjectShape createOleShape(PictureData pictureData)
ShapeContainercreateOleShape in interface ShapeContainer<XSLFShape,XSLFTextParagraph>pictureData - the preview imagepublic XSLFTable createTable()
public XSLFTable createTable(int numRows, int numCols)
ShapeContainercreateTable in interface ShapeContainer<XSLFShape,XSLFTextParagraph>numRows - the number of rowsnumCols - the number of columnspublic void setFlipHorizontal(boolean flip)
setFlipHorizontal in interface PlaceableShape<XSLFShape,XSLFTextParagraph>flip - whether the shape is horizontally flippedpublic void setFlipVertical(boolean flip)
PlaceableShapesetFlipVertical in interface PlaceableShape<XSLFShape,XSLFTextParagraph>flip - whether the shape is vertically flippedpublic boolean getFlipHorizontal()
PlaceableShapegetFlipHorizontal in interface PlaceableShape<XSLFShape,XSLFTextParagraph>public boolean getFlipVertical()
PlaceableShapegetFlipVertical in interface PlaceableShape<XSLFShape,XSLFTextParagraph>public void setRotation(double theta)
PlaceableShapePositive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).
setRotation in interface PlaceableShape<XSLFShape,XSLFTextParagraph>theta - the rotation angle in degrees.public double getRotation()
PlaceableShapePositive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).
getRotation in interface PlaceableShape<XSLFShape,XSLFTextParagraph>public void clear()
clear in interface XSLFShapeContainerpublic void addShape(XSLFShape shape)
addShape in interface ShapeContainer<XSLFShape,XSLFTextParagraph>Copyright © 2010 - 2020 Adobe. All Rights Reserved