接口的使用
javax.print.attribute.PrintRequestAttributeSet
使用 PrintRequestAttributeSet 的包
包
描述
为通用打印 API 提供类和接口。
为 Java 打印服务 API 提供主要类和接口。
提供描述 Java Print Service 属性类型以及如何将它们收集到属性集中的类和接口。
提供一组“轻量级”(全 Java 语言)组件,尽可能在所有平台上以相同的方式工作。
提供处理可编辑和不可编辑文本组件的类和接口。
-
PrintRequestAttributeSet 在 java.awt.print 中的用法
java.awt.print 中的方法,参数类型为 PrintRequestAttributeSet修饰符和类型方法描述PrinterJob.getPageFormat(PrintRequestAttributeSet attributes) 计算PageFormat,其值与当前PrintService支持的值(即getPrintService()返回的值)和attributes中包含的介质、可打印区域和方向一致。PrinterJob.pageDialog(PrintRequestAttributeSet attributes) 一种显示跨平台页面设置对话框的便捷方法。voidPrinterJob.print(PrintRequestAttributeSet attributes) 使用属性集中的设置打印一组页面。booleanPrinterJob.printDialog(PrintRequestAttributeSet attributes) 一种方便的方法,它为所有能够使用Pageable接口打印 2D 图形的服务显示跨平台打印对话框。 -
PrintRequestAttributeSet 在 javax.print 中的用法
javax.print 中的方法,参数类型为 PrintRequestAttributeSet修饰符和类型方法描述voidDocPrintJob.print(Doc doc, PrintRequestAttributeSet attributes) 打印具有指定作业属性的文档。voidMultiDocPrintJob.print(MultiDoc multiDoc, PrintRequestAttributeSet attributes) 打印具有指定作业属性的MultiDoc。static PrintServiceServiceUI.printDialog(GraphicsConfiguration gc, int x, int y, PrintService[] services, PrintService defaultService, DocFlavor flavor, PrintRequestAttributeSet attributes) 向用户显示用于选择打印服务(打印机)的对话框。 -
PrintRequestAttributeSet 在 javax.print.attribute 中的用法
修饰符和类型类描述class修饰符和类型方法描述static PrintRequestAttributeSetAttributeSetUtilities.synchronizedView(PrintRequestAttributeSet attributeSet) 创建给定打印请求属性集的同步视图。static PrintRequestAttributeSetAttributeSetUtilities.unmodifiableView(PrintRequestAttributeSet attributeSet) 创建给定打印请求属性集的不可修改视图。javax.print.attribute 中的方法,参数类型为 PrintRequestAttributeSet修饰符和类型方法描述static PrintRequestAttributeSetAttributeSetUtilities.synchronizedView(PrintRequestAttributeSet attributeSet) 创建给定打印请求属性集的同步视图。static PrintRequestAttributeSetAttributeSetUtilities.unmodifiableView(PrintRequestAttributeSet attributeSet) 创建给定打印请求属性集的不可修改视图。javax.print.attribute 中的构造函数,参数类型为 PrintRequestAttributeSet修饰符构造方法描述HashPrintRequestAttributeSet(PrintRequestAttributeSet attributes) 构造一个新的属性集,最初使用给定集中的值填充,其中属性集的成员仅限于(PrintRequestAttributeSe接口。 -
PrintRequestAttributeSet 在 javax.swing 中的用法
javax.swing 中的方法,参数类型为 PrintRequestAttributeSet修饰符和类型方法描述booleanJTable.print(JTable.PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintRequestAttributeSet attr, boolean interactive) 按照功能齐全的print方法指定的方式打印此表,并将默认打印机指定为打印服务。booleanJTable.print(JTable.PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintRequestAttributeSet attr, boolean interactive, PrintService service) 打印这个JTable。 -
PrintRequestAttributeSet 在 javax.swing.text 中的用法
javax.swing.text 中的方法,参数类型为 PrintRequestAttributeSet修饰符和类型方法描述booleanJTextComponent.print(MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintService service, PrintRequestAttributeSet attributes, boolean interactive) 打印此JTextComponent的内容。