public class Sheet
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
Sheet.Row |
| Modifier and Type | Method and Description |
|---|---|
void |
addChart(Chart chart,
int colFrom,
int rowFrom,
int colTo,
int rowTo)
Deprecated.
|
void |
addChart(Chart chart,
SheetCoord coordFrom,
SheetCoord coordTo) |
void |
addChart(Chart chart,
java.lang.String colFrom,
int rowFrom,
java.lang.String colTo,
int rowTo)
Deprecated.
|
void |
addChart(Chart chart,
java.lang.String cellFrom,
java.lang.String cellTo) |
Chart |
addChart(ChartType type,
int colFrom,
int rowFrom,
int colTo,
int rowTo)
Deprecated.
|
Chart |
addChart(ChartType type,
SheetCoord coordFrom,
SheetCoord coordTo) |
Chart |
addChart(ChartType type,
java.lang.String colFrom,
int rowFrom,
java.lang.String colTo,
int rowTo)
Deprecated.
|
Chart |
addChart(ChartType type,
java.lang.String cellFrom,
java.lang.String cellTo) |
Image |
addImage(byte[] img,
ImageType type,
SheetCoord coordFrom,
int percentOfSize) |
Image |
addImage(byte[] img,
ImageType type,
SheetCoord coordFrom,
SheetCoord coordTo) |
Image |
addImage(java.io.File file,
SheetCoord coordFrom,
int percentOfSize) |
Image |
addImage(java.io.File file,
SheetCoord coordFrom,
SheetCoord coordTo) |
void |
addImage(Image image,
SheetCoord coordFrom,
int percentOfSize) |
void |
addImage(Image image,
SheetCoord coordFrom,
SheetCoord coordTo)
Добавление объекта с изображением, прописываются внутренние ссылки и связи.
|
Image |
addImage(java.io.InputStream is,
ImageType type,
SheetCoord coordFrom,
int percentOfSize) |
Image |
addImage(java.io.InputStream is,
ImageType type,
SheetCoord coordFrom,
SheetCoord coordTo) |
void |
addMerge(int rowFrom,
int colFrom,
int rowTo,
int colTo) |
void |
addMergeCount(int colFrom,
int colTo,
int rowsCount) |
void |
addMergeInRow(int colFrom,
int colTo) |
void |
addMergeRel(int rowFrom,
int colFrom,
int rowTo,
int colTo) |
Sheet |
cellDMY(int col,
java.util.Date date) |
Sheet |
cellDouble(int col,
double doubleValue) |
Sheet |
cellDouble(int col,
double doubleValue,
NumFmt numFmt) |
Sheet |
cellFormula(int col,
java.lang.String formulaValue) |
Sheet |
cellFormula(int col,
java.lang.String formulaValue,
NumFmt numFmt) |
Sheet |
cellInlineStr(int col,
java.lang.String strValue) |
Sheet |
cellInt(int col,
int intValue) |
Sheet |
cellStr(int col,
java.lang.String strValue) |
Sheet |
cellYMD_HMS(int col,
java.util.Date date) |
Sheet |
cellYMD(int col,
java.util.Date date) |
void |
cleanHiddens() |
void |
cleanWidths() |
double |
getDefaultRowHeight() |
java.lang.String |
getDisplayName() |
void |
innerFinishRow() |
boolean |
isSummaryBelow() |
boolean |
isSummaryRight() |
java.lang.String |
name() |
PageMargins |
pageMargins() |
PageSetup |
pageSetup() |
Sheet.Row |
row() |
void |
setDefaultRowHeight(double defaultRowHeight) |
void |
setDisplayName(java.lang.String displayName) |
void |
setHidden(int col)
Скрыть колонку
|
void |
setPageOrientation(PageSetup.Orientation orientation)
Установка положения страницы
|
void |
setPageSize(PageSetup.PaperSize paperSize)
Установка формата бумаги
|
void |
setScaleByWidth()
При печати подгонять масштаб под ширину страницы
|
void |
setSummaryBelow(boolean summaryBelow) |
void |
setSummaryRight(boolean summaryRight) |
void |
setWidth(int col,
double width) |
void |
skipRow() |
void |
skipRows(int rowCount) |
Style |
style() |
public PageMargins pageMargins()
public PageSetup pageSetup()
public void setPageOrientation(PageSetup.Orientation orientation)
orientation - положение страницы: горизонтальное Landscape, вертикальное Portraitpublic void setPageSize(PageSetup.PaperSize paperSize)
paperSize - формат бумаги: A4, A5, Letter, etcpublic void setScaleByWidth()
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
public double getDefaultRowHeight()
public void setDefaultRowHeight(double defaultRowHeight)
public Sheet cellFormula(int col, java.lang.String formulaValue)
public Sheet cellInlineStr(int col, java.lang.String strValue)
public Sheet cellStr(int col, java.lang.String strValue)
public Sheet cellInt(int col, int intValue)
public Sheet cellDouble(int col, double doubleValue)
public Sheet cellYMD(int col, java.util.Date date)
public Sheet cellYMD_HMS(int col, java.util.Date date)
public Sheet cellDMY(int col, java.util.Date date)
public void skipRows(int rowCount)
public void innerFinishRow()
public void skipRow()
public Sheet.Row row()
public void cleanWidths()
public void cleanHiddens()
public void setWidth(int col,
double width)
public void setHidden(int col)
col - индекс скрываемой колонкиpublic Style style()
public java.lang.String name()
public void addMergeInRow(int colFrom,
int colTo)
public void addMerge(int rowFrom,
int colFrom,
int rowTo,
int colTo)
public void addMergeRel(int rowFrom,
int colFrom,
int rowTo,
int colTo)
public void addMergeCount(int colFrom,
int colTo,
int rowsCount)
public boolean isSummaryBelow()
public void setSummaryBelow(boolean summaryBelow)
public boolean isSummaryRight()
public void setSummaryRight(boolean summaryRight)
public Chart addChart(ChartType type, SheetCoord coordFrom, SheetCoord coordTo)
@Deprecated public Chart addChart(ChartType type, int colFrom, int rowFrom, int colTo, int rowTo)
@Deprecated public Chart addChart(ChartType type, java.lang.String colFrom, int rowFrom, java.lang.String colTo, int rowTo)
public void addChart(Chart chart, SheetCoord coordFrom, SheetCoord coordTo)
public void addChart(Chart chart, java.lang.String cellFrom, java.lang.String cellTo)
@Deprecated public void addChart(Chart chart, int colFrom, int rowFrom, int colTo, int rowTo)
@Deprecated public void addChart(Chart chart, java.lang.String colFrom, int rowFrom, java.lang.String colTo, int rowTo)
public Image addImage(byte[] img, ImageType type, SheetCoord coordFrom, SheetCoord coordTo)
public Image addImage(byte[] img, ImageType type, SheetCoord coordFrom, int percentOfSize)
public Image addImage(java.io.File file, SheetCoord coordFrom, SheetCoord coordTo)
public Image addImage(java.io.File file, SheetCoord coordFrom, int percentOfSize)
public Image addImage(java.io.InputStream is, ImageType type, SheetCoord coordFrom, SheetCoord coordTo)
public Image addImage(java.io.InputStream is, ImageType type, SheetCoord coordFrom, int percentOfSize)
public void addImage(Image image, SheetCoord coordFrom, SheetCoord coordTo)
image - изображениеcoordFrom - координата, куда ставиться изображениеcoordTo - координата, куда ставиться изображениеpublic void addImage(Image image, SheetCoord coordFrom, int percentOfSize)