Package taro.spreadsheet.model
Class SpreadsheetTab
- java.lang.Object
-
- taro.spreadsheet.model.SpreadsheetTab
-
public class SpreadsheetTab extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPicture(int row, int col, byte[] bytes, int pictureType)voidaddPicture(String cellAddress, byte[] bytes, int pictureType)voidaddSpacer()voidautosizeCols()voidautoSizeRow(int row)voidautosizeRows()voidautosizeRowsAndCols()floatcomputeRowHeightInPoints(int fontSizeInPoints, int numLines)SpreadsheetCellgetCell(int row, int col)SpreadsheetCellgetCell(String cellAddress)static StringgetCellAddress(int row, int col)intgetColWidth(int col)In (1/256th of a character width)SpreadsheetCellgetOrCreateCell(int row, int col)SpreadsheetCellgetOrCreateCell(String cellAddress)org.apache.poi.xssf.usermodel.XSSFSheetgetPoiSheet()intgetRowHeight(int row)In twips (1/20th of a point)voidmergeCells(int firstRow, int lastRow, int firstCol, int lastCol, Object content, SpreadsheetCellStyle style)voidmergeCells(String firstCell, String lastCell, Object content, SpreadsheetCellStyle style)intprintAcross(int row, int col, SpreadsheetCellStyle style, Object... values)Returns the index of the next col after the last one written.voidprintAcross(String cellAddress, SpreadsheetCellStyle style, String... values)intprintDown(int row, int col, SpreadsheetCellStyle style, Object... values)Returns the index of the next row after the last one writtenvoidprintDown(String cellAddress, SpreadsheetCellStyle style, String... values)org.apache.poi.ss.usermodel.CellStyleregisterStyle(SpreadsheetCellStyle style)voidsetBottomBorder(int row, int firstCol, int lastCol, org.apache.poi.ss.usermodel.BorderStyle border)voidsetColWidth(int col, int twips)In (1/256th of a character width)voidsetLeftBorder(int firstRow, int lastRow, int col, org.apache.poi.ss.usermodel.BorderStyle border)voidsetRightBorder(int firstRow, int lastRow, int col, org.apache.poi.ss.usermodel.BorderStyle border)voidsetRowHeight(int row, int twips)In twips (1/20th of a point)voidsetStyle(int firstRow, int lastRow, int firstCol, int lastCol, SpreadsheetCellStyle style)voidsetStyle(int row, int col, SpreadsheetCellStyle style)voidsetStyle(String firstCell, String lastCell, SpreadsheetCellStyle style)voidsetStyle(String cellAddress, SpreadsheetCellStyle style)voidsetSurroundBorder(int firstRow, int lastRow, int firstCol, int lastCol, org.apache.poi.ss.usermodel.BorderStyle border)voidsetSurroundBorder(String firstCell, String lastCell, org.apache.poi.ss.usermodel.BorderStyle border)voidsetTopBorder(int row, int firstCol, int lastCol, org.apache.poi.ss.usermodel.BorderStyle border)voidsetValue(int row, int col, Object content)voidsetValue(int row, int col, Object content, SpreadsheetCellStyle style)voidsetValue(String cellAddress, Object content)voidsetValue(String cellAddress, Object content, SpreadsheetCellStyle style)
-
-
-
Method Detail
-
getCellAddress
public static String getCellAddress(int row, int col)
-
setValue
public void setValue(String cellAddress, Object content, SpreadsheetCellStyle style)
-
setValue
public void setValue(int row, int col, Object content)
-
setValue
public void setValue(int row, int col, Object content, SpreadsheetCellStyle style)
-
setStyle
public void setStyle(String cellAddress, SpreadsheetCellStyle style)
-
setStyle
public void setStyle(String firstCell, String lastCell, SpreadsheetCellStyle style)
-
setStyle
public void setStyle(int row, int col, SpreadsheetCellStyle style)
-
setStyle
public void setStyle(int firstRow, int lastRow, int firstCol, int lastCol, SpreadsheetCellStyle style)
-
getPoiSheet
public org.apache.poi.xssf.usermodel.XSSFSheet getPoiSheet()
-
getCell
public SpreadsheetCell getCell(String cellAddress)
-
getCell
public SpreadsheetCell getCell(int row, int col)
-
getOrCreateCell
public SpreadsheetCell getOrCreateCell(String cellAddress)
-
getOrCreateCell
public SpreadsheetCell getOrCreateCell(int row, int col)
-
mergeCells
public void mergeCells(String firstCell, String lastCell, Object content, SpreadsheetCellStyle style)
-
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 void printDown(String cellAddress, SpreadsheetCellStyle style, String... values)
-
printAcross
public void printAcross(String cellAddress, SpreadsheetCellStyle style, String... values)
-
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)
-
-