|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hslf.model.Shape
org.apache.poi.hslf.model.ShapeGroup
public class ShapeGroup
Represents a group of shapes.
Field Summary |
---|
Fields inherited from class org.apache.poi.hslf.model.Shape |
---|
_escherContainer, _parent, _sheet, EMU_PER_CENTIMETER, EMU_PER_INCH, EMU_PER_POINT, logger, MASTER_DPI, PIXEL_DPI, POINT_DPI |
Constructor Summary | |
---|---|
|
ShapeGroup()
Create a new ShapeGroup. |
protected |
ShapeGroup(EscherContainerRecord escherRecord,
Shape parent)
Create a ShapeGroup object and initilize it from the supplied Record container. |
Method Summary | |
---|---|
void |
addShape(Shape shape)
Add a shape to this group. |
protected EscherContainerRecord |
createSpContainer(boolean isChild)
Create a new ShapeGroup and create an instance of EscherSpgrContainer which represents a group of shapes |
java.awt.Rectangle |
getAnchor()
Returns the anchor (the bounding box rectangle) of this shape group. |
Hyperlink |
getHyperlink()
Returns null - shape groups can't have hyperlinks |
Shape[] |
getShapes()
|
int |
getShapeType()
Return type of the shape. |
void |
moveTo(int x,
int y)
Moves this ShapeGroup to the specified location. |
void |
setAnchor(java.awt.Rectangle anchor)
Sets the anchor (the bounding box rectangle) of this shape. |
Methods inherited from class org.apache.poi.hslf.model.Shape |
---|
afterInsert, getColor, getEscherChild, getEscherProperty, getFill, getParent, getShapeName, getSheet, getSpContainer, setEscherProperty, setShapeType, setSheet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShapeGroup()
protected ShapeGroup(EscherContainerRecord escherRecord, Shape parent)
escherRecord
- EscherSpContainer
container which holds information about this shapeparent
- the parent of the shapeMethod Detail |
---|
public Shape[] getShapes()
public void setAnchor(java.awt.Rectangle anchor)
setAnchor
in class Shape
anchor
- new anchorprotected EscherContainerRecord createSpContainer(boolean isChild)
EscherSpgrContainer
which represents a group of shapes
createSpContainer
in class Shape
public void addShape(Shape shape)
shape
- - the Shape to addpublic void moveTo(int x, int y)
ShapeGroup
to the specified location.
moveTo
in class Shape
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 class Shape
public int getShapeType()
ShapeTypes.NotPrimitive
getShapeType
in class Shape
RecordTypes
public Hyperlink getHyperlink()
null
- shape groups can't have hyperlinks
getHyperlink
in class Shape
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |