Methods Summary |
---|
public int | countOfAllChildren()Count of all children and their childrens 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.HSSFShapeGroup | createGroup(org.apache.poi.hssf.usermodel.HSSFChildAnchor anchor)Create another group under this group.
HSSFShapeGroup group = new HSSFShapeGroup(this, anchor);
group.anchor = anchor;
shapes.add(group);
return group;
|
public org.apache.poi.hssf.usermodel.HSSFPicture | createPicture(org.apache.poi.hssf.usermodel.HSSFChildAnchor anchor, int pictureIndex)Creates a picture.
HSSFPicture shape = new HSSFPicture(this, anchor);
shape.anchor = anchor;
shape.setPictureIndex( pictureIndex );
shapes.add(shape);
return shape;
|
public org.apache.poi.hssf.usermodel.HSSFPolygon | createPolygon(org.apache.poi.hssf.usermodel.HSSFChildAnchor anchor)Creates a polygon
HSSFPolygon shape = new HSSFPolygon(this, anchor);
shape.anchor = anchor;
shapes.add(shape);
return shape;
|
public org.apache.poi.hssf.usermodel.HSSFSimpleShape | createShape(org.apache.poi.hssf.usermodel.HSSFChildAnchor anchor)Create a new simple shape under this group.
HSSFSimpleShape shape = new HSSFSimpleShape(this, anchor);
shape.anchor = anchor;
shapes.add(shape);
return shape;
|
public org.apache.poi.hssf.usermodel.HSSFTextbox | createTextbox(org.apache.poi.hssf.usermodel.HSSFChildAnchor anchor)Create a new textbox under this group.
HSSFTextbox shape = new HSSFTextbox(this, anchor);
shape.anchor = anchor;
shapes.add(shape);
return shape;
|
public java.util.List | getChildren()Return all children contained by this shape.
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;
|