_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(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.
|
afterInsert, getAnchor, getEscherChild, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getLogicalAnchor2D, getOutline, getParent, getShapeId, getShapeName, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setShapeId, setShapeType, setSheet
public 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 Shape
public 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 Shape
public int getShapeType()
ShapeTypes.NotPrimitive
getShapeType
in class Shape
RecordTypes
public Hyperlink getHyperlink()
null
- shape groups can't have hyperlinksgetHyperlink
in class Shape
null
.Copyright © 2005-2010 Potix Corporation. All Rights Reserved.