public interface PrintSetup
Modifier and Type | Field and Description |
---|---|
static short |
A3_PAPERSIZE
A3 - 297x420 mm
(A3 - 297x420mm)
|
static short |
A4_EXTRA_PAPERSIZE
A4 Extra - 9.27 x 12.69 in
(A4 额外 - 9.27 x 12.69 英寸)
|
static short |
A4_PAPERSIZE
A4 - 210x297 mm
(A4 - 210x297mm)
|
static short |
A4_PLUS_PAPERSIZE
A4 Plus - 210x330 mm
(A4 Plus - 210x330mm)
|
static short |
A4_ROTATED_PAPERSIZE
A4 Rotated - 297x210 mm
(A4 旋转 - 297x210 毫米)
|
static short |
A4_SMALL_PAPERSIZE
A4 Small - 210x297 mm
(A4 小号 - 210x297 毫米)
|
static short |
A4_TRANSVERSE_PAPERSIZE
A4 Transverse - 210x297 mm
(A4 横向 - 210x297 毫米)
|
static short |
A5_PAPERSIZE
A5 - 148x210 mm
(A5 - 148x210 毫米)
|
static short |
B4_PAPERSIZE
B4 (JIS) 250x354 mm
(B4 (JIS) 250x354 毫米)
|
static short |
B5_PAPERSIZE
B5 (JIS) 182x257 mm
(B5 (JIS) 182x257 毫米)
|
static short |
ELEVEN_BY_SEVENTEEN_PAPERSIZE
11 x 17 in
(11 x 17 英寸)
|
static short |
ENVELOPE_10_PAPERSIZE
US Envelope #10 4 1/8 x 9 1/2
(美国信封 #10 4 1/8 x 9 1/2)
|
static short |
ENVELOPE_9_PAPERSIZE
US Envelope #9 3 7/8 x 8 7/8
(美国信封 #9 3 7/8 x 8 7/8)
|
static short |
ENVELOPE_C3_PAPERSIZE
Envelope C3 324x458 mm
(信封 C3 324x458 毫米)
|
static short |
ENVELOPE_C4_PAPERSIZE
Envelope C4 229x324 mm
(信封 C4 229x324 毫米)
|
static short |
ENVELOPE_C5_PAPERSIZE |
static short |
ENVELOPE_C6_PAPERSIZE
Envelope C6 114x162 mm
(信封 C6 114x162 毫米)
|
static short |
ENVELOPE_CS_PAPERSIZE
Envelope C5 162x229 mm
(信封 C5 162x229 毫米)
|
static short |
ENVELOPE_DL_PAPERSIZE
Envelope DL 110x220 mm
(信封 DL 110x220 毫米)
|
static short |
ENVELOPE_MONARCH_PAPERSIZE |
static short |
EXECUTIVE_PAPERSIZE
US Executive 7 1/4 x 10 1/2 in
(美国行政 7 1/4 x 10 1/2 英寸)
|
static short |
FOLIO8_PAPERSIZE
Folio 8 1/2 x 13 in
(对开本 8 1/2 x 13 英寸)
|
static short |
LEDGER_PAPERSIZE
US Ledger 17 x 11 in
(美国分类帐 17 x 11 英寸)
|
static short |
LEGAL_PAPERSIZE
US Legal 8 1/2 x 14 in
(美国法律 8 1/2 x 14 英寸)
|
static short |
LETTER_PAPERSIZE
US Letter 8 1/2 x 11 in
(美国信函 8 1/2 x 11 英寸)
|
static short |
LETTER_ROTATED_PAPERSIZE
US Letter Rotated 11 x 8 1/2 in
(美国字母旋转 11 x 8 1/2 英寸)
|
static short |
LETTER_SMALL_PAGESIZE
US Letter Small 8 1/2 x 11 in
(US Letter Small 8 1/2 x 11 英寸)
|
static short |
NOTE8_PAPERSIZE
US Note 8 1/2 x 11 in
(美国注 8 1/2 x 11 英寸)
|
static short |
PRINTER_DEFAULT_PAPERSIZE
Whatever the printer's default paper size is
(无论打印机的默认纸张尺寸是什么)
|
static short |
QUARTO_PAPERSIZE
Quarto 215x275 mm
(四开本 215x275 毫米)
|
static short |
STATEMENT_PAPERSIZE
US Statement 5 1/2 x 8 1/2 in
(美国声明 5 1/2 x 8 1/2 英寸)
|
static short |
TABLOID_PAPERSIZE
US Tabloid 11 x 17 in
(美国小报 11 x 17 英寸)
|
static short |
TEN_BY_FOURTEEN_PAPERSIZE
10 x 14 in
(10 x 14 英寸)
|
Modifier and Type | Method and Description |
---|---|
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.
(返回横向模式。)
|
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.
(返回打印注释。)
|
short |
getPageStart()
Returns the page start.
(返回页面开始。)
|
short |
getPaperSize()
Returns the paper size.
(返回纸张尺寸。)
|
short |
getScale()
Returns the scale.
(返回比例。)
|
boolean |
getUsePage()
Returns the use page numbers.
(返回使用页码。)
|
boolean |
getValidSettings()
Returns the valid settings.
(返回有效设置。)
|
short |
getVResolution()
Returns the vertical resolution.
(返回垂直分辨率。)
|
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 |
setLeftToRight(boolean ltor)
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 |
setPageStart(short start)
Set the page numbering start.
(设置页码开始。)
|
void |
setPaperSize(short size)
Set the paper size.
(设置纸张尺寸。)
|
void |
setScale(short scale)
Set the scale.
(设置比例。)
|
void |
setUsePage(boolean page)
Set whether to use page start
(设置是否使用页面启动)
|
void |
setValidSettings(boolean valid)
Valid settings.
(有效设置。)
|
void |
setVResolution(short resolution)
Sets the vertical resolution.
(设置垂直分辨率。)
|
static final short PRINTER_DEFAULT_PAPERSIZE
static final short LETTER_PAPERSIZE
static final short LETTER_SMALL_PAGESIZE
static final short TABLOID_PAPERSIZE
static final short LEDGER_PAPERSIZE
static final short LEGAL_PAPERSIZE
static final short STATEMENT_PAPERSIZE
static final short EXECUTIVE_PAPERSIZE
static final short A3_PAPERSIZE
static final short A4_PAPERSIZE
static final short A4_SMALL_PAPERSIZE
static final short A5_PAPERSIZE
static final short B4_PAPERSIZE
static final short B5_PAPERSIZE
static final short FOLIO8_PAPERSIZE
static final short QUARTO_PAPERSIZE
static final short TEN_BY_FOURTEEN_PAPERSIZE
static final short ELEVEN_BY_SEVENTEEN_PAPERSIZE
static final short NOTE8_PAPERSIZE
static final short ENVELOPE_9_PAPERSIZE
static final short ENVELOPE_10_PAPERSIZE
static final short ENVELOPE_DL_PAPERSIZE
static final short ENVELOPE_CS_PAPERSIZE
static final short ENVELOPE_C5_PAPERSIZE
static final short ENVELOPE_C3_PAPERSIZE
static final short ENVELOPE_C4_PAPERSIZE
static final short ENVELOPE_C6_PAPERSIZE
static final short ENVELOPE_MONARCH_PAPERSIZE
static final short A4_EXTRA_PAPERSIZE
static final short A4_TRANSVERSE_PAPERSIZE
static final short A4_PLUS_PAPERSIZE
static final short LETTER_ROTATED_PAPERSIZE
static final short A4_ROTATED_PAPERSIZE
void setPaperSize(short size)
size
- the paper size.
(size - 纸张大小。)
void setScale(short scale)
scale
- the scale to use
(scale - 要使用的比例)
void setPageStart(short start)
start
- the page numbering start
(start - 页码开始)
void setFitWidth(short width)
width
- the number of pages
(宽度 - 页数)
void setFitHeight(short height)
height
- the number of pages
(高度 - 页数)
void setLeftToRight(boolean ltor)
ltor
- left to right
(ltor - 从左到右)
void setLandscape(boolean ls)
ls
- landscape
(ls - 风景)
void setValidSettings(boolean valid)
valid
- Valid
(有效 - 有效)
void setNoColor(boolean mono)
mono
- Black and white
(单色 - 黑白)
void setDraft(boolean d)
d
- draft
(d - 草稿)
void setNotes(boolean printnotes)
printnotes
- print the notes
(printnotes - 打印笔记)
void setNoOrientation(boolean orientation)
orientation
- Orientation.
(方向 - 方向。)
void setUsePage(boolean page)
page
- Use page start
(page - 使用页面开始)
void setHResolution(short resolution)
resolution
- horizontal resolution
(分辨率 - 水平分辨率)
void setVResolution(short resolution)
resolution
- vertical resolution
(分辨率 - 垂直分辨率)
void setHeaderMargin(double headermargin)
headermargin
- header margin
(headermargin - 标题页边距)
void setFooterMargin(double footermargin)
footermargin
- footer margin
(footermargin - 页脚边距)
void setCopies(short copies)
copies
- number of copies
(份数 - 份数)
short getPaperSize()
short getScale()
short getPageStart()
short getFitWidth()
short getFitHeight()
boolean getLeftToRight()
boolean getLandscape()
boolean getValidSettings()
boolean getNoColor()
boolean getDraft()
boolean getNotes()
boolean getNoOrientation()
boolean getUsePage()
short getHResolution()
short getVResolution()
double getHeaderMargin()
double getFooterMargin()
short getCopies()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.