_escherContainer, _fill, _parent, _sheet, EMU_PER_CENTIMETER, EMU_PER_INCH, EMU_PER_POINT, logger, MASTER_DPI, PIXEL_DPI, POINT_DPI| Modifier | Constructor and 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 and 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(Graphics2D graphics) |
Rectangle2D |
getAnchor2D()
Returns the anchor (the bounding box rectangle) of this shape group.
|
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(Rectangle anchor)
Sets the anchor (the bounding box rectangle) of this shape.
|
void |
setCoordinates(Rectangle2D anchor)
Sets the coordinate space of this group.
|
afterInsert, getAnchor, getEscherChild, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getLogicalAnchor2D, getOutline, getParent, getShapeId, getShapeName, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, 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(Rectangle anchor)
anchor - new anchorpublic void setCoordinates(Rectangle2D anchor)
anchor - the coordinate space of this grouppublic 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 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 void draw(Graphics2D graphics)
Copyright © 2020. All rights reserved.