Package loci.poi.hssf.usermodel
Class HSSFShapeGroup
java.lang.Object
loci.poi.hssf.usermodel.HSSFShape
loci.poi.hssf.usermodel.HSSFShapeGroup
- All Implemented Interfaces:
HSSFShapeContainer
A shape group may contain other shapes. It was no actual form on the
sheet.
- Author:
- Glen Stampoultzis (glens at apache.org)
-
Field Summary
Fields inherited from class loci.poi.hssf.usermodel.HSSFShape
LINESTYLE_DASHDOTDOTSYS, LINESTYLE_DASHDOTGEL, LINESTYLE_DASHDOTSYS, LINESTYLE_DASHGEL, LINESTYLE_DASHSYS, LINESTYLE_DOTGEL, LINESTYLE_DOTSYS, LINESTYLE_LONGDASHDOTDOTGEL, LINESTYLE_LONGDASHDOTGEL, LINESTYLE_LONGDASHGEL, LINESTYLE_NONE, LINESTYLE_SOLID, LINEWIDTH_DEFAULT, LINEWIDTH_ONE_PT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCount of all children and their childrens children.createGroup(HSSFChildAnchor anchor) Create another group under this group.createPicture(HSSFChildAnchor anchor, int pictureIndex) Creates a picture.createPolygon(HSSFChildAnchor anchor) Creates a polygoncreateShape(HSSFChildAnchor anchor) Create a new simple shape under this group.createTextbox(HSSFChildAnchor anchor) Create a new textbox under this group.Return all children contained by this shape.intgetX1()The top left x coordinate of this group.intgetX2()The bottom right x coordinate of this group.intgetY1()The top left y coordinate of this group.intgetY2()The bottom right y coordinate of this group.voidsetCoordinates(int x1, int y1, int x2, int y2) Sets the coordinate space of this group.Methods inherited from class loci.poi.hssf.usermodel.HSSFShape
getAnchor, getFillColor, getLineStyle, getLineStyleColor, getLineWidth, getParent, isNoFill, setAnchor, setFillColor, setFillColor, setLineStyle, setLineStyleColor, setLineStyleColor, setLineWidth, setNoFill
-
Constructor Details
-
HSSFShapeGroup
-
-
Method Details
-
createGroup
Create another group under this group.- Parameters:
anchor- the position of the new group.- Returns:
- the group
-
createShape
Create a new simple shape under this group.- Parameters:
anchor- the position of the shape.- Returns:
- the shape
-
createTextbox
Create a new textbox under this group.- Parameters:
anchor- the position of the shape.- Returns:
- the textbox
-
createPolygon
Creates a polygon- Parameters:
anchor- the client anchor describes how this group is attached to the sheet.- Returns:
- the newly created shape.
-
createPicture
Creates a picture.- Parameters:
anchor- the client anchor describes how this group is attached to the sheet.- Returns:
- the newly created shape.
-
getChildren
Return all children contained by this shape.- Specified by:
getChildrenin interfaceHSSFShapeContainer- Returns:
- Any children contained by this shape.
-
setCoordinates
public void setCoordinates(int x1, int y1, int x2, int y2) Sets the coordinate space of this group. All children are contrained to these coordinates. -
getX1
public int getX1()The top left x coordinate of this group. -
getY1
public int getY1()The top left y coordinate of this group. -
getX2
public int getX2()The bottom right x coordinate of this group. -
getY2
public int getY2()The bottom right y coordinate of this group. -
countOfAllChildren
public int countOfAllChildren()Count of all children and their childrens children.- Overrides:
countOfAllChildrenin classHSSFShape
-