public class ExcelSheetWriter<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_FONT_SIZE |
| Constructor and Description |
|---|
ExcelSheetWriter(ExcelWriter excelBuilder,
com.github.jlangch.venice.impl.util.excel.ExcelSheet sheet) |
| Modifier and Type | Method and Description |
|---|---|
ExcelSheetWriter<T> |
addMergedRegion(int rowFrom1,
int rowTo1,
int colFrom1,
int colTo1) |
ExcelSheetWriter<T> |
areaChart(java.lang.String title,
CellRangeAddr areaCellRangeAddr,
Position legendPosition,
java.lang.String categoryAxisTitle,
Position categoryAxisPosition,
java.lang.String valueAxisTitle,
Position valueAxisPosition,
boolean threeDimensional,
CellRangeAddr categoriesCellRangeAddr,
java.util.List<AreaDataSeries> series) |
ExcelSheetWriter<T> |
autoSizeColumn(int col1) |
ExcelSheetWriter<T> |
autoSizeColumns() |
ExcelSheetWriter<T> |
barChart(java.lang.String title,
CellRangeAddr areaCellRangeAddr,
Position legendPosition,
java.lang.String categoryAxisTitle,
Position categoryAxisPosition,
java.lang.String valueAxisTitle,
Position valueAxisPosition,
boolean threeDimensional,
boolean directionBar,
BarGrouping grouping,
boolean varyColors,
CellRangeAddr categoriesCellRangeAddr,
java.util.List<BarDataSeries> series) |
ExcelSheetWriter<T> |
bgColor(int row1,
int col1,
java.awt.Color bgColor) |
ExcelSheetWriter<T> |
bgColor(int row1,
int col1,
short bgColor) |
ExcelSheetWriter<T> |
bgColor(int row1,
int col1,
java.lang.String bgColorHtml) |
java.lang.String |
cellAddress_A1_style(int row1,
int col1) |
void |
clearRow(int row1) |
ExcelSheetWriter<T> |
colWidthInPoints(int row1,
int width) |
void |
copyRow(int row1From,
int row1To,
boolean copyValues,
boolean copyStyles) |
void |
copyRowToEndOfSheet(int row1,
boolean copyValues,
boolean copyStyles) |
ExcelSheetWriter<T> |
createFreezePane(int cols,
int rows) |
ExcelSheetWriter<T> |
defaultBodyStyle(java.lang.String style) |
ExcelSheetWriter<T> |
defaultFooterStyle(java.lang.String style) |
ExcelSheetWriter<T> |
defaultHeaderStyle(java.lang.String style) |
void |
deleteRow(int row1) |
ExcelSheetWriter<T> |
displayZeros(boolean value) |
ExcelWriter |
end() |
ExcelSheetWriter<T> |
evaluateAllFormulas() |
ExcelSheetWriter<T> |
formula(int row1,
int col1,
java.lang.String formula) |
ExcelSheetWriter<T> |
formula(int row1,
int col1,
java.lang.String formula,
java.lang.String stylename) |
int |
getFirstCellNum(int row1) |
int |
getFirstRowNum() |
int |
getIndex() |
int |
getLastCellNum(int row1) |
int |
getLastRowNum() |
java.lang.String |
getName() |
ExcelSheetWriter<T> |
hideColumn(int col1) |
ExcelSheetWriter<T> |
hideColumn(java.lang.String colID) |
ExcelSheetWriter<T> |
hideColumns(int... col1s) |
ExcelSheetWriter<T> |
hideColumns(java.lang.String... colIDs) |
ExcelSheetWriter<T> |
image(int row1,
int col1,
byte[] data,
ImageType type,
java.lang.Double scaleX,
java.lang.Double scaleY) |
void |
insertEmptyRow(int row1) |
void |
insertEmptyRows(int row1,
int count) |
ExcelSheetWriter<T> |
lineChart(java.lang.String title,
CellRangeAddr areaCellRangeAddr,
Position legendPosition,
java.lang.String categoryAxisTitle,
Position categoryAxisPosition,
java.lang.String valueAxisTitle,
Position valueAxisPosition,
boolean threeDimensional,
boolean varyColors,
CellRangeAddr categoriesCellRangeAddr,
java.util.List<LineDataSeries> series) |
ExcelSheetWriter<T> |
noHeader() |
ExcelSheetWriter<T> |
pieChart(java.lang.String title,
CellRangeAddr areaCellRangeAddr,
Position legendPosition,
boolean threeDimensional,
boolean varyColors,
CellRangeAddr categoriesCellRangeAddr,
java.util.List<PieDataSeries> series) |
ExcelSheetReader |
reader() |
ExcelSheetWriter<T> |
renderItem(T item) |
ExcelSheetWriter<T> |
renderItems(java.util.List<T> items) |
ExcelSheetWriter<T> |
rowHeightInPoints(int row1,
int height) |
ExcelSheetWriter<T> |
setDefaultColumnWidthInPoints(int width) |
ExcelSheetWriter<T> |
skipRows(int count) |
ExcelSheetWriter<T> |
style(int row1,
int col1,
java.lang.String stylename) |
java.lang.String |
sumFormula(int rowFrom1,
int rowTo1,
int colFrom1,
int colTo1) |
ExcelSheetWriter<T> |
value(int row1,
int col1,
java.lang.Object value) |
ExcelSheetWriter<T> |
value(int row1,
int col1,
java.lang.Object value,
java.lang.String stylename) |
ExcelColumnBuilder<T> |
withColumn(java.lang.String colHeaderName) |
ExcelColumnBuilder<T> |
withColumn(java.lang.String colHeaderName,
java.util.function.Function<? super T,?> colMapper) |
ExcelColumnBuilder<T> |
withColumn(java.lang.String colHeaderName,
java.lang.String fieldName) |
ExcelSumFormulaBuilder<T> |
withSum(int row1,
int col1) |
public static final int DEFAULT_FONT_SIZE
public ExcelSheetWriter(ExcelWriter excelBuilder, com.github.jlangch.venice.impl.util.excel.ExcelSheet sheet)
public java.lang.String getName()
public int getIndex()
public int getFirstRowNum()
public int getLastRowNum()
public int getFirstCellNum(int row1)
public int getLastCellNum(int row1)
public void deleteRow(int row1)
public void copyRowToEndOfSheet(int row1,
boolean copyValues,
boolean copyStyles)
public void clearRow(int row1)
public void copyRow(int row1From,
int row1To,
boolean copyValues,
boolean copyStyles)
public void insertEmptyRow(int row1)
public void insertEmptyRows(int row1,
int count)
public ExcelSheetWriter<T> noHeader()
public ExcelSheetWriter<T> createFreezePane(int cols, int rows)
public ExcelSheetWriter<T> defaultHeaderStyle(java.lang.String style)
public ExcelSheetWriter<T> defaultBodyStyle(java.lang.String style)
public ExcelSheetWriter<T> defaultFooterStyle(java.lang.String style)
public ExcelColumnBuilder<T> withColumn(java.lang.String colHeaderName)
public ExcelColumnBuilder<T> withColumn(java.lang.String colHeaderName, java.util.function.Function<? super T,?> colMapper)
public ExcelColumnBuilder<T> withColumn(java.lang.String colHeaderName, java.lang.String fieldName)
public ExcelSheetWriter<T> renderItems(java.util.List<T> items)
public ExcelSheetWriter<T> renderItem(T item)
public ExcelSheetWriter<T> value(int row1, int col1, java.lang.Object value)
public ExcelSheetWriter<T> value(int row1, int col1, java.lang.Object value, java.lang.String stylename)
public ExcelSheetWriter<T> image(int row1, int col1, byte[] data, ImageType type, java.lang.Double scaleX, java.lang.Double scaleY)
public ExcelSheetWriter<T> lineChart(java.lang.String title, CellRangeAddr areaCellRangeAddr, Position legendPosition, java.lang.String categoryAxisTitle, Position categoryAxisPosition, java.lang.String valueAxisTitle, Position valueAxisPosition, boolean threeDimensional, boolean varyColors, CellRangeAddr categoriesCellRangeAddr, java.util.List<LineDataSeries> series)
public ExcelSheetWriter<T> barChart(java.lang.String title, CellRangeAddr areaCellRangeAddr, Position legendPosition, java.lang.String categoryAxisTitle, Position categoryAxisPosition, java.lang.String valueAxisTitle, Position valueAxisPosition, boolean threeDimensional, boolean directionBar, BarGrouping grouping, boolean varyColors, CellRangeAddr categoriesCellRangeAddr, java.util.List<BarDataSeries> series)
public ExcelSheetWriter<T> areaChart(java.lang.String title, CellRangeAddr areaCellRangeAddr, Position legendPosition, java.lang.String categoryAxisTitle, Position categoryAxisPosition, java.lang.String valueAxisTitle, Position valueAxisPosition, boolean threeDimensional, CellRangeAddr categoriesCellRangeAddr, java.util.List<AreaDataSeries> series)
public ExcelSheetWriter<T> pieChart(java.lang.String title, CellRangeAddr areaCellRangeAddr, Position legendPosition, boolean threeDimensional, boolean varyColors, CellRangeAddr categoriesCellRangeAddr, java.util.List<PieDataSeries> series)
public ExcelSheetWriter<T> formula(int row1, int col1, java.lang.String formula)
public ExcelSheetWriter<T> formula(int row1, int col1, java.lang.String formula, java.lang.String stylename)
public ExcelSheetWriter<T> style(int row1, int col1, java.lang.String stylename)
public ExcelSheetWriter<T> bgColor(int row1, int col1, java.awt.Color bgColor)
public ExcelSheetWriter<T> bgColor(int row1, int col1, java.lang.String bgColorHtml)
public ExcelSheetWriter<T> bgColor(int row1, int col1, short bgColor)
public ExcelSumFormulaBuilder<T> withSum(int row1, int col1)
public ExcelSheetWriter<T> skipRows(int count)
public ExcelSheetWriter<T> rowHeightInPoints(int row1, int height)
public ExcelSheetWriter<T> colWidthInPoints(int row1, int width)
public ExcelSheetWriter<T> autoSizeColumns()
public ExcelSheetWriter<T> autoSizeColumn(int col1)
public ExcelSheetWriter<T> hideColumn(int col1)
public ExcelSheetWriter<T> hideColumns(int... col1s)
public ExcelSheetWriter<T> hideColumn(java.lang.String colID)
public ExcelSheetWriter<T> hideColumns(java.lang.String... colIDs)
public ExcelSheetWriter<T> addMergedRegion(int rowFrom1, int rowTo1, int colFrom1, int colTo1)
public ExcelSheetWriter<T> evaluateAllFormulas()
public ExcelSheetWriter<T> displayZeros(boolean value)
public ExcelSheetWriter<T> setDefaultColumnWidthInPoints(int width)
public java.lang.String sumFormula(int rowFrom1,
int rowTo1,
int colFrom1,
int colTo1)
public java.lang.String cellAddress_A1_style(int row1,
int col1)
public ExcelWriter end()
public ExcelSheetReader reader()