public class XSSFPrintSetup extends java.lang.Object implements PrintSetup
A3_PAPERSIZE, A4_EXTRA_PAPERSIZE, A4_PAPERSIZE, A4_PLUS_PAPERSIZE, A4_ROTATED_PAPERSIZE, A4_SMALL_PAPERSIZE, A4_TRANSVERSE_PAPERSIZE, A5_PAPERSIZE, B4_PAPERSIZE, B5_PAPERSIZE, ELEVEN_BY_SEVENTEEN_PAPERSIZE, ENVELOPE_10_PAPERSIZE, ENVELOPE_9_PAPERSIZE, ENVELOPE_C3_PAPERSIZE, ENVELOPE_C4_PAPERSIZE, ENVELOPE_C5_PAPERSIZE, ENVELOPE_C6_PAPERSIZE, ENVELOPE_CS_PAPERSIZE, ENVELOPE_DL_PAPERSIZE, ENVELOPE_MONARCH_PAPERSIZE, EXECUTIVE_PAPERSIZE, FOLIO8_PAPERSIZE, LEDGER_PAPERSIZE, LEGAL_PAPERSIZE, LETTER_PAPERSIZE, LETTER_ROTATED_PAPERSIZE, LETTER_SMALL_PAGESIZE, NOTE8_PAPERSIZE, PRINTER_DEFAULT_PAPERSIZE, QUARTO_PAPERSIZE, STATEMENT_PAPERSIZE, TABLOID_PAPERSIZE, TEN_BY_FOURTEEN_PAPERSIZE| Modifier | Constructor and Description |
|---|---|
protected |
XSSFPrintSetup(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTWorksheet worksheet) |
| Modifier and Type | Method and Description |
|---|---|
double |
getBottomMargin()
Returns the bottom margin.
(返回下边距。)
|
PrintCellComments |
getCellComment() |
short |
getCopies()
Returns the number of copies.
(返回份数。)
|
boolean |
getDraft()
Returns the draft mode.
(返回草稿模式。)
|
short |
getFitHeight()
Returns the number of pages high to fit the sheet in.
(返回适合工作表的页数。)
|
short |
getFitWidth()
Returns the number of pages wide to fit sheet in.
(返回适合工作表的页数。)
|
double |
getFooterMargin()
Returns the footer margin.
(返回页脚边距。)
|
double |
getHeaderMargin()
Returns the header margin.
(返回页眉边距。)
|
short |
getHResolution()
Returns the horizontal resolution.
(返回水平分辨率。)
|
boolean |
getLandscape()
Returns the landscape mode.
(返回横向模式。)
|
double |
getLeftMargin()
Returns the left margin.
(返回左边距。)
|
boolean |
getLeftToRight()
Returns the left to right print order.
(返回从左到右的打印顺序。)
|
boolean |
getNoColor()
Returns the black and white setting.
(返回黑白设置。)
|
boolean |
getNoOrientation()
Returns the no orientation.
(返回无方向。)
|
boolean |
getNotes()
Returns the print notes.
(返回打印注释。)
|
PrintOrientation |
getOrientation()
Orientation of the page: landscape - portrait.
(页面方向:横向 - 纵向。)
|
PageOrder |
getPageOrder()
get print page order.
(获取打印页面顺序。)
|
short |
getPageStart()
Set the page numbering start.
(设置页码开始。)
|
short |
getPaperSize()
Returns the paper size.
(返回纸张尺寸。)
|
PaperSize |
getPaperSizeEnum()
Returns the paper size as enum.
(以枚举形式返回纸张大小。)
|
double |
getRightMargin()
Returns the right margin.
(返回右边距。)
|
short |
getScale()
Returns the scale.
(返回比例。)
|
double |
getTopMargin()
Returns the top margin.
(返回上边距。)
|
boolean |
getUsePage()
Returns the use page numbers.
(返回使用页码。)
|
boolean |
getValidSettings()
Use the printer's defaults settings for page setup values and don't use the default values specified in the schema.
(对页面设置值使用打印机的默认设置,不要使用架构中指定的默认值。)
|
short |
getVResolution()
Returns the vertical resolution.
(返回垂直分辨率。)
|
void |
setBottomMargin(double bottomMargin)
Sets the bottom margin.
(设置下边距。)
|
void |
setCopies(short copies)
Sets the number of copies.
(设置份数。)
|
void |
setDraft(boolean d)
Set whether it is in draft mode
(设置是否处于草稿模式)
|
void |
setFitHeight(short height)
Set the number of pages high to fit the sheet in
(将页数设置为高以适合纸张)
|
void |
setFitWidth(short width)
Set the number of pages wide to fit the sheet in
(设置页数以适合纸张)
|
void |
setFooterMargin(double footerMargin)
Sets the footer margin.
(设置页脚边距。)
|
void |
setHeaderMargin(double headerMargin)
Sets the header margin.
(设置页眉边距。)
|
void |
setHResolution(short resolution)
Sets the horizontal resolution.
(设置水平分辨率。)
|
void |
setLandscape(boolean ls)
Set whether to print in landscape
(设置是否横向打印)
|
void |
setLeftMargin(double leftMargin)
Sets the left margin.
(设置左边距。)
|
void |
setLeftToRight(boolean leftToRight)
Set whether to go left to right or top down in ordering
(设置顺序是从左到右还是自上而下)
|
void |
setNoColor(boolean mono)
Set whether it is black and white
(设置是否为黑白)
|
void |
setNoOrientation(boolean orientation)
Set no orientation.
(不设置方向。)
|
void |
setNotes(boolean printNotes)
Print the include notes
(打印包含注释)
|
void |
setOrientation(PrintOrientation orientation)
Orientation of the page: landscape - portrait.
(页面方向:横向 - 纵向。)
|
void |
setPageOrder(PageOrder pageOrder)
Set print page order.
(设置打印页面顺序。)
|
void |
setPageStart(short start)
Set the page numbering start.
(设置页码开始。)
|
void |
setPaperSize(PaperSize size)
Set the paper size as enum value.
(将纸张大小设置为枚举值。)
|
void |
setPaperSize(short size)
Set the paper size.
(设置纸张尺寸。)
|
void |
setRightMargin(double rightMargin)
Sets the right margin.
(设置右边距。)
|
void |
setScale(short scale)
Set the scale.
(设置比例。)
|
void |
setTopMargin(double topMargin)
Sets the top margin.
(设置上边距。)
|
void |
setUsePage(boolean page)
Set whether to use page start
(设置是否使用页面启动)
|
void |
setValidSettings(boolean valid)
Use the printer's defaults settings for page setup values and don't use the default values specified in the schema.
(对页面设置值使用打印机的默认设置,不要使用架构中指定的默认值。)
|
void |
setVResolution(short resolution)
Sets the vertical resolution.
(设置垂直分辨率。)
|
protected XSSFPrintSetup(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTWorksheet worksheet)
public void setPaperSize(short size)
setPaperSize in interface
PrintSetup
(接口 PrintSetup 中的 setPaperSize)
size - the paper size.
(size - 纸张大小。)
public void setPaperSize(PaperSize size)
size - value for the paper size.
(size - 纸张尺寸的值。)
public void setScale(short scale)
setScale in interface
PrintSetup
(接口 PrintSetup 中的 setScale)
scale - the scale to use
(scale - 要使用的比例)
public void setPageStart(short start)
setPageStart in interface
PrintSetup
(接口 PrintSetup 中的 setPageStart)
start - the page numbering start
(start - 页码开始)
public void setFitWidth(short width)
setFitWidth in interface
PrintSetup
(接口 PrintSetup 中的 setFitWidth)
width - the number of pages
(宽度 - 页数)
public void setFitHeight(short height)
setFitHeight in interface
PrintSetup
(接口 PrintSetup 中的 setFitHeight)
height - the number of pages
(高度 - 页数)
public void setLeftToRight(boolean leftToRight)
setLeftToRight in interface
PrintSetup
(接口 PrintSetup 中的 setLeftToRight)
leftToRight - left to right
(leftToRight - 从左到右)
public void setLandscape(boolean ls)
setLandscape in interface
PrintSetup
(PrintSetup 界面中的 setLandscape)
ls - landscape
(ls - 风景)
public void setValidSettings(boolean valid)
setValidSettings in interface
PrintSetup
(接口 PrintSetup 中的 setValidSettings)
valid - Valid
(有效 - 有效)
public void setNoColor(boolean mono)
setNoColor in interface
PrintSetup
(接口 PrintSetup 中的 setNoColor)
mono - Black and white
(单色 - 黑白)
public void setDraft(boolean d)
setDraft in interface
PrintSetup
(接口 PrintSetup 中的 setDraft)
d - draft
(d - 草稿)
public void setNotes(boolean printNotes)
setNotes in interface
PrintSetup
(接口 PrintSetup 中的 setNotes)
printNotes - print the notes
(printNotes - 打印笔记)
public void setNoOrientation(boolean orientation)
setNoOrientation in interface
PrintSetup
(接口 PrintSetup 中的 setNoOrientation)
orientation - Orientation.
(方向 - 方向。)
public void setUsePage(boolean page)
setUsePage in interface
PrintSetup
(接口 PrintSetup 中的 setUsePage)
page - Use page start
(page - 使用页面开始)
public void setHResolution(short resolution)
setHResolution in interface
PrintSetup
(PrintSetup 界面中的 setHResolution)
resolution - horizontal resolution
(分辨率 - 水平分辨率)
public void setVResolution(short resolution)
setVResolution in interface
PrintSetup
(接口 PrintSetup 中的 setVResolution)
resolution - vertical resolution
(分辨率 - 垂直分辨率)
public void setHeaderMargin(double headerMargin)
setHeaderMargin in interface
PrintSetup
(接口 PrintSetup 中的 setHeaderMargin)
headerMargin - header margin
(headerMargin - 标题页边距)
public void setFooterMargin(double footerMargin)
setFooterMargin in interface
PrintSetup
(接口 PrintSetup 中的 setFooterMargin)
footerMargin - footer margin
(footerMargin - 页脚边距)
public void setCopies(short copies)
setCopies in interface
PrintSetup
(接口 PrintSetup 中的 setCopies)
copies - number of copies
(份数 - 份数)
public void setOrientation(PrintOrientation orientation)
orientation - - Orientation of the page
(方向 - - 页面的方向)
PrintOrientation
public PrintOrientation getOrientation()
PrintOrientation
public PrintCellComments getCellComment()
public void setPageOrder(PageOrder pageOrder)
pageOrder - An enum indicating the wanted ordering of printed pages
(pageOrder - 一个枚举,指示打印页面的所需顺序)
public PageOrder getPageOrder()
public short getPaperSize()
getPaperSize in interface
PrintSetup
(接口 PrintSetup 中的 getPaperSize)
public PaperSize getPaperSizeEnum()
PaperSize
public short getScale()
getScale in interface
PrintSetup
(接口 PrintSetup 中的 getScale)
public short getPageStart()
getPageStart in interface
PrintSetup
(接口 PrintSetup 中的 getPageStart)
public short getFitWidth()
getFitWidth in interface
PrintSetup
(接口 PrintSetup 中的 getFitWidth)
public short getFitHeight()
getFitHeight in interface
PrintSetup
(接口 PrintSetup 中的 getFitHeight)
public boolean getLeftToRight()
getLeftToRight in interface
PrintSetup
(接口 PrintSetup 中的 getLeftToRight)
public boolean getLandscape()
getLandscape in interface
PrintSetup
(接口 PrintSetup 中的 getLandscape)
public boolean getValidSettings()
getValidSettings in interface
PrintSetup
(接口 PrintSetup 中的 getValidSettings)
public boolean getNoColor()
getNoColor in interface
PrintSetup
(接口 PrintSetup 中的 getNoColor)
public boolean getDraft()
getDraft in interface
PrintSetup
(接口 PrintSetup 中的 getDraft)
public boolean getNotes()
getNotes in interface
PrintSetup
(接口 PrintSetup 中的 getNotes)
public boolean getNoOrientation()
getNoOrientation in interface
PrintSetup
(接口 PrintSetup 中的 getNoOrientation)
public boolean getUsePage()
getUsePage in interface
PrintSetup
(接口 PrintSetup 中的 getUsePage)
public short getHResolution()
getHResolution in interface
PrintSetup
(接口 PrintSetup 中的 getHResolution)
public short getVResolution()
getVResolution in interface
PrintSetup
(接口 PrintSetup 中的 getVResolution)
public double getHeaderMargin()
getHeaderMargin in interface
PrintSetup
(接口 PrintSetup 中的 getHeaderMargin)
public double getFooterMargin()
getFooterMargin in interface
PrintSetup
(接口 PrintSetup 中的 getFooterMargin)
public short getCopies()
getCopies in interface
PrintSetup
(接口 PrintSetup 中的 getCopies)
public void setTopMargin(double topMargin)
topMargin - top margin
(topMargin - 上边距)
public double getTopMargin()
public void setBottomMargin(double bottomMargin)
bottomMargin - bottom margin
(bottomMargin - 下边距)
public double getBottomMargin()
public void setLeftMargin(double leftMargin)
leftMargin - left margin
(leftMargin - 左边距)
public double getLeftMargin()
public void setRightMargin(double rightMargin)
rightMargin - right margin
(rightMargin - 右边距)
public double getRightMargin()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.