|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.xslf.usermodel.XSLFShape
org.apache.poi.xslf.usermodel.XSLFGroupShape
@Beta public class XSLFGroupShape
Represents a group shape that consists of many shapes grouped together.
Field Summary |
---|
Fields inherited from class org.apache.poi.xslf.usermodel.XSLFShape |
---|
PML_NS |
Constructor Summary | |
---|---|
protected |
XSLFGroupShape(org.openxmlformats.schemas.presentationml.x2006.main.CTGroupShape shape,
XSLFSheet sheet)
|
Method Summary | |
---|---|
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 |
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 |
java.awt.geom.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 |
protected org.openxmlformats.schemas.drawingml.x2006.main.CTGroupShapeProperties |
getGrpSpPr()
|
java.awt.geom.Rectangle2D |
getInteriorAnchor()
Gets the coordinate space of this group. |
double |
getRotation()
Rotation angle in degrees |
protected org.openxmlformats.schemas.drawingml.x2006.main.CTGroupTransform2D |
getSafeXfrm()
|
java.util.List<XSLFShape> |
getShapes()
Returns an list containing all of the elements in this container in proper sequence (from first to last element). |
protected org.openxmlformats.schemas.drawingml.x2006.main.CTGroupTransform2D |
getXfrm()
|
java.util.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(java.awt.geom.Rectangle2D anchor)
|
void |
setFlipHorizontal(boolean flip)
|
void |
setFlipVertical(boolean flip)
Whether the shape is vertically flipped |
void |
setInteriorAnchor(java.awt.geom.Rectangle2D anchor)
Sets the coordinate space of this group. |
void |
setRotation(double theta)
Rotate this shape. |
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFShape |
---|
draw, fetchShapeProperty, getBgPr, getBgRef, getChild, getCNvPr, getCTPlaceholder, getFillPaint, getParent, getPlaceholder, getShapeId, getShapeName, getShapeProperties, getSheet, getSpStyle, getXmlObject, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectProperty, setParent, setPlaceholder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.poi.sl.usermodel.Shape |
---|
draw, getParent, getSheet |
Methods inherited from interface org.apache.poi.sl.usermodel.PlaceableShape |
---|
getParent, getSheet |
Constructor Detail |
---|
protected XSLFGroupShape(org.openxmlformats.schemas.presentationml.x2006.main.CTGroupShape shape, XSLFSheet sheet)
Method Detail |
---|
protected org.openxmlformats.schemas.drawingml.x2006.main.CTGroupShapeProperties getGrpSpPr()
getGrpSpPr
in class XSLFShape
protected org.openxmlformats.schemas.drawingml.x2006.main.CTGroupTransform2D getSafeXfrm()
protected org.openxmlformats.schemas.drawingml.x2006.main.CTGroupTransform2D getXfrm()
public java.awt.geom.Rectangle2D getAnchor()
Shape
getAnchor
in interface PlaceableShape<XSLFShape,XSLFTextParagraph>
getAnchor
in interface Shape<XSLFShape,XSLFTextParagraph>
public void setAnchor(java.awt.geom.Rectangle2D anchor)
setAnchor
in interface PlaceableShape<XSLFShape,XSLFTextParagraph>
anchor
- the position of this shape within the drawing canvas.
The coordinates are expressed in pointspublic java.awt.geom.Rectangle2D getInteriorAnchor()
GroupShape
getInteriorAnchor
in interface GroupShape<XSLFShape,XSLFTextParagraph>
public void setInteriorAnchor(java.awt.geom.Rectangle2D anchor)
GroupShape
setInteriorAnchor
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 java.util.List<XSLFShape> getShapes()
ShapeContainer
getShapes
in interface ShapeContainer<XSLFShape,XSLFTextParagraph>
public java.util.Iterator<XSLFShape> iterator()
iterator
in interface java.lang.Iterable<XSLFShape>
public boolean removeShape(XSLFShape xShape)
removeShape
in interface ShapeContainer<XSLFShape,XSLFTextParagraph>
xShape
- the shape to be removed from this sheet, if present
public XSLFAutoShape createAutoShape()
ShapeContainer
createAutoShape
in interface ShapeContainer<XSLFShape,XSLFTextParagraph>
createAutoShape
in interface XSLFShapeContainer
public XSLFFreeformShape createFreeform()
ShapeContainer
createFreeform
in interface ShapeContainer<XSLFShape,XSLFTextParagraph>
createFreeform
in interface XSLFShapeContainer
public XSLFTextBox createTextBox()
ShapeContainer
createTextBox
in interface ShapeContainer<XSLFShape,XSLFTextParagraph>
createTextBox
in interface XSLFShapeContainer
public XSLFConnectorShape createConnector()
ShapeContainer
createConnector
in interface ShapeContainer<XSLFShape,XSLFTextParagraph>
createConnector
in interface XSLFShapeContainer
public XSLFGroupShape createGroup()
ShapeContainer
createGroup
in interface ShapeContainer<XSLFShape,XSLFTextParagraph>
createGroup
in interface XSLFShapeContainer
public XSLFPictureShape createPicture(PictureData pictureData)
ShapeContainer
createPicture
in interface ShapeContainer<XSLFShape,XSLFTextParagraph>
createPicture
in interface XSLFShapeContainer
public XSLFTable createTable()
public XSLFTable createTable(int numRows, int numCols)
ShapeContainer
createTable
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)
PlaceableShape
setFlipVertical
in interface PlaceableShape<XSLFShape,XSLFTextParagraph>
flip
- whether the shape is vertically flippedpublic boolean getFlipHorizontal()
PlaceableShape
getFlipHorizontal
in interface PlaceableShape<XSLFShape,XSLFTextParagraph>
public boolean getFlipVertical()
PlaceableShape
getFlipVertical
in interface PlaceableShape<XSLFShape,XSLFTextParagraph>
public void setRotation(double theta)
PlaceableShape
Positive 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()
PlaceableShape
Positive 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 XSLFShapeContainer
public void addShape(XSLFShape shape)
addShape
in interface ShapeContainer<XSLFShape,XSLFTextParagraph>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |