JavaTM 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 Platform
Standard Ed. 6

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

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