Package org.jzy3d.io.xls
Interface IExcelBuilder
-
- All Known Implementing Classes:
ExcelBuilder,ExcelBuilderMultiSheet
public interface IExcelBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.poi.ss.usermodel.CommentaddComment(org.apache.poi.ss.usermodel.Cell cell, String text, int row, int col, int colWidth, int rowHeight)Collection<org.apache.poi.ss.usermodel.Sheet>getAllSheets()org.apache.poi.ss.usermodel.FontgetBoldFont()org.apache.poi.hssf.util.HSSFColorgetColor(ByteColor color)org.apache.poi.ss.usermodel.SheetgetCurrentSheet()intgetCurrentSheetId()org.apache.poi.ss.usermodel.WorkbookgetWorkbook()intloadPicture(String image)voidmergeRange(int firstRow, int firstColumn, int lastRow, int lastColumn)org.apache.poi.ss.usermodel.CellStylenewCellStyle()org.apache.poi.ss.usermodel.CellStylenewColoredCellStyle(org.apache.poi.ss.usermodel.IndexedColors color)org.apache.poi.ss.usermodel.CellStylenewColoredCellStyle(ByteColor color)org.apache.poi.ss.usermodel.FontnewFont(int size)intnewSheet(int index, String name)voidsave(File file)voidsave(String file)org.apache.poi.ss.usermodel.CellsetCell(int row, int column, double value)org.apache.poi.ss.usermodel.CellsetCell(int row, int column, double value, org.apache.poi.ss.usermodel.CellStyle style)org.apache.poi.ss.usermodel.CellsetCell(int row, int column, String content)Set a cell text content with no styling information.org.apache.poi.ss.usermodel.CellsetCell(int row, int column, String content, org.apache.poi.ss.usermodel.CellStyle style)Set a cell content at the given indices, and apply the style if it is not null.org.apache.poi.ss.usermodel.CellsetCellFormula(int row, int column, String formula)voidsetColumnWidth(int column, int width)Set the width (in units of 1/256th of a character width)voidsetColumnWidthAuto(int column)voidsetCurrentSheetId(int s)voidsetFreezePane(int colSplit, int rowSplit)voidsetFreezePane(int colSplit, int rowSplit, int leftmostColumn, int topRow)voidsetPicture(int pictureIdx, int col1, int row1, boolean resize)voidsetRowHeight(int row, int height)voidsetSplitPane(int xSplitPos, int ySplitPos, int leftmostColumn, int topRow, int activePane)
-
-
-
Method Detail
-
setCell
org.apache.poi.ss.usermodel.Cell setCell(int row, int column, String content, org.apache.poi.ss.usermodel.CellStyle style)Set a cell content at the given indices, and apply the style if it is not null. If row(i) does not exist yet, it is created, otherwise it is recycled. If cell(i,j) does not exist yet, it is created, otherwise it is recycled. Reminder: excel support a maximum of 65,536 rows and 256 columns per sheet- Parameters:
row- row indexcolumn- column indexcontent- a string to display in the cellstyle- a style to apply to the cell- Returns:
- the created or retrieved cell in case additional stuff should be done on it.
-
setCell
org.apache.poi.ss.usermodel.Cell setCell(int row, int column, String content)Set a cell text content with no styling information.
-
setCellFormula
org.apache.poi.ss.usermodel.Cell setCellFormula(int row, int column, String formula)
-
setCell
org.apache.poi.ss.usermodel.Cell setCell(int row, int column, double value)
-
setCell
org.apache.poi.ss.usermodel.Cell setCell(int row, int column, double value, org.apache.poi.ss.usermodel.CellStyle style)
-
getCurrentSheet
org.apache.poi.ss.usermodel.Sheet getCurrentSheet()
-
getAllSheets
Collection<org.apache.poi.ss.usermodel.Sheet> getAllSheets()
-
getCurrentSheetId
int getCurrentSheetId()
-
setCurrentSheetId
void setCurrentSheetId(int s)
-
newSheet
int newSheet(int index, String name)
-
setRowHeight
void setRowHeight(int row, int height)
-
setColumnWidth
void setColumnWidth(int column, int width)Set the width (in units of 1/256th of a character width)
-
setColumnWidthAuto
void setColumnWidthAuto(int column)
-
setFreezePane
void setFreezePane(int colSplit, int rowSplit)
-
setFreezePane
void setFreezePane(int colSplit, int rowSplit, int leftmostColumn, int topRow)
-
setSplitPane
void setSplitPane(int xSplitPos, int ySplitPos, int leftmostColumn, int topRow, int activePane)
-
mergeRange
void mergeRange(int firstRow, int firstColumn, int lastRow, int lastColumn)
-
addComment
org.apache.poi.ss.usermodel.Comment addComment(org.apache.poi.ss.usermodel.Cell cell, String text, int row, int col, int colWidth, int rowHeight)
-
newColoredCellStyle
org.apache.poi.ss.usermodel.CellStyle newColoredCellStyle(ByteColor color)
-
newColoredCellStyle
org.apache.poi.ss.usermodel.CellStyle newColoredCellStyle(org.apache.poi.ss.usermodel.IndexedColors color)
-
save
void save(String file) throws IOException
- Throws:
IOException
-
save
void save(File file) throws IOException
- Throws:
IOException
-
newFont
org.apache.poi.ss.usermodel.Font newFont(int size)
-
getBoldFont
org.apache.poi.ss.usermodel.Font getBoldFont()
-
newCellStyle
org.apache.poi.ss.usermodel.CellStyle newCellStyle()
-
getWorkbook
org.apache.poi.ss.usermodel.Workbook getWorkbook()
-
getColor
org.apache.poi.hssf.util.HSSFColor getColor(ByteColor color)
-
loadPicture
int loadPicture(String image) throws IOException
- Throws:
IOException
-
setPicture
void setPicture(int pictureIdx, int col1, int row1, boolean resize)
-
-