_escherContainer, _fill, _parent, _sheet, EMU_PER_CENTIMETER, EMU_PER_INCH, EMU_PER_POINT, logger, MASTER_DPI, PIXEL_DPI, POINT_DPI| Modifier | Constructor | Description |
|---|---|---|
|
ShapeGroup() |
Create a new ShapeGroup.
|
protected |
ShapeGroup(EscherContainerRecord escherRecord,
Shape parent) |
Create a ShapeGroup object and initilize it from the supplied Record container.
|
| Modifier and Type | Method | Description |
|---|---|---|
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 |
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.
|
<T extends EscherRecord> |
getEscherChild(int recordId) |
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterInsert, getAnchor, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFlipHorizontal, getFlipVertical, getLogicalAnchor2D, getOutline, getParent, getRotation, getShapeId, getShapeName, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setRotation, setShapeId, setShapeType, setSheetpublic ShapeGroup()
protected ShapeGroup(EscherContainerRecord escherRecord, Shape parent)
escherRecord - EscherSpContainer container which holds information about this shapeparent - the parent of the shapepublic 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()
protected EscherContainerRecord createSpContainer(boolean isChild)
EscherSpgrContainer which represents a group of shapescreateSpContainer in class Shapepublic void addShape(Shape shape)
shape - - the Shape to addpublic 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.NotPrimitivegetShapeType in class ShapeRecordTypespublic Hyperlink getHyperlink()
null - shape groups can't have hyperlinksgetHyperlink in class Shapenull.public <T extends EscherRecord> T getEscherChild(int recordId)
getEscherChild in class ShapeCopyright 2018 The Apache Software Foundation or its licensors, as applicable.