软件包 | 描述 |
---|---|
java.awt.print |
提供通用打印接口的类和接口。
|
Modifier and Type | Method and Description |
---|---|
PageFormat |
PrinterJob.defaultPage()
创建一个新的
PageFormat 实例并将其设置为默认的大小和方向。
|
abstract PageFormat |
PrinterJob.defaultPage(PageFormat page)
克隆
PageFormat 争论和改变克隆来描述一个默认的页面大小和方向。
|
PageFormat |
Pageable.getPageFormat(int pageIndex)
返回指定的页面
PageFormat
pageIndex 。
|
PageFormat |
Book.getPageFormat(int pageIndex)
返回指定的页面
PageFormat
pageIndex 。
|
PageFormat |
PrinterJob.getPageFormat(PrintRequestAttributeSet attributes)
计算值一致的电流
PrintService 支持这项工作
PageFormat (即返回的值
getPrintService() )和媒体,可打印区域定位包含在
attributes 。
|
abstract PageFormat |
PrinterJob.pageDialog(PageFormat page)
显示一个对话框,允许一个
PageFormat 实例修改。
|
PageFormat |
PrinterJob.pageDialog(PrintRequestAttributeSet attributes)
一种方便的方法,它显示一个跨平台的页面设置对话框。
|
abstract PageFormat |
PrinterJob.validatePage(PageFormat page)
返回它的设置调整为与本
PrinterJob 当前打印机兼容
page 克隆。
|
Modifier and Type | Method and Description |
---|---|
void |
Book.append(Printable painter, PageFormat page)
添加一个单页本
Book 结束。
|
void |
Book.append(Printable painter, PageFormat page, int numPages)
追加
numPages 页本
Book 结束。
|
abstract PageFormat |
PrinterJob.defaultPage(PageFormat page)
克隆
PageFormat 争论和改变克隆来描述一个默认的页面大小和方向。
|
abstract PageFormat |
PrinterJob.pageDialog(PageFormat page)
显示一个对话框,允许一个
PageFormat 实例修改。
|
int |
Printable.print(Graphics graphics, PageFormat pageFormat, int pageIndex)
打印页面中的指定索引处到指定的
Graphics 上下文中指定的格式。
|
void |
Book.setPage(int pageIndex, Printable painter, PageFormat page)
集
PageFormat 和指定页码的
Painter 。
|
abstract void |
PrinterJob.setPrintable(Printable painter, PageFormat format)
电话
painter 绘制指定的
format 页。
|
abstract PageFormat |
PrinterJob.validatePage(PageFormat page)
返回它的设置调整为与本
PrinterJob 当前打印机兼容
page 克隆。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.