|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hssf.usermodel.HSSFPatriarch
public class HSSFPatriarch
The patriarch is the toplevel container for shapes in a sheet. It does little other than act as a container for other shapes and groups.
Method Summary | |
---|---|
protected EscherAggregate |
_getBoundAggregate()
Returns the aggregate escher record we're bound to |
boolean |
containsChart()
Does this HSSFPatriarch contain a chart? (Technically a reference to a chart, since they get stored in a different block of records) FIXME - detect chart in all cases (only seems to work on some charts so far) |
int |
countOfAllChildren()
Total count of all children and their children's children. |
HSSFComment |
createComment(HSSFAnchor anchor)
Constructs a cell comment. |
HSSFShapeGroup |
createGroup(HSSFClientAnchor anchor)
Creates a new group record stored under this patriarch. |
HSSFPicture |
createPicture(HSSFClientAnchor anchor,
int pictureIndex)
Creates a picture. |
HSSFPolygon |
createPolygon(HSSFClientAnchor anchor)
Creates a polygon |
HSSFSimpleShape |
createSimpleShape(HSSFClientAnchor anchor)
Creates a simple shape. |
HSSFTextbox |
createTextbox(HSSFClientAnchor anchor)
Constructs a textbox under the patriarch. |
java.util.List |
getChildren()
Returns a list of all shapes contained by the patriarch. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public HSSFShapeGroup createGroup(HSSFClientAnchor anchor)
createGroup
in interface org.apache.poi.ss.usermodel.Patriarch
anchor
- the client anchor describes how this group is attached
to the sheet.
public HSSFSimpleShape createSimpleShape(HSSFClientAnchor anchor)
createSimpleShape
in interface org.apache.poi.ss.usermodel.Patriarch
anchor
- the client anchor describes how this group is attached
to the sheet.
public HSSFPicture createPicture(HSSFClientAnchor anchor, int pictureIndex)
createPicture
in interface org.apache.poi.ss.usermodel.Patriarch
anchor
- the client anchor describes how this group is attached
to the sheet.
public HSSFPolygon createPolygon(HSSFClientAnchor anchor)
createPolygon
in interface org.apache.poi.ss.usermodel.Patriarch
anchor
- the client anchor describes how this group is attached
to the sheet.
public HSSFTextbox createTextbox(HSSFClientAnchor anchor)
createTextbox
in interface org.apache.poi.ss.usermodel.Patriarch
anchor
- the client anchor describes how this group is attached
to the sheet.
public HSSFComment createComment(HSSFAnchor anchor)
createComment
in interface org.apache.poi.ss.usermodel.Patriarch
anchor
- the client anchor describes how this comment is attached
to the sheet.
public java.util.List getChildren()
getChildren
in interface HSSFShapeContainer
getChildren
in interface org.apache.poi.ss.usermodel.Patriarch
public int countOfAllChildren()
countOfAllChildren
in interface org.apache.poi.ss.usermodel.Patriarch
public void setCoordinates(int x1, int y1, int x2, int y2)
setCoordinates
in interface org.apache.poi.ss.usermodel.Patriarch
public boolean containsChart()
public int getX1()
getX1
in interface org.apache.poi.ss.usermodel.Patriarch
public int getY1()
getY1
in interface org.apache.poi.ss.usermodel.Patriarch
public int getX2()
getX2
in interface org.apache.poi.ss.usermodel.Patriarch
public int getY2()
getY2
in interface org.apache.poi.ss.usermodel.Patriarch
protected EscherAggregate _getBoundAggregate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |