|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.poi.hslf.usermodel.HSLFShape
org.apache.poi.hslf.usermodel.HSLFGroupShape
public class HSLFGroupShape
Represents a group of shapes.
| Field Summary |
|---|
| Fields inherited from class org.apache.poi.hslf.usermodel.HSLFShape |
|---|
_escherContainer, _fill, _parent, _sheet, logger |
| Constructor Summary | |
|---|---|
|
HSLFGroupShape()
Create a new ShapeGroup. |
protected |
HSLFGroupShape(EscherContainerRecord escherRecord,
ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Create a ShapeGroup object and initialize it from the supplied Record container. |
|
HSLFGroupShape(ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Create a new ShapeGroup. |
| Method Summary | ||
|---|---|---|
void |
addShape(HSLFShape shape)
Add a shape to this group. |
|
HSLFAutoShape |
createAutoShape()
|
|
HSLFConnectorShape |
createConnector()
|
|
HSLFFreeformShape |
createFreeform()
|
|
HSLFGroupShape |
createGroup()
|
|
HSLFPictureShape |
createPicture(PictureData pictureData)
|
|
protected EscherContainerRecord |
createSpContainer(boolean isChild)
Create a new ShapeGroup and create an instance of EscherSpgrContainer which represents a group of shapes |
|
HSLFTable |
createTable(int numRows,
int numCols)
|
|
HSLFTextBox |
createTextBox()
|
|
java.awt.Rectangle |
getAnchor()
Returns the anchor (the bounding box rectangle) of this shape group. |
|
|
getEscherChild(int recordId)
|
|
HSLFHyperlink |
getHyperlink()
Returns null - shape groups can't have hyperlinks |
|
java.awt.Rectangle |
getInteriorAnchor()
|
|
java.util.List<HSLFShape> |
getShapes()
|
|
ShapeType |
getShapeType()
Return type of the shape. |
|
java.util.Iterator<HSLFShape> |
iterator()
|
|
void |
moveTo(int x,
int y)
Moves this ShapeGroup to the specified location. |
|
boolean |
removeShape(HSLFShape shape)
|
|
void |
setAnchor(java.awt.Rectangle anchor)
Sets the anchor (the bounding box rectangle) of this shape. |
|
void |
setInteriorAnchor(java.awt.Rectangle anchor)
|
|
| Methods inherited from class org.apache.poi.hslf.usermodel.HSLFShape |
|---|
afterInsert, draw, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFillStyle, getFlipHorizontal, getFlipVertical, getParent, getRotation, getShapeId, getShapeName, getSheet, getSpContainer, isPlaceholder, moveTo, setEscherProperty, setEscherProperty, setFlipHorizontal, setFlipVertical, setRotation, setShapeId, setShapeType, setSheet |
| 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 |
|---|
getParent, getSheet |
| Methods inherited from interface org.apache.poi.sl.usermodel.PlaceableShape |
|---|
getFlipHorizontal, getFlipVertical, getParent, getRotation, setFlipHorizontal, setFlipVertical, setRotation |
| Constructor Detail |
|---|
public HSLFGroupShape()
public HSLFGroupShape(ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
parent - the parent of the shape
protected HSLFGroupShape(EscherContainerRecord escherRecord,
ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
escherRecord - EscherSpContainer container which holds information about this shapeparent - the parent of the shape| Method Detail |
|---|
public void setAnchor(java.awt.Rectangle anchor)
setAnchor in interface PlaceableShape<HSLFShape,HSLFTextParagraph>setAnchor in class HSLFShapeanchor - new anchorpublic void setInteriorAnchor(java.awt.Rectangle anchor)
setInteriorAnchor in interface GroupShape<HSLFShape,HSLFTextParagraph>public java.awt.Rectangle getInteriorAnchor()
getInteriorAnchor in interface GroupShape<HSLFShape,HSLFTextParagraph>protected EscherContainerRecord createSpContainer(boolean isChild)
EscherSpgrContainer which represents a group of shapes
createSpContainer in class HSLFShapepublic void addShape(HSLFShape shape)
addShape in interface ShapeContainer<HSLFShape,HSLFTextParagraph>shape - - the Shape to add
public void moveTo(int x,
int y)
ShapeGroup to the specified location.
x - the x coordinate of the top left corner of the shape in new locationy - the y coordinate of the top left corner of the shape in new locationpublic java.awt.Rectangle getAnchor()
getAnchor in interface PlaceableShape<HSLFShape,HSLFTextParagraph>getAnchor in interface Shape<HSLFShape,HSLFTextParagraph>getAnchor in class HSLFShapepublic ShapeType getShapeType()
ShapeType.NOT_PRIMITIVE
getShapeType in class HSLFShapeRecordTypespublic HSLFHyperlink getHyperlink()
null - shape groups can't have hyperlinks
getHyperlink in class HSLFShapenull.public <T extends EscherRecord> T getEscherChild(int recordId)
getEscherChild in class HSLFShapepublic java.util.Iterator<HSLFShape> iterator()
iterator in interface java.lang.Iterable<HSLFShape>public boolean removeShape(HSLFShape shape)
removeShape in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public java.util.List<HSLFShape> getShapes()
getShapes in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFTextBox createTextBox()
createTextBox in interface HSLFShapeContainercreateTextBox in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFAutoShape createAutoShape()
createAutoShape in interface HSLFShapeContainercreateAutoShape in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFFreeformShape createFreeform()
createFreeform in interface HSLFShapeContainercreateFreeform in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFConnectorShape createConnector()
createConnector in interface HSLFShapeContainercreateConnector in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFGroupShape createGroup()
createGroup in interface HSLFShapeContainercreateGroup in interface ShapeContainer<HSLFShape,HSLFTextParagraph>public HSLFPictureShape createPicture(PictureData pictureData)
createPicture in interface HSLFShapeContainercreatePicture in interface ShapeContainer<HSLFShape,HSLFTextParagraph>
public HSLFTable createTable(int numRows,
int numCols)
createTable in interface ShapeContainer<HSLFShape,HSLFTextParagraph>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||