Class SpreadsheetTab


  • public class SpreadsheetTab
    extends Object
    • Method Detail

      • getCellAddress

        public static String getCellAddress​(int row,
                                            int col)
      • setValue

        public void setValue​(String cellAddress,
                             Object content)
      • setValue

        public void setValue​(int row,
                             int col,
                             Object content)
      • setStyle

        public void setStyle​(int firstRow,
                             int lastRow,
                             int firstCol,
                             int lastCol,
                             SpreadsheetCellStyle style)
      • getPoiSheet

        public org.apache.poi.xssf.usermodel.XSSFSheet getPoiSheet()
      • getOrCreateCell

        public SpreadsheetCell getOrCreateCell​(int row,
                                               int col)
      • mergeCells

        public void mergeCells​(int firstRow,
                               int lastRow,
                               int firstCol,
                               int lastCol,
                               Object content,
                               SpreadsheetCellStyle style)
      • getRowHeight

        public int getRowHeight​(int row)
        In twips (1/20th of a point)
      • setRowHeight

        public void setRowHeight​(int row,
                                 int twips)
        In twips (1/20th of a point)
      • getColWidth

        public int getColWidth​(int col)
        In (1/256th of a character width)
      • setColWidth

        public void setColWidth​(int col,
                                int twips)
        In (1/256th of a character width)
      • autosizeRowsAndCols

        public void autosizeRowsAndCols()
      • autosizeRows

        public void autosizeRows()
      • autosizeCols

        public void autosizeCols()
      • autoSizeRow

        public void autoSizeRow​(int row)
      • computeRowHeightInPoints

        public float computeRowHeightInPoints​(int fontSizeInPoints,
                                              int numLines)
      • addSpacer

        public void addSpacer()
      • printDown

        public int printDown​(int row,
                             int col,
                             SpreadsheetCellStyle style,
                             Object... values)
        Returns the index of the next row after the last one written
      • printAcross

        public int printAcross​(int row,
                               int col,
                               SpreadsheetCellStyle style,
                               Object... values)
        Returns the index of the next col after the last one written.
      • setSurroundBorder

        public void setSurroundBorder​(String firstCell,
                                      String lastCell,
                                      org.apache.poi.ss.usermodel.BorderStyle border)
      • setSurroundBorder

        public void setSurroundBorder​(int firstRow,
                                      int lastRow,
                                      int firstCol,
                                      int lastCol,
                                      org.apache.poi.ss.usermodel.BorderStyle border)
      • setRightBorder

        public void setRightBorder​(int firstRow,
                                   int lastRow,
                                   int col,
                                   org.apache.poi.ss.usermodel.BorderStyle border)
      • setLeftBorder

        public void setLeftBorder​(int firstRow,
                                  int lastRow,
                                  int col,
                                  org.apache.poi.ss.usermodel.BorderStyle border)
      • setTopBorder

        public void setTopBorder​(int row,
                                 int firstCol,
                                 int lastCol,
                                 org.apache.poi.ss.usermodel.BorderStyle border)
      • setBottomBorder

        public void setBottomBorder​(int row,
                                    int firstCol,
                                    int lastCol,
                                    org.apache.poi.ss.usermodel.BorderStyle border)
      • registerStyle

        public org.apache.poi.ss.usermodel.CellStyle registerStyle​(SpreadsheetCellStyle style)
      • addPicture

        public void addPicture​(String cellAddress,
                               byte[] bytes,
                               int pictureType)
      • addPicture

        public void addPicture​(int row,
                               int col,
                               byte[] bytes,
                               int pictureType)