public class HSSFShapeGroup extends HSSFShape implements HSSFShapeContainer
FILL__FILLCOLOR_DEFAULT, LINESTYLE__COLOR_DEFAULT, LINESTYLE_DASHDOTDOTSYS, LINESTYLE_DASHDOTGEL, LINESTYLE_DASHDOTSYS, LINESTYLE_DASHGEL, LINESTYLE_DASHSYS, LINESTYLE_DEFAULT, LINESTYLE_DOTGEL, LINESTYLE_DOTSYS, LINESTYLE_LONGDASHDOTDOTGEL, LINESTYLE_LONGDASHDOTGEL, LINESTYLE_LONGDASHGEL, LINESTYLE_NONE, LINESTYLE_SOLID, LINEWIDTH_DEFAULT, LINEWIDTH_ONE_PT, NO_FILL_DEFAULT, NO_FILLHITTEST_FALSE, NO_FILLHITTEST_TRUE
Constructor and Description |
---|
HSSFShapeGroup(EscherContainerRecord spgrContainer,
ObjRecord objRecord) |
HSSFShapeGroup(HSSFShape parent,
HSSFAnchor anchor) |
Modifier and Type | Method and Description |
---|---|
void |
addShape(HSSFShape shape)
add shape to the list of child records
|
void |
clear() |
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<HSSFShape> |
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.
|
Iterator<HSSFShape> |
iterator() |
boolean |
removeShape(HSSFShape shape)
remove first level shapes
|
void |
setCoordinates(int x1,
int y1,
int x2,
int y2)
Sets the coordinate space of this group.
|
getAnchor, getFillColor, getLineStyle, getLineStyleColor, getLineWidth, getOptRecord, getParent, getPatriarch, getRotationDegree, getShapeName, isFlipHorizontal, isFlipVertical, isNoFill, setAnchor, setFillColor, setFillColor, setFlipHorizontal, setFlipVertical, setLineStyle, setLineStyleColor, setLineStyleColor, setLineWidth, setNoFill, setRotationDegree
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public HSSFShapeGroup(EscherContainerRecord spgrContainer, ObjRecord objRecord)
public HSSFShapeGroup(HSSFShape parent, HSSFAnchor anchor)
public HSSFShapeGroup createGroup(HSSFChildAnchor anchor)
anchor
- the position of the new group.public void addShape(HSSFShape shape)
HSSFShapeContainer
addShape
in interface HSSFShapeContainer
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<HSSFShape> getChildren()
getChildren
in interface HSSFShapeContainer
public void setCoordinates(int x1, int y1, int x2, int y2)
setCoordinates
in interface HSSFShapeContainer
public void clear()
clear
in interface HSSFShapeContainer
public int getX1()
getX1
in interface HSSFShapeContainer
public int getY1()
getY1
in interface HSSFShapeContainer
public int getX2()
getX2
in interface HSSFShapeContainer
public int getY2()
getY2
in interface HSSFShapeContainer
public int countOfAllChildren()
countOfAllChildren
in class HSSFShape
public boolean removeShape(HSSFShape shape)
HSSFShapeContainer
removeShape
in interface HSSFShapeContainer
shape
- to be removedCopyright © 2010 - 2020 Adobe. All Rights Reserved