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
|
protected void |
afterRemove(HSSFPatriarch patriarch)
remove escher container from the patriarch.escherAggregate
remove obj, textObj and note records if it's necessary
in case of ShapeGroup remove all contained shapes
|
void |
clear() |
protected HSSFShape |
cloneShape() |
protected HSSFShape |
cloneShape(HSSFPatriarch patriarch) |
int |
countOfAllChildren()
Count of all children and their childrens children.
|
HSSFChartShape |
createChart(HSSFChildAnchor anchor,
HSSFChart chart) |
HSSFShapeGroup |
createGroup(HSSFChildAnchor anchor)
Create another group under this group.
|
protected ObjRecord |
createObjRecord() |
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.
|
protected EscherContainerRecord |
createSpContainer() |
HSSFTextbox |
createTextbox(HSSFChildAnchor anchor)
Create a new textbox under this group.
|
java.util.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.
|
java.util.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, getEscherContainer, getFillColor, getLineStyle, getLineStyleColor, getLineWidth, getObjRecord, getOptRecord, getParent, getPatriarch, getRotationDegree, isFlipHorizontal, isFlipVertical, isNoFill, setAnchor, setFillColor, setFillColor, setFlipHorizontal, setFlipVertical, setLineStyle, setLineStyleColor, setLineStyleColor, setLineWidth, setNoFill, setParent, setPatriarch, setPropertyValue, setRotationDegree
public HSSFShapeGroup(EscherContainerRecord spgrContainer, ObjRecord objRecord)
public HSSFShapeGroup(HSSFShape parent, HSSFAnchor anchor)
protected EscherContainerRecord createSpContainer()
createSpContainer
in class HSSFShape
protected ObjRecord createObjRecord()
createObjRecord
in class HSSFShape
protected void afterRemove(HSSFPatriarch patriarch)
HSSFShape
afterRemove
in class HSSFShape
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 java.util.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
protected HSSFShape cloneShape()
cloneShape
in class HSSFShape
protected HSSFShape cloneShape(HSSFPatriarch patriarch)
public boolean removeShape(HSSFShape shape)
HSSFShapeContainer
removeShape
in interface HSSFShapeContainer
shape
- to be removedpublic java.util.Iterator<HSSFShape> iterator()
iterator
in interface java.lang.Iterable<HSSFShape>
public HSSFChartShape createChart(HSSFChildAnchor anchor, HSSFChart chart)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.