| Modifier and Type | Field and Description |
|---|---|
| private EscherAggregate | _boundAggregate
The EscherAggregate we have been bound to. |
| private final EscherContainerRecord | |
| private final List | |
| private final HSSFSheet | |
| private final EscherSpgrRecord |
| Access | Constructor and Description |
|---|---|
| pack-priv | HSSFPatriarch(HSSFSheet
the sheet this patriarch is stored in. sheet, EscherAggregate -low level representation of all binary data inside sheet boundAggregate)Creates the patriarch. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addShape(HSSFShape shape)
Implements org. add a shape to this drawing |
| pack-priv void | |
| pack-priv void | |
| public void | clear()
Implements org. remove all shapes inside patriarch |
| public boolean | |
| public int | Returns: count of shapes including shapes inside shape groupsTotal count of all children and their children's children. |
| public HSSFClientAnchor | Returns: the newly created client anchorthe x coordinate in EMU within the first cell. dx1, int the y coordinate in EMU within the first cell. dy1, int the x coordinate in EMU within the second cell. dx2, int the y coordinate in EMU within the second cell. dy2, int the column (0 based) of the first cell. col1, int the row (0 based) of the first cell. row1, int the column (0 based) of the second cell. col2, int the row (0 based) of the second cell. row2)Implements org. Creates a new client anchor and sets the top-left and bottom-right coordinates of the anchor. |
| public HSSFComment | createCellComment(ClientAnchor
the client anchor describes how this comment is attached
to the sheet. anchor)Implements org. Creates a comment. |
| pack-priv HSSFSimpleShape | |
| public HSSFComment | Returns: the newly created comment.the client anchor describes how this comment is attached
to the sheet. anchor)Constructs a cell comment. |
| public HSSFShapeGroup | Returns: the newly created group.the client anchor describes how this group is attached
to the sheet. anchor)Creates a new group record stored under this patriarch. |
| public HSSFObjectData | createObjectData(ClientAnchor
the client anchor describes how this picture is
attached to the sheet. anchor, int the storageId returned by storageId, int Workbook#addOlePackage(byte[], String, String, String)the index of the picture (used as preview image) in the
workbook collection of pictures. pictureIndex)Implements org. Adds a new OLE Package Shape |
| pack-priv static HSSFPatriarch | Returns: new patriarch with copies of all shapes from the existing patriarch- copy all the shapes from this patriarch to new one patriarch, HSSFSheet where must be located new patriarch sheet)used to clone patriarch create patriarch from existing one |
| public HSSFPicture | Returns: the newly created shape.the client anchor describes how this group is attached
to the sheet. anchor, int - pointer to the byte array saved inside workbook in escher bse record pictureIndex)Creates a picture. |
| public HSSFPicture | Returns: newly created shapethe client anchor describes how this picture is
attached to the sheet. anchor, int the index of the picture in the workbook collection
of pictures. pictureIndex)Implements org. Creates a picture. |
| public HSSFPolygon | Returns: the newly created shape.the client anchor describes how this group is attached
to the sheet. anchor)Creates a polygon |
| public HSSFSimpleShape | Returns: the newly created shape.the client anchor describes how this group is attached
to the sheet. anchor)Creates a simple shape. |
| public HSSFTextbox | Returns: the newly created textbox.the client anchor describes how this group is attached
to the sheet. anchor)Constructs a textbox under the patriarch. |
| public EscherAggregate | Returns: - low level representation of sheet drawing dataReturns the aggregate escher record we're bound to |
| public List | getChildren()
Implements org. Returns an unmodifiable list of all shapes contained by the patriarch. |
| protected HSSFSheet | |
| public int | Returns: x coordinate of the left up cornerImplements org.
|
| public int | Returns: x coordinate of the right down cornerImplements org.
|
| public int | Returns: y coordinate of the left up cornerImplements org.
|
| public int | Returns: y coordinate of the right down cornerImplements org.
|
| public Iterator | |
| pack-priv int | |
| private void | |
| 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 |
| public boolean | Returns: true of shape is removedto be removed shape)Implements org. remove first level shapes |
| public void | setCoordinates(int x1, int y1, int x2, int y2)
Implements org. Sets the coordinate space of this group. |
| private void | |
| public Spliterator | spliterator()
Overrides default java. Creates a |
| _boundAggregate | back to summary |
|---|---|
| private EscherAggregate _boundAggregate The EscherAggregate we have been bound to. (This will handle writing us out into records, and building up our shapes from the records) | |
| _mainSpgrContainer | back to summary |
|---|---|
| private final EscherContainerRecord _mainSpgrContainer | |
| _shapes | back to summary |
|---|---|
| private final List<HSSFShape> _shapes | |
| _sheet | back to summary |
|---|---|
| private final HSSFSheet _sheet | |
| _spgrRecord | back to summary |
|---|---|
| private final EscherSpgrRecord _spgrRecord | |
| HSSFPatriarch | back to summary |
|---|---|
| pack-priv HSSFPatriarch(HSSFSheet sheet, EscherAggregate boundAggregate) Creates the patriarch.
| |
| addShape | back to summary |
|---|---|
| public void addShape(HSSFShape shape) Implements org. add a shape to this drawing | |
| afterCreate | back to summary |
|---|---|
| pack-priv void afterCreate() | |
| buildShapeTree | back to summary |
|---|---|
| pack-priv void buildShapeTree() create shape tree from existing escher records tree | |
| clear | back to summary |
|---|---|
| public void clear() Implements org. remove all shapes inside patriarch
| |
| containsChart | back to summary |
|---|---|
| public 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) | |
| countOfAllChildren | back to summary |
|---|---|
| public int countOfAllChildren() Total count of all children and their children's children.
| |
| createAnchor | back to summary |
|---|---|
| public HSSFClientAnchor createAnchor(int dx1, int dy1, int dx2, int dy2, int col1, int row1, int col2, int row2) Implements org. Creates a new client anchor and sets the top-left and bottom-right coordinates of the anchor.
| |
| createCellComment | back to summary |
|---|---|
| public HSSFComment createCellComment(ClientAnchor anchor) Implements org. Doc from org. Creates a comment.
| |
| createComboBox | back to summary |
|---|---|
| pack-priv HSSFSimpleShape createComboBox(HSSFAnchor anchor) YK: used to create autofilters | |
| createComment | back to summary |
|---|---|
| public HSSFComment createComment(HSSFAnchor anchor) Constructs a cell comment.
| |
| createGroup | back to summary |
|---|---|
| public HSSFShapeGroup createGroup(HSSFClientAnchor anchor) Creates a new group record stored under this patriarch.
| |
| createObjectData | back to summary |
|---|---|
| public HSSFObjectData createObjectData(ClientAnchor anchor, int storageId, int pictureIndex) Implements org. Doc from org. Adds a new OLE Package Shape
| |
| createPatriarch | back to summary |
|---|---|
| pack-priv static HSSFPatriarch createPatriarch(HSSFPatriarch patriarch, HSSFSheet sheet) used to clone patriarch create patriarch from existing one
| |
| createPicture | back to summary |
|---|---|
| public HSSFPicture createPicture(HSSFClientAnchor anchor, int pictureIndex) Creates a picture.
| |
| createPicture | back to summary |
|---|---|
| public HSSFPicture createPicture(ClientAnchor anchor, int pictureIndex) Implements org. Doc from org. Creates a picture.
| |
| createPolygon | back to summary |
|---|---|
| public HSSFPolygon createPolygon(HSSFClientAnchor anchor) Creates a polygon
| |
| createSimpleShape | back to summary |
|---|---|
| public HSSFSimpleShape createSimpleShape(HSSFClientAnchor anchor) Creates a simple shape. This includes such shapes as lines, rectangles, and ovals. Note Microsoft Excel seems to sometimes disallow higher y1 than y2 or higher x1 than x2 in the anchor, you might need to reverse them and draw shapes vertically or horizontally flipped!
| |
| createTextbox | back to summary |
|---|---|
| public HSSFTextbox createTextbox(HSSFClientAnchor anchor) Constructs a textbox under the patriarch.
| |
| getBoundAggregate | back to summary |
|---|---|
| public EscherAggregate getBoundAggregate() Returns the aggregate escher record we're bound to
| |
| getChildren | back to summary |
|---|---|
| public List Implements org. Returns an unmodifiable list of all shapes contained by the patriarch.
| |
| getSheet | back to summary |
|---|---|
| protected HSSFSheet getSheet() | |
| getX1 | back to summary |
|---|---|
| public int getX1() Implements org.
| |
| getX2 | back to summary |
|---|---|
| public int getX2() Implements org.
| |
| getY1 | back to summary |
|---|---|
| public int getY1() Implements org.
| |
| getY2 | back to summary |
|---|---|
| public int getY2() Implements org.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| newShapeId | back to summary |
|---|---|
pack-priv int newShapeId()
| |
| onCreate | back to summary |
|---|---|
| private void onCreate(HSSFShape shape) | |
| preSerialize | back to summary |
|---|---|
| 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 | |
| removeShape | back to summary |
|---|---|
| public boolean removeShape(HSSFShape shape) Implements org. Doc from org. remove first level shapes | |
| setCoordinates | back to summary |
|---|---|
| public void setCoordinates(int x1, int y1, int x2, int y2) Implements org. Sets the coordinate space of this group. All children are constrained to these coordinates.
| |
| setFlipFlags | back to summary |
|---|---|
| private void setFlipFlags(HSSFShape shape) | |
| spliterator | back to summary |
|---|---|
| public Spliterator Overrides default java. Doc from java. Creates a
| |