软件包 | 描述 |
---|---|
java.awt.print |
提供通用打印接口的类和接口。
|
javax.print |
提供了主要的类和接口的java
TM打印服务API。
|
javax.print.attribute |
提供类和接口描述java
TM打印服务属性的类型以及如何将它们收集到的属性集。
|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.text |
提供类和接口处理编辑和不可编辑的文本组件。
|
Modifier and Type | Method and Description |
---|---|
PageFormat |
PrinterJob.getPageFormat(PrintRequestAttributeSet attributes)
计算值一致的电流
PrintService 支持这项工作
PageFormat (即返回的值
getPrintService() )和媒体,在
attributes 包含可打印区域和方向。
|
PageFormat |
PrinterJob.pageDialog(PrintRequestAttributeSet attributes)
一种方便的方法,它显示一个跨平台的页面设置对话框。
|
void |
PrinterJob.print(PrintRequestAttributeSet attributes)
在属性集的设置中打印一组页。
|
boolean |
PrinterJob.printDialog(PrintRequestAttributeSet attributes)
一个方便的方法,显示了一个跨平台的打印对话框的所有服务都能够使用
Pageable 印刷二维图形界面。
|
Modifier and Type | Method and Description |
---|---|
void |
DocPrintJob.print(Doc doc, PrintRequestAttributeSet attributes)
用指定的作业属性打印文档。
|
void |
MultiDocPrintJob.print(MultiDoc multiDoc, PrintRequestAttributeSet attributes)
打印一个多文档与指定作业属性。
|
static PrintService |
ServiceUI.printDialog(GraphicsConfiguration gc, int x, int y, PrintService[] services, PrintService defaultService, DocFlavor flavor, PrintRequestAttributeSet attributes)
向用户提供一个对话框,用于选择打印服务(打印机)。
|
Modifier and Type | Class and Description |
---|---|
class |
HashPrintRequestAttributeSet
hashprintrequestattributeset类继承实现类
HashAttributeSet 并执行接口
PrintRequestAttributeSet 语义限制。
|
Modifier and Type | Method and Description |
---|---|
static PrintRequestAttributeSet |
AttributeSetUtilities.synchronizedView(PrintRequestAttributeSet attributeSet)
创建给定的打印请求属性集的同步视图。
|
static PrintRequestAttributeSet |
AttributeSetUtilities.unmodifiableView(PrintRequestAttributeSet attributeSet)
创建一个不可修改的视图的打印请求属性集。
|
Modifier and Type | Method and Description |
---|---|
static PrintRequestAttributeSet |
AttributeSetUtilities.synchronizedView(PrintRequestAttributeSet attributeSet)
创建给定的打印请求属性集的同步视图。
|
static PrintRequestAttributeSet |
AttributeSetUtilities.unmodifiableView(PrintRequestAttributeSet attributeSet)
创建一个不可修改的视图的打印请求属性集。
|
Constructor and Description |
---|
HashPrintRequestAttributeSet(PrintRequestAttributeSet attributes)
构建一个新的属性集,最初填充值从给定的属性集的成员限制在
(PrintRequestAttributeSe 接口。
|
Modifier and Type | Method and Description |
---|---|
boolean |
JTable.print(JTable.PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintRequestAttributeSet attr, boolean interactive)
打印此表,以全面的
print 方法指定默认打印机,与指定的打印服务。
|
boolean |
JTable.print(JTable.PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintRequestAttributeSet attr, boolean interactive, PrintService service)
这
JTable 版画。
|
Modifier and Type | Method and Description |
---|---|
boolean |
JTextComponent.print(MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintService service, PrintRequestAttributeSet attributes, boolean interactive)
这
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.