软件包 | 描述 |
---|---|
java.awt.print |
提供通用打印接口的类和接口。
|
javax.print |
提供了主要的类和接口的java
TM打印服务API。
|
javax.print.event |
包javax.print.event包含事件类和监听器接口。
|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.text |
提供类和接口处理编辑和不可编辑的文本组件。
|
Modifier and Type | Method and Description |
---|---|
PrintService |
PrinterJob.getPrintService()
返回此打印机作业的服务(打印机)。
|
static PrintService[] |
PrinterJob.lookupPrintServices()
一种方便的方法,它查找二维打印服务。
|
Modifier and Type | Method and Description |
---|---|
void |
PrinterJob.setPrintService(PrintService service)
这一新的打字printerjob副。
|
Modifier and Type | Interface and Description |
---|---|
interface |
MultiDocPrintService
接口multiprintservice是一multidocprintjob工厂。
|
Modifier and Type | Class and Description |
---|---|
class |
StreamPrintService
这类扩展
PrintService 代表打印服务的打印数据格式不同,给客户提供的输出流。
|
Modifier and Type | Method and Description |
---|---|
abstract PrintService |
PrintServiceLookup.getDefaultPrintService()
不直接调用应用程序。
|
PrintService |
DocPrintJob.getPrintService()
决定
PrintService 对象的打印作业对象绑定。
|
abstract PrintService[] |
PrintServiceLookup.getPrintServices()
不直接调用应用程序。
|
abstract PrintService[] |
PrintServiceLookup.getPrintServices(DocFlavor flavor, AttributeSet attributes)
定位服务,可以积极确认支持的属性的组合和docflavors指定。
|
static PrintService |
PrintServiceLookup.lookupDefaultPrintService()
定位此环境的默认打印服务。
|
static PrintService[] |
PrintServiceLookup.lookupPrintServices(DocFlavor flavor, AttributeSet attributes)
位于打印服务可以打印指定的
DocFlavor 。
|
static PrintService |
ServiceUI.printDialog(GraphicsConfiguration gc, int x, int y, PrintService[] services, PrintService defaultService, DocFlavor flavor, PrintRequestAttributeSet attributes)
向用户提供一个对话框,用于选择打印服务(打印机)。
|
Modifier and Type | Method and Description |
---|---|
static PrintService |
ServiceUI.printDialog(GraphicsConfiguration gc, int x, int y, PrintService[] services, PrintService defaultService, DocFlavor flavor, PrintRequestAttributeSet attributes)
向用户提供一个对话框,用于选择打印服务(打印机)。
|
static PrintService |
ServiceUI.printDialog(GraphicsConfiguration gc, int x, int y, PrintService[] services, PrintService defaultService, DocFlavor flavor, PrintRequestAttributeSet attributes)
向用户提供一个对话框,用于选择打印服务(打印机)。
|
static boolean |
PrintServiceLookup.registerService(PrintService service)
允许应用程序直接注册一个实现打印服务的类的实例。
|
Modifier and Type | Method and Description |
---|---|
PrintService |
PrintServiceAttributeEvent.getPrintService()
返回打印服务。
|
Constructor and Description |
---|
PrintServiceAttributeEvent(PrintService source, PrintServiceAttributeSet attributes)
构建了一个printserviceattributeevent对象。
|
Modifier and Type | Method and Description |
---|---|
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.