public class HSSFShapeGroup extends HSSFShape implements HSSFShapeContainer
Modifier and Type | Field and Description |
---|---|
(package private) List |
shapes |
(package private) int |
x1 |
(package private) int |
x2 |
(package private) int |
y1 |
(package private) int |
y2 |
anchor, fillColor, lineStyle, LINESTYLE_DASHDOTDOTSYS, LINESTYLE_DASHDOTGEL, LINESTYLE_DASHDOTSYS, LINESTYLE_DASHGEL, LINESTYLE_DASHSYS, LINESTYLE_DOTGEL, LINESTYLE_DOTSYS, LINESTYLE_LONGDASHDOTDOTGEL, LINESTYLE_LONGDASHDOTGEL, LINESTYLE_LONGDASHGEL, LINESTYLE_NONE, LINESTYLE_SOLID, lineStyleColor, lineWidth, LINEWIDTH_DEFAULT, LINEWIDTH_ONE_PT, noFill, parent
Constructor and Description |
---|
HSSFShapeGroup(HSSFShape parent,
HSSFAnchor anchor) |
Modifier and Type | Method and Description |
---|---|
int |
countOfAllChildren()
Count of all children and their childrens children.
|
HSSFShapeGroup |
createGroup(HSSFChildAnchor anchor)
Create another group under this group.
|
HSSFPicture |
createPicture(HSSFChildAnchor anchor,
int pictureIndex)
Creates a picture.
|
HSSFPolygon |
createPolygon(HSSFChildAnchor anchor)
Creates a polygon
|
HSSFSimpleShape |
createShape(HSSFChildAnchor anchor)
Create a new simple shape under this group.
|
HSSFTextbox |
createTextbox(HSSFChildAnchor anchor)
Create a new textbox under this group.
|
List |
getChildren()
Return all children contained by this shape.
|
int |
getX1()
The top left x coordinate of this group.
|
int |
getX2()
The bottom right x coordinate of this group.
|
int |
getY1()
The top left y coordinate of this group.
|
int |
getY2()
The bottom right y coordinate of this group.
|
void |
setCoordinates(int x1,
int y1,
int x2,
int y2)
Sets the coordinate space of this group.
|
getAnchor, getFillColor, getLineStyle, getLineStyleColor, getLineWidth, getParent, isNoFill, setAnchor, setFillColor, setFillColor, setLineStyle, setLineStyleColor, setLineStyleColor, setLineWidth, setNoFill
List shapes
int x1
int y1
int x2
int y2
public HSSFShapeGroup(HSSFShape parent, HSSFAnchor anchor)
public HSSFShapeGroup createGroup(HSSFChildAnchor anchor)
anchor
- the position of the new group.public HSSFSimpleShape createShape(HSSFChildAnchor anchor)
anchor
- the position of the shape.public HSSFTextbox createTextbox(HSSFChildAnchor anchor)
anchor
- the position of the shape.public HSSFPolygon createPolygon(HSSFChildAnchor anchor)
anchor
- the client anchor describes how this group is attached
to the sheet.public HSSFPicture createPicture(HSSFChildAnchor anchor, int pictureIndex)
anchor
- the client anchor describes how this group is attached
to the sheet.public List getChildren()
getChildren
in interface HSSFShapeContainer
public void setCoordinates(int x1, int y1, int x2, int y2)
public int getX1()
public int getY1()
public int getX2()
public int getY2()
public int countOfAllChildren()
countOfAllChildren
in class HSSFShape
Copyright © 2015 Open Microscopy Environment