Uses of Class java.awt.PageAttributes.ColorType (Java Platform SE 8 )
Date: 2026-03-16

## Uses of Class
java.awt.PageAttributes.ColorType

- Packages that use PageAttributes.ColorType
  Package | Description
  --- | ---
  java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images.

- - ### Uses of PageAttributes.ColorType in java.awt

    Fields in java.awt declared as PageAttributes.ColorType
    Modifier and Type | Field and Description
    --- | ---
    `static PageAttributes.ColorType` | PageAttributes.ColorType.`COLOR` The ColorType instance to use for specifying color printing.
    `static PageAttributes.ColorType` | PageAttributes.ColorType.`MONOCHROME` The ColorType instance to use for specifying monochrome printing.

    Methods in java.awt that return PageAttributes.ColorType
    Modifier and Type | Method and Description
    --- | ---
    `PageAttributes.ColorType` | PageAttributes.`getColor()` Returns whether pages using these attributes will be rendered in color or monochrome.

    Methods in java.awt with parameters of type PageAttributes.ColorType
    Modifier and Type | Method and Description
    --- | ---
    `void` | PageAttributes.`setColor(PageAttributes.ColorType color)` Specifies whether pages using these attributes will be rendered in color or monochrome.

    Constructors in java.awt with parameters of type PageAttributes.ColorType
    Constructor and Description
    `PageAttributes(PageAttributes.ColorType color, PageAttributes.MediaType media, PageAttributes.OrientationRequestedType orientationRequested, PageAttributes.OriginType origin, PageAttributes.PrintQualityType printQuality, int[] printerResolution)` Constructs a PageAttributes instance with the specified values for every attribute.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.