软件包 | 描述 |
---|---|
java.awt.print |
提供通用打印接口的类和接口。
|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.text |
提供类和接口处理编辑和不可编辑的文本组件。
|
Modifier and Type | Method and Description |
---|---|
Printable |
Pageable.getPrintable(int pageIndex)
返回
Printable 负责绘制指定的
pageIndex 页。
|
Printable |
Book.getPrintable(int pageIndex)
返回
Printable 负责绘制指定的
pageIndex 页。
|
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 结束。
|
void |
Book.setPage(int pageIndex, Printable painter, PageFormat page)
集
PageFormat 和指定页码的
Painter 。
|
abstract void |
PrinterJob.setPrintable(Printable painter)
电话
painter 渲染页面。
|
abstract void |
PrinterJob.setPrintable(Printable painter, PageFormat format)
电话
painter 绘制指定的
format 页。
|
Modifier and Type | Method and Description |
---|---|
Printable |
JTable.getPrintable(JTable.PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat)
返回一个用于印刷这个JTable
Printable 。
|
Modifier and Type | Method and Description |
---|---|
Printable |
JTextComponent.getPrintable(MessageFormat headerFormat, MessageFormat footerFormat)
返回一个
Printable 印刷使用的这
JTextComponent 内容。
|
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.