public class ReportSettings extends java.lang.Object implements XMLable, java.lang.Cloneable, java.io.Serializable, ReportSettingsProvider
限定符和类型 | 字段和说明 |
---|---|
static ReportSettings |
DEFAULTSETTINGS |
static java.lang.String |
XML_TAG |
构造器和说明 |
---|
ReportSettings()
初始化一个报表页面属性
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone()
Clone.
|
boolean |
equals(java.lang.Object o) |
Background |
getBackground()
|
int |
getFirstPageNumber()
|
UNIT |
getFooterHeight()
Gets the height of report page footer.
|
UNIT |
getHeaderHeight()
Gets the height of report page header.
|
int |
getPageOrder()
|
PaperSettingProvider |
getPaperSetting()
获取打印纸张属性
|
int |
getShrinkToFitMode()
|
ColumnRow |
getWriteFrozenColumnRow()
获取报表中冻结的单元格ColumnRow
|
boolean |
isExportBackground()
Whether or not to export background.
|
boolean |
isHorizontalCenterOnPage()
|
boolean |
isPreviewBackground()
Whether or not to preview background.
|
boolean |
isPrintBackground()
Whether or not to print background.
|
boolean |
isVerticalCenterOnPage()
|
void |
readXML(XMLableReader reader)
Read XML.
|
void |
setBackground(Background background)
Sets the background of report.
|
void |
setExportBackground(boolean exportBackground)
Sets export background.
|
void |
setFirstPageNumber(int firstPageNumber)
Sets the page number you want to appear on the first page of the report.
|
void |
setFooterHeight(UNIT footerHeight)
Sets the footer of report page footer.
|
void |
setHeaderHeight(UNIT headerHeight)
Sets the height of report page header.
|
void |
setHorizontalCenterOnPage(boolean isPlaceHorizontalCenterOnPage)
Sets center report data horizontally on the page between the left and right margins.
|
void |
setPageOrder(int pageOrder)
设置分页的Order, 从左到右, 从上到下
ReportConstants.TOP_TO_BOTTOM or ReportConstants.LEFT_TO_RIGHT.
|
void |
setPaperSetting(PaperSettingProvider paperSetting)
设置打印纸张属性
|
void |
setPreviewBackground(boolean previewBackground)
Sets preview background.
|
void |
setPrintBackground(boolean printBackground)
Sets print background.
|
void |
setShrinkToFitMode(int shrinkToFitMode) |
void |
setVerticalCenterOnPage(boolean isVerticalCenterOnPage)
Sets center report data
vertical on the page between the top and bottom margins.
|
void |
setWriteFrozenColumnRow(ColumnRow writeFrozenColumnRow)
指定报表中冻结的单元格
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
public static final ReportSettings DEFAULTSETTINGS
public static final java.lang.String XML_TAG
public ColumnRow getWriteFrozenColumnRow()
public void setWriteFrozenColumnRow(ColumnRow writeFrozenColumnRow)
setWriteFrozenColumnRow
在接口中 ReportSettingsProvider
writeFrozenColumnRow
- 指定的ColumnRowpublic void setPaperSetting(PaperSettingProvider paperSetting)
setPaperSetting
在接口中 ReportSettingsProvider
paperSetting
- 指定的打印纸张属性public PaperSettingProvider getPaperSetting()
getPaperSetting
在接口中 ReportSettingsProvider
public int getPageOrder()
public void setPageOrder(int pageOrder)
setPageOrder
在接口中 ReportSettingsProvider
public int getShrinkToFitMode()
getShrinkToFitMode
在接口中 ReportSettingsProvider
public void setShrinkToFitMode(int shrinkToFitMode)
setShrinkToFitMode
在接口中 ReportSettingsProvider
public boolean isHorizontalCenterOnPage()
public void setHorizontalCenterOnPage(boolean isPlaceHorizontalCenterOnPage)
public boolean isVerticalCenterOnPage()
isVerticalCenterOnPage
在接口中 ReportSettingsProvider
public void setVerticalCenterOnPage(boolean isVerticalCenterOnPage)
public int getFirstPageNumber()
getFirstPageNumber
在接口中 ReportSettingsProvider
public void setFirstPageNumber(int firstPageNumber)
setFirstPageNumber
在接口中 ReportSettingsProvider
firstPageNumber
- the new first page number.public Background getBackground()
public void setBackground(Background background)
setBackground
在接口中 ReportSettingsProvider
background
- the new background of report.public boolean isPreviewBackground()
isPreviewBackground
在接口中 ReportSettingsProvider
public void setPreviewBackground(boolean previewBackground)
setPreviewBackground
在接口中 ReportSettingsProvider
public boolean isPrintBackground()
isPrintBackground
在接口中 ReportSettingsProvider
public void setPrintBackground(boolean printBackground)
setPrintBackground
在接口中 ReportSettingsProvider
public UNIT getHeaderHeight()
getHeaderHeight
在接口中 ReportSettingsProvider
public void setHeaderHeight(UNIT headerHeight)
setHeaderHeight
在接口中 ReportSettingsProvider
public UNIT getFooterHeight()
getFooterHeight
在接口中 ReportSettingsProvider
public void setFooterHeight(UNIT footerHeight)
setFooterHeight
在接口中 ReportSettingsProvider
public void readXML(XMLableReader reader)
readXML
在接口中 ReportSettingsProvider
readXML
在接口中 XMLReadable
reader
- .XMLableReader
public void writeXML(XMLPrintWriter writer)
writeXML
在接口中 ReportSettingsProvider
writeXML
在接口中 XMLWriter
writer
- the PrintWriter.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 ReportSettingsProvider
clone
在接口中 FCloneable
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public boolean equals(java.lang.Object o)
equals
在接口中 ReportSettingsProvider
equals
在类中 java.lang.Object
public boolean isExportBackground()
ReportSettingsProvider
isExportBackground
在接口中 ReportSettingsProvider
public void setExportBackground(boolean exportBackground)
ReportSettingsProvider
setExportBackground
在接口中 ReportSettingsProvider