public class HSLFGroupShape extends HSLFShape implements HSLFShapeContainer, GroupShape<HSLFShape,HSLFTextParagraph>
| Constructor and Description |
|---|
HSLFGroupShape()
Create a new ShapeGroup.
|
HSLFGroupShape(ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Create a new ShapeGroup.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addShape(HSLFShape shape)
Add a shape to this group.
|
HSLFAutoShape |
createAutoShape()
create a new shape with a predefined geometry and add it to this shape container
|
HSLFConnectorShape |
createConnector()
create a connector
|
HSLFFreeformShape |
createFreeform()
create a new shape with a custom geometry
|
HSLFGroupShape |
createGroup()
create a group of shapes belonging to this container
|
HSLFObjectShape |
createOleShape(PictureData pictureData)
Create a new OLE object shape with the given pictureData as preview image
|
HSLFPictureShape |
createPicture(PictureData pictureData)
create a picture belonging to this container
|
HSLFTable |
createTable(int numRows,
int numCols)
Create a new Table of the given number of rows and columns
|
HSLFTextBox |
createTextBox()
create a text box
|
Rectangle2D |
getAnchor()
Returns the anchor (the bounding box rectangle) of this shape group.
|
<T extends EscherRecord> |
getEscherChild(int recordId) |
HSLFHyperlink |
getHyperlink()
Returns
null - shape groups can't have hyperlinks |
Rectangle2D |
getInteriorAnchor()
Gets the coordinate space of this group.
|
List<HSLFShape> |
getShapes()
Returns an list containing all of the elements in this container in proper
sequence (from first to last element).
|
ShapeType |
getShapeType()
Return type of the shape.
|
Iterator<HSLFShape> |
iterator() |
boolean |
removeShape(HSLFShape shape)
Removes the specified shape from this sheet, if it is present
(optional operation).
|
void |
setAnchor(Rectangle2D anchor)
Sets the anchor (the bounding box rectangle) of this shape.
|
void |
setInteriorAnchor(Rectangle2D anchor)
Sets the coordinate space of this group.
|
draw, getClientDataRecord, getEscherChild, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFillStyle, getFlipHorizontal, getFlipVertical, getParent, getRotation, getShapeId, getShapeName, getSheet, getSpContainer, isPlaceholder, moveTo, setEscherProperty, setEscherProperty, setFlipHorizontal, setFlipVertical, setRotation, setShapeId, setShapeType, setSheetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdraw, getParent, getShapeId, getShapeName, getSheetforEach, spliteratorgetFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setFlipHorizontal, setFlipVertical, setRotationpublic HSLFGroupShape()
public HSLFGroupShape(ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
parent - the parent of the shapepublic void setAnchor(Rectangle2D anchor)
HSLFShapesetAnchor in interface PlaceableShape<HSLFShape,HSLFTextParagraph>setAnchor in class HSLFShapeanchor - new anchorpublic void setInteriorAnchor(Rectangle2D anchor)
GroupShapesetInteriorAnchor in interface GroupShape<HSLFShape,HSLFTextParagraph>anchor - the coordinate space of this grouppublic Rectangle2D getInteriorAnchor()
GroupShapegetInteriorAnchor in interface GroupShape<HSLFShape,HSLFTextParagraph>public void addShape(HSLFShape shape)
addShape in interface ShapeContainer<HSLFShape,HSLFTextParagraph>shape - - the Shape to addpublic Rectangle2D getAnchor()
getAnchor in interface PlaceableShape<HSLFShape,HSLFTextParagraph>getAnchor in interface Shape<HSLFShape,HSLFTextParagraph>getAnchor in class HSLFShapepublic ShapeType getShapeType()
ShapeType.NOT_PRIMITIVEgetShapeType in class HSLFShapepublic HSLFHyperlink getHyperlink()
null - shape groups can't have hyperlinksnull.public <T extends EscherRecord> T getEscherChild(int recordId)
getEscherChild in class HSLFShapepublic boolean removeShape(HSLFShape shape)
ShapeContainerremoveShape in interface ShapeContainer<HSLFShape,HSLFTextParagraph>shape - the shape to be removed from this sheet, if presentpublic List<HSLFShape> getShapes()
ShapeContainergetShapes in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFTextBox createTextBox()
ShapeContainercreateTextBox in interface HSLFShapeContainercreateTextBox in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFAutoShape createAutoShape()
ShapeContainercreateAutoShape in interface HSLFShapeContainercreateAutoShape in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFFreeformShape createFreeform()
ShapeContainercreateFreeform in interface HSLFShapeContainercreateFreeform in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFConnectorShape createConnector()
ShapeContainercreateConnector in interface HSLFShapeContainercreateConnector in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFGroupShape createGroup()
ShapeContainercreateGroup in interface HSLFShapeContainercreateGroup in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFPictureShape createPicture(PictureData pictureData)
ShapeContainercreatePicture in interface HSLFShapeContainercreatePicture in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFTable createTable(int numRows, int numCols)
ShapeContainercreateTable in interface ShapeContainer<HSLFShape,HSLFTextParagraph>numRows - the number of rowsnumCols - the number of columnspublic HSLFObjectShape createOleShape(PictureData pictureData)
ShapeContainercreateOleShape in interface HSLFShapeContainercreateOleShape in interface ShapeContainer<HSLFShape,HSLFTextParagraph>pictureData - the preview imageCopyright © 2010 - 2020 Adobe. All Rights Reserved