Package org.jzy3d.io.xls
Interface IExcelBuilder
- All Known Implementing Classes:
ExcelBuilder
,ExcelBuilderMultiSheet
public interface IExcelBuilder
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.poi.ss.usermodel.Comment
addComment
(org.apache.poi.ss.usermodel.Cell cell, String text, int row, int col, int colWidth, int rowHeight) Collection<org.apache.poi.ss.usermodel.Sheet>
org.apache.poi.ss.usermodel.Font
org.apache.poi.hssf.util.HSSFColor
org.apache.poi.ss.usermodel.Sheet
int
org.apache.poi.ss.usermodel.Workbook
int
loadPicture
(String image) void
mergeRange
(int firstRow, int firstColumn, int lastRow, int lastColumn) org.apache.poi.ss.usermodel.CellStyle
org.apache.poi.ss.usermodel.CellStyle
newColoredCellStyle
(org.apache.poi.ss.usermodel.IndexedColors color) org.apache.poi.ss.usermodel.CellStyle
newColoredCellStyle
(ByteColor color) org.apache.poi.ss.usermodel.Font
newFont
(int size) int
void
void
org.apache.poi.ss.usermodel.Cell
setCell
(int row, int column, double value) org.apache.poi.ss.usermodel.Cell
setCell
(int row, int column, double value, org.apache.poi.ss.usermodel.CellStyle style) org.apache.poi.ss.usermodel.Cell
Set a cell text content with no styling information.org.apache.poi.ss.usermodel.Cell
Set a cell content at the given indices, and apply the style if it is not null.org.apache.poi.ss.usermodel.Cell
setCellFormula
(int row, int column, String formula) void
setColumnWidth
(int column, int width) Set the width (in units of 1/256th of a character width)void
setColumnWidthAuto
(int column) void
setCurrentSheetId
(int s) void
setFreezePane
(int colSplit, int rowSplit) void
setFreezePane
(int colSplit, int rowSplit, int leftmostColumn, int topRow) void
setPicture
(int pictureIdx, int col1, int row1, boolean resize) void
setRowHeight
(int row, int height) void
setSplitPane
(int xSplitPos, int ySplitPos, int leftmostColumn, int topRow, int activePane)
-
Method Details
-
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
Set a cell text content with no styling information. -
setCellFormula
-
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
-
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
-
newColoredCellStyle
org.apache.poi.ss.usermodel.CellStyle newColoredCellStyle(org.apache.poi.ss.usermodel.IndexedColors color) -
save
- Throws:
IOException
-
save
- 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
-
loadPicture
- Throws:
IOException
-
setPicture
void setPicture(int pictureIdx, int col1, int row1, boolean resize)
-