Module java.desktop
Package java.awt

Class PageAttributes.ColorType

java.lang.Object
java.awt.PageAttributes.ColorType
Enclosing class:
PageAttributes

public static final class PageAttributes.ColorType extends Object
A type-safe enumeration of possible color states.
Since:
1.3
  • Field Details

    • COLOR

      public static final PageAttributes.ColorType COLOR
      The ColorType instance to use for specifying color printing.
    • MONOCHROME

      public static final PageAttributes.ColorType MONOCHROME
      The ColorType instance to use for specifying monochrome printing.
  • Method Details

    • hashCode

      public int hashCode()
      Description copied from class: Object
      Answers an integer hash code for the receiver. Any two objects which answer true when passed to .equals must answer the same value for this method.
      Overrides:
      hashCode in class Object
      Returns:
      the receiver's hash.
      See Also:
    • toString

      public String toString()
      Description copied from class: Object
      Answers a string containing a concise, human-readable description of the receiver.
      Overrides:
      toString in class Object
      Returns:
      String a printable representation for the receiver.