JavaTM 2 Platform
Standard Ed. 6

类 java.awt.PageAttributes.ColorType
的使用

使用 PageAttributes.ColorType 的软件包
java.awt 包含用于创建用户界面和绘制图形图像的所有类。 
 

java.awtPageAttributes.ColorType 的使用
 

声明为 PageAttributes.ColorTypejava.awt 中的字段
static PageAttributes.ColorType PageAttributes.ColorType.COLOR
          用来指定颜色打印的 ColorType 实例。
static PageAttributes.ColorType PageAttributes.ColorType.MONOCHROME
          用来指定单色打印的 ColorType 实例。
 

返回 PageAttributes.ColorTypejava.awt 中的方法
 PageAttributes.ColorType PageAttributes.getColor()
          返回使用这些属性的页面是以彩色呈现,还是以单色呈现。
 

参数类型为 PageAttributes.ColorTypejava.awt 中的方法
 void PageAttributes.setColor(PageAttributes.ColorType color)
          指定使用这些属性的页面以彩色呈现,还是以单色呈现。
 

参数类型为 PageAttributes.ColorTypejava.awt 中的构造方法
PageAttributes(PageAttributes.ColorType color, PageAttributes.MediaType media, PageAttributes.OrientationRequestedType orientationRequested, PageAttributes.OriginType origin, PageAttributes.PrintQualityType printQuality, int[] printerResolution)
          构造一个具有每个属性的指定值的 PageAttributes 实例。
 


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

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