Class HSLFTable

    • Method Detail

      • getCell

        public HSLFTableCell getCell​(int row,
                                     int col)
        Description copied from interface: TableShape
        Gets a cell
        Specified by:
        getCell in interface TableShape<HSLFShape,​HSLFTextParagraph>
        Parameters:
        row - the row index (0-based)
        col - the column index (0-based)
        Returns:
        the cell or null if the cell doesn't exists, e.g. when accessing a merged cell or if the index is out of bounds
      • getNumberOfColumns

        public int getNumberOfColumns()
        Description copied from interface: TableShape
        Return the maximum number of columns. If the table contains merged cells, the number of columns might be less than the maximum.
        Specified by:
        getNumberOfColumns in interface TableShape<HSLFShape,​HSLFTextParagraph>
        Returns:
        the maximum number of column
      • setSheet

        public void setSheet​(HSLFSheet sheet)
        Assign the SlideShow this shape belongs to
        Overrides:
        setSheet in class HSLFShape
        Parameters:
        sheet - owner of this shape
      • setRowHeight

        public void setRowHeight​(int row,
                                 double height)
        Description copied from interface: TableShape
        Sets the row height.
        Specified by:
        setRowHeight in interface TableShape<HSLFShape,​HSLFTextParagraph>
        Parameters:
        row - the row index (0-based)
        height - the height to set (in points)
      • getColumnWidth

        public double getColumnWidth​(int col)
        Description copied from interface: TableShape
        Gets the width (in points) of the n-th column
        Specified by:
        getColumnWidth in interface TableShape<HSLFShape,​HSLFTextParagraph>
        Parameters:
        col - the column index (0-based)
        Returns:
        the width (in points)
      • setColumnWidth

        public void setColumnWidth​(int col,
                                   double width)
        Description copied from interface: TableShape
        Sets the width (in points) of the n-th column
        Specified by:
        setColumnWidth in interface TableShape<HSLFShape,​HSLFTextParagraph>
        Parameters:
        col - the column index (0-based)
        width - the width (in points)