Methods Summary |
---|
public int | countOfAllChildren()Total count of all children and their children's children.
int count = shapes.size();
for ( Iterator iterator = shapes.iterator(); iterator.hasNext(); )
{
HSSFShape shape = (HSSFShape) iterator.next();
count += shape.countOfAllChildren();
}
return count;
|
public org.apache.poi.hssf.usermodel.HSSFComment | createComment(org.apache.poi.hssf.usermodel.HSSFAnchor anchor)Constructs a cell comment.
HSSFComment shape = new HSSFComment(null, anchor);
shape.anchor = anchor;
shapes.add(shape);
return shape;
|
public org.apache.poi.hssf.usermodel.HSSFShapeGroup | createGroup(org.apache.poi.hssf.usermodel.HSSFClientAnchor anchor)Creates a new group record stored under this patriarch.
HSSFShapeGroup group = new HSSFShapeGroup(null, anchor);
group.anchor = anchor;
shapes.add(group);
return group;
|
public org.apache.poi.hssf.usermodel.HSSFPicture | createPicture(org.apache.poi.hssf.usermodel.HSSFClientAnchor anchor, int pictureIndex)Creates a picture.
HSSFPicture shape = new HSSFPicture(null, anchor);
shape.setPictureIndex( pictureIndex );
shape.anchor = anchor;
shapes.add(shape);
return shape;
|
public org.apache.poi.hssf.usermodel.HSSFPolygon | createPolygon(org.apache.poi.hssf.usermodel.HSSFClientAnchor anchor)Creates a polygon
HSSFPolygon shape = new HSSFPolygon(null, anchor);
shape.anchor = anchor;
shapes.add(shape);
return shape;
|
public org.apache.poi.hssf.usermodel.HSSFSimpleShape | createSimpleShape(org.apache.poi.hssf.usermodel.HSSFClientAnchor anchor)Creates a simple shape. This includes such shapes as lines, rectangles,
and ovals.
HSSFSimpleShape shape = new HSSFSimpleShape(null, anchor);
shape.anchor = anchor;
shapes.add(shape);
return shape;
|
public org.apache.poi.hssf.usermodel.HSSFTextbox | createTextbox(org.apache.poi.hssf.usermodel.HSSFClientAnchor anchor)Constructs a textbox under the patriarch.
HSSFTextbox shape = new HSSFTextbox(null, anchor);
shape.anchor = anchor;
shapes.add(shape);
return shape;
|
public java.util.List | getChildren()Returns a list of all shapes contained by the patriarch.
return shapes;
|
public int | getX1()The top left x coordinate of this group.
return x1;
|
public int | getX2()The bottom right x coordinate of this group.
return x2;
|
public int | getY1()The top left y coordinate of this group.
return y1;
|
public int | getY2()The bottom right y coordinate of this group.
return y2;
|
public void | setCoordinates(int x1, int y1, int x2, int y2)Sets the coordinate space of this group. All children are contrained
to these coordinates.
this.x1 = x1;
this.y1 = y1;
this.x2 = x2;
this.y2 = y2;
|