public final class HSSFPatriarch extends java.lang.Object implements HSSFShapeContainer, Drawing
Modifier and Type | Method and Description |
---|---|
protected EscherAggregate |
_getBoundAggregate()
Returns the aggregate escher record we're bound to
|
void |
addShape(HSSFShape shape)
add a shape to this drawing
|
void |
clear()
remove all shapes inside patriarch
|
boolean |
containsChart()
Does this HSSFPatriarch contain a chart?
|
int |
countOfAllChildren()
Total count of all children and their children's children.
|
HSSFClientAnchor |
createAnchor(int dx1,
int dy1,
int dx2,
int dy2,
int col1,
int row1,
int col2,
int row2)
Creates a new client anchor and sets the top-left and bottom-right
coordinates of the anchor.
|
HSSFComment |
createCellComment(ClientAnchor anchor)
Creates a comment.
|
Chart |
createChart(ClientAnchor anchor)
Creates a chart.
|
HSSFChartShape |
createChart(HSSFAnchor anchor,
HSSFChart chart) |
HSSFComment |
createComment(HSSFAnchor anchor)
Constructs a cell comment.
|
HSSFShapeGroup |
createGroup(HSSFClientAnchor anchor)
Creates a new group record stored under this patriarch.
|
HSSFPicture |
createPicture(ClientAnchor anchor,
int pictureIndex)
Creates a picture.
|
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.
|
void |
deleteChart(ZssChartX chartX)
Remove an existing chart
|
void |
deletePicture(Picture picture)
Remove an existing picture
|
java.util.List<HSSFShape> |
getChildren()
Returns a unmodifiable list of all shapes contained by the patriarch.
|
protected HSSFSheet |
getSheet() |
int |
getX1() |
int |
getX2() |
int |
getY1() |
int |
getY2() |
boolean |
isEmpty() |
java.util.Iterator<HSSFShape> |
iterator() |
void |
moveChart(ZssChartX chart,
ClientAnchor anchor) |
void |
movePicture(Picture pic,
ClientAnchor anchor) |
protected void |
preSerialize()
check if any shapes contain wrong data
At now(13.08.2010) check if patriarch contains 2 or more comments with same coordinates
|
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.
|
protected void preSerialize()
public boolean removeShape(HSSFShape shape)
HSSFShapeContainer
removeShape
in interface HSSFShapeContainer
shape
- to be removedpublic HSSFShapeGroup createGroup(HSSFClientAnchor anchor)
anchor
- the client anchor describes how this group is attached
to the sheet.public HSSFSimpleShape createSimpleShape(HSSFClientAnchor anchor)
anchor
- the client anchor describes how this group is attached
to the sheet.public HSSFPicture createPicture(HSSFClientAnchor anchor, int pictureIndex)
anchor
- the client anchor describes how this group is attached
to the sheet.pictureIndex
- - pointer to the byte array saved inside workbook in escher bse recordpublic HSSFPicture createPicture(ClientAnchor anchor, int pictureIndex)
Drawing
createPicture
in interface Drawing
anchor
- the client anchor describes how this picture is
attached to the sheet.pictureIndex
- the index of the picture in the workbook collection
of pictures.public HSSFPolygon createPolygon(HSSFClientAnchor anchor)
anchor
- the client anchor describes how this group is attached
to the sheet.public HSSFTextbox createTextbox(HSSFClientAnchor anchor)
anchor
- the client anchor describes how this group is attached
to the sheet.public HSSFComment createComment(HSSFAnchor anchor)
anchor
- the client anchor describes how this comment is attached
to the sheet.public HSSFComment createCellComment(ClientAnchor anchor)
Drawing
createCellComment
in interface Drawing
anchor
- the client anchor describes how this comment is attached
to the sheet.public java.util.List<HSSFShape> getChildren()
getChildren
in interface HSSFShapeContainer
@Internal public void addShape(HSSFShape shape)
addShape
in interface HSSFShapeContainer
public int countOfAllChildren()
public void setCoordinates(int x1, int y1, int x2, int y2)
setCoordinates
in interface HSSFShapeContainer
public void clear()
clear
in interface HSSFShapeContainer
public boolean containsChart()
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
protected EscherAggregate _getBoundAggregate()
public HSSFClientAnchor createAnchor(int dx1, int dy1, int dx2, int dy2, int col1, int row1, int col2, int row2)
createAnchor
in interface Drawing
dx1
- the x coordinate in EMU within the first cell.dy1
- the y coordinate in EMU within the first cell.dx2
- the x coordinate in EMU within the second cell.dy2
- the y coordinate in EMU within the second cell.col1
- the column (0 based) of the first cell.row1
- the row (0 based) of the first cell.col2
- the column (0 based) of the second cell.row2
- the row (0 based) of the second cell.public Chart createChart(ClientAnchor anchor)
Drawing
createChart
in interface Drawing
anchor
- the client anchor describes how this chart is attached to
the sheet.public java.util.Iterator<HSSFShape> iterator()
iterator
in interface java.lang.Iterable<HSSFShape>
protected HSSFSheet getSheet()
public HSSFChartShape createChart(HSSFAnchor anchor, HSSFChart chart)
public void deletePicture(Picture picture)
Drawing
deletePicture
in interface Drawing
picture
- the picture to be removedpublic void movePicture(Picture pic, ClientAnchor anchor)
movePicture
in interface Drawing
public void moveChart(ZssChartX chart, ClientAnchor anchor)
public void deleteChart(ZssChartX chartX)
Drawing
deleteChart
in interface Drawing
chartX
- the chart to be removedCopyright © 2005-2010 Potix Corporation. All Rights Reserved.