|
||||||||||
| 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.
| Method Summary | |
|---|---|
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(int pictureIndex)
create a picture belonging to this container |
XSLFTextBox |
createTextBox()
create a text box |
void |
draw(java.awt.Graphics2D graphics)
Draw this shape into the supplied canvas |
java.awt.geom.Rectangle2D |
getAnchor()
|
boolean |
getFlipHorizontal()
Whether the shape is horizontally flipped |
boolean |
getFlipVertical()
Whether the shape is vertically flipped |
java.awt.geom.Rectangle2D |
getInteriorAnchor()
|
double |
getRotation()
Rotation angle in degrees |
int |
getShapeId()
Returns a unique identifier for this shape within the current document. |
java.lang.String |
getShapeName()
|
XSLFShape[] |
getShapes()
Returns an array containing all of the elements in this container in proper sequence (from first to last element). |
org.openxmlformats.schemas.presentationml.x2006.main.CTGroupShape |
getXmlObject()
|
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)
|
void |
setRotation(double theta)
Rotate this shape. |
| Methods inherited from class org.apache.poi.xslf.usermodel.XSLFShape |
|---|
applyTransform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public org.openxmlformats.schemas.presentationml.x2006.main.CTGroupShape getXmlObject()
getXmlObject in class XSLFShapepublic java.awt.geom.Rectangle2D getAnchor()
getAnchor in class XSLFShapepublic void setAnchor(java.awt.geom.Rectangle2D anchor)
setAnchor in class XSLFShapeanchor - the position of this shape within the drawing canvas.
The coordinates are expressed in pointspublic java.awt.geom.Rectangle2D getInteriorAnchor()
public void setInteriorAnchor(java.awt.geom.Rectangle2D anchor)
anchor - the coordinates of the child extents rectangle
used for calculations of grouping, scaling, and rotation
behavior of shapes placed within a group.public XSLFShape[] getShapes()
XSLFShapeContainer
getShapes in interface XSLFShapeContainerpublic java.util.Iterator<XSLFShape> iterator()
iterator in interface java.lang.Iterable<XSLFShape>public boolean removeShape(XSLFShape xShape)
removeShape in interface XSLFShapeContainerxShape - shape to be removed from this sheet, if present
public java.lang.String getShapeName()
getShapeName in class XSLFShapepublic int getShapeId()
XSLFShapeIf multiple objects within the same document share the same id attribute value, then the document shall be considered non-conformant.
getShapeId in class XSLFShapepublic XSLFAutoShape createAutoShape()
XSLFShapeContainer
createAutoShape in interface XSLFShapeContainerpublic XSLFFreeformShape createFreeform()
XSLFShapeContainer
createFreeform in interface XSLFShapeContainerpublic XSLFTextBox createTextBox()
XSLFShapeContainer
createTextBox in interface XSLFShapeContainerpublic XSLFConnectorShape createConnector()
XSLFShapeContainer
createConnector in interface XSLFShapeContainerpublic XSLFGroupShape createGroup()
XSLFShapeContainer
createGroup in interface XSLFShapeContainerpublic XSLFPictureShape createPicture(int pictureIndex)
XSLFShapeContainer
createPicture in interface XSLFShapeContainerpublic void setFlipHorizontal(boolean flip)
setFlipHorizontal in class XSLFShapeflip - whether the shape is horizontally flippedpublic void setFlipVertical(boolean flip)
XSLFShape
setFlipVertical in class XSLFShapeflip - whether the shape is vertically flippedpublic boolean getFlipHorizontal()
XSLFShape
getFlipHorizontal in class XSLFShapepublic boolean getFlipVertical()
XSLFShape
getFlipVertical in class XSLFShapepublic void setRotation(double theta)
XSLFShapePositive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).
setRotation in class XSLFShapetheta - the rotation angle in degrees.public double getRotation()
XSLFShapePositive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).
getRotation in class XSLFShapepublic void draw(java.awt.Graphics2D graphics)
XSLFShape
draw in class XSLFShapegraphics - the graphics to draw intopublic void clear()
clear in interface XSLFShapeContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||