JavaTM 2 Platform
Standard Ed. 6

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

使用 DocAttributeSet 的软件包
javax.print 为 JavaTM Print Service API 提供了主要类和接口。 
javax.print.attribute 提供了描述 JavaTM Print Service 属性的类型以及如何分类这些属性的类和接口。 
 

javax.print 中 DocAttributeSet 的使用
 

返回 DocAttributeSet 的 javax.print 中的方法
 DocAttributeSet Doc.getAttributes()
          获取此 doc 对象的打印属性集。
 DocAttributeSet SimpleDoc.getAttributes()
          获得此 doc 对象的打印属性集。
 

参数类型为 DocAttributeSet 的 javax.print 中的构造方法
SimpleDoc(Object printData, DocFlavor flavor, DocAttributeSet attributes)
          构造具有指定打印数据、doc flavor 和 doc 属性集的 SimpleDoc。
 

javax.print.attribute 中 DocAttributeSet 的使用
 

实现 DocAttributeSet 的 javax.print.attribute 中的类
 class HashDocAttributeSet
          类 HashDocAttributeSet 提供从类 HashAttributeSet 继承其实现的属性集,并强制执行接口 DocAttributeSet 的语义限制。
 

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

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

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


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only。