Save This Page
Home » poi-src-3.2-FINAL-20081019 » org.apache » poi » hssf » usermodel » [javadoc | source]
org.apache.poi.hssf.usermodel
public final class: HSSFPatriarch [javadoc | source]
java.lang.Object
   org.apache.poi.hssf.usermodel.HSSFPatriarch

All Implemented Interfaces:
    HSSFShapeContainer

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.
Field Summary
 List shapes     
 HSSFSheet sheet     
 int x1     
 int y1     
 int x2     
 int y2     
Constructor:
 HSSFPatriarch(HSSFSheet sheet,
    EscherAggregate boundAggregate) 
    Creates the patriarch.
    Parameters:
    sheet - the sheet this patriarch is stored in.
Method from org.apache.poi.hssf.usermodel.HSSFPatriarch Summary:
_getBoundAggregate,   containsChart,   countOfAllChildren,   createComment,   createGroup,   createPicture,   createPolygon,   createSimpleShape,   createTextbox,   getChildren,   getX1,   getX2,   getY1,   getY2,   setCoordinates
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.poi.hssf.usermodel.HSSFPatriarch Detail:
 protected EscherAggregate _getBoundAggregate() 
    Returns the aggregate escher record we're bound to
 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)
 public int countOfAllChildren() 
    Total count of all children and their children's children.
 public HSSFComment createComment(HSSFAnchor anchor) 
    Constructs a cell comment.
 public HSSFShapeGroup createGroup(HSSFClientAnchor anchor) 
    Creates a new group record stored under this patriarch.
 public HSSFPicture createPicture(HSSFClientAnchor anchor,
    int pictureIndex) 
    Creates a picture.
 public HSSFPolygon createPolygon(HSSFClientAnchor anchor) 
    Creates a polygon
 public HSSFSimpleShape createSimpleShape(HSSFClientAnchor anchor) 
    Creates a simple shape. This includes such shapes as lines, rectangles, and ovals.
 public HSSFTextbox createTextbox(HSSFClientAnchor anchor) 
    Constructs a textbox under the patriarch.
 public List getChildren() 
    Returns a list of all shapes contained by the patriarch.
 public int getX1() 
    The top left x coordinate of this group.
 public int getX2() 
    The bottom right x coordinate of this group.
 public int getY1() 
    The top left y coordinate of this group.
 public int getY2() 
    The bottom right y coordinate of this group.
 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.