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。