|
||||||||||
| 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 |
|---|
EMU_PER_CENTIMETER, EMU_PER_INCH, EMU_PER_POINT, MASTER_DPI, PIXEL_DPI, POINT_DPI |
| Constructor Summary | |
|---|---|
ShapeGroup()
Create a new ShapeGroup. |
|
| Method Summary | |
|---|---|
void |
addShape(Shape shape)
Add a shape to this group. |
void |
draw(java.awt.Graphics2D graphics)
|
java.awt.geom.Rectangle2D |
getAnchor2D()
Returns the anchor (the bounding box rectangle) of this shape group. |
java.awt.geom.Rectangle2D |
getCoordinates()
Gets the coordinate space of this 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. |
void |
setCoordinates(java.awt.geom.Rectangle2D anchor)
Sets the coordinate space of this group. |
| Methods inherited from class org.apache.poi.hslf.model.Shape |
|---|
getAnchor, getEscherChild, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getLogicalAnchor2D, getOutline, getParent, getShapeId, getShapeName, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setShapeId, setShapeType, setSheet |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShapeGroup()
| Method Detail |
|---|
public Shape[] getShapes()
public void setAnchor(java.awt.Rectangle anchor)
anchor - new anchorpublic void setCoordinates(java.awt.geom.Rectangle2D anchor)
anchor - the coordinate space of this grouppublic java.awt.geom.Rectangle2D getCoordinates()
public void addShape(Shape shape)
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.geom.Rectangle2D getAnchor2D()
getAnchor2D in class Shapepublic int getShapeType()
ShapeTypes.NotPrimitive
getShapeType in class ShapeRecordTypespublic Hyperlink getHyperlink()
null - shape groups can't have hyperlinks
getHyperlink in class Shapenull.public void draw(java.awt.Graphics2D graphics)
draw in class Shape
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||