站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JavaTM 2 Platform Standard Edition 5.0 API 规范中文版

接口 javax.print.attribute.PrintRequestAttributeSet 的使用 (Java 2 Platform SE 5.0) - JavaTM 2 Platform Standard Edition 5.0 API 规范中文版

JavaTM 2 Platform
Standard Ed. 5.0

接口 javax.print.attribute.PrintRequestAttributeSet
的使用

使用 PrintRequestAttributeSet 的软件包
java.awt.print 为通用的打印 API 提供类和接口。 
javax.print 为 JavaTM Print Service API 提供了主要类和接口。 
javax.print.attribute 提供了描述 JavaTM Print Service 属性的类型以及如何分类这些属性的类和接口。 
javax.swing 提供一组“轻量级”(全部是 Java 语言)组件,尽量让这些组件在所有平台上的工作方式都相同。 
 

java.awt.print 中 PrintRequestAttributeSet 的使用
 

参数类型为 PrintRequestAttributeSet 的 java.awt.print 中的方法
 PageFormat PrinterJob.pageDialog(PrintRequestAttributeSet attributes)
          显示跨平台页面设置对话框的便捷方法。
 void PrinterJob.print(PrintRequestAttributeSet attributes)
          使用属性集中的设置打印一组页面。
 boolean PrinterJob.printDialog(PrintRequestAttributeSet attributes)
          为所有服务显示跨平台打印对话框的便捷方法,这些服务能够使用 Pageable 接口打印 2D 图形。
 

javax.print 中 PrintRequestAttributeSet 的使用
 

参数类型为 PrintRequestAttributeSet 的 javax.print 中的方法
 void DocPrintJob.print(Doc doc, PrintRequestAttributeSet attributes)
          使用指定的作业属性打印文档。
 void MultiDocPrintJob.print(MultiDoc multiDoc, PrintRequestAttributeSet attributes)
          使用指定的作业属性打印 MultiDoc。
static PrintService ServiceUI.printDialog(GraphicsConfiguration gc, int x, int y, PrintService[] services, PrintService defaultService, DocFlavor flavor, PrintRequestAttributeSet attributes)
          为用户提供一个选择 PrintService(打印机)的对话框。
 

javax.print.attribute 中 PrintRequestAttributeSet 的使用
 

实现 PrintRequestAttributeSet 的 javax.print.attribute 中的类
 class HashPrintRequestAttributeSet
          类 HashPrintRequestAttributeSet 从类 HashAttributeSet 继承其实现,并强制执行接口 PrintRequestAttributeSet 的语义限制。
 

返回 PrintRequestAttributeSet 的 javax.print.attribute 中的方法
static PrintRequestAttributeSet AttributeSetUtilities.synchronizedView(PrintRequestAttributeSet attributeSet)
          创建一个给定打印请求属性集的同步视图。
static PrintRequestAttributeSet AttributeSetUtilities.unmodifiableView(PrintRequestAttributeSet attributeSet)
          创建一个给定打印请求属性集的不可修改的视图。
 

参数类型为 PrintRequestAttributeSet 的 javax.print.attribute 中的方法
static PrintRequestAttributeSet AttributeSetUtilities.synchronizedView(PrintRequestAttributeSet attributeSet)
          创建一个给定打印请求属性集的同步视图。
static PrintRequestAttributeSet AttributeSetUtilities.unmodifiableView(PrintRequestAttributeSet attributeSet)
          创建一个给定打印请求属性集的不可修改的视图。
 

参数类型为 PrintRequestAttributeSet 的 javax.print.attribute 中的构造方法
HashPrintRequestAttributeSet(PrintRequestAttributeSet attributes)
          构造一个最初使用给定集合中的值填充的新属性集,其中该属性集的成员限于 (PrintRequestAttributeSe 接口。
 

javax.swing 中 PrintRequestAttributeSet 的使用
 

参数类型为 PrintRequestAttributeSet 的 javax.swing 中的方法
 boolean JTable.print(JTable.PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintRequestAttributeSet attr, boolean interactive)
          打印此 JTable。
 


JavaTM 2 Platform
Standard Ed. 5.0

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java 2 SDK SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。