src/share/classes/javax/print/attribute/standard/ColorSupported.java

Print this page




  35  * instructions having to do with color are embedded within the print data (none
  36  * are attributes attached to the job outside the print data).
  37  * <P>
  38  * Note: End users are able to determine the nature and details of the color
  39  * support by querying the {@link PrinterMoreInfoManufacturer
  40  * PrinterMoreInfoManufacturer} attribute.
  41  * <P>
  42  * Don't confuse the ColorSupported attribute with the {@link Chromaticity
  43  * Chromaticity} attribute. {@link Chromaticity Chromaticity} is an attribute
  44  * the client can specify for a job to tell the printer whether to print a
  45  * document in monochrome or color, possibly causing the printer to print a
  46  * color document in monochrome. ColorSupported is a printer description
  47  * attribute that tells whether the printer can print in color regardless of how
  48  * the client specifies to print any particular document.
  49  * <P>
  50  * <B>IPP Compatibility:</B> The IPP boolean value is "true" for SUPPORTED and
  51  * "false" for NOT_SUPPORTED. The category name returned by
  52  * <CODE>getName()</CODE> is the IPP attribute name.  The enumeration's
  53  * integer value is the IPP enum value.  The <code>toString()</code> method
  54  * returns the IPP string representation of the attribute value.
  55  * <P>
  56  *
  57  * @author  Alan Kaminsky
  58  */
  59 public final class ColorSupported extends EnumSyntax
  60     implements PrintServiceAttribute {
  61 
  62     private static final long serialVersionUID = -2700555589688535545L;
  63 
  64     /**
  65      * The printer is not capable of any type of color printing.
  66      */
  67     public static final ColorSupported NOT_SUPPORTED = new ColorSupported(0);
  68 
  69     /**
  70      * The printer is capable of some type of color printing, such as
  71      * highlight color or full process color.
  72      */
  73     public static final ColorSupported SUPPORTED = new ColorSupported(1);
  74 
  75     /**




  35  * instructions having to do with color are embedded within the print data (none
  36  * are attributes attached to the job outside the print data).
  37  * <P>
  38  * Note: End users are able to determine the nature and details of the color
  39  * support by querying the {@link PrinterMoreInfoManufacturer
  40  * PrinterMoreInfoManufacturer} attribute.
  41  * <P>
  42  * Don't confuse the ColorSupported attribute with the {@link Chromaticity
  43  * Chromaticity} attribute. {@link Chromaticity Chromaticity} is an attribute
  44  * the client can specify for a job to tell the printer whether to print a
  45  * document in monochrome or color, possibly causing the printer to print a
  46  * color document in monochrome. ColorSupported is a printer description
  47  * attribute that tells whether the printer can print in color regardless of how
  48  * the client specifies to print any particular document.
  49  * <P>
  50  * <B>IPP Compatibility:</B> The IPP boolean value is "true" for SUPPORTED and
  51  * "false" for NOT_SUPPORTED. The category name returned by
  52  * <CODE>getName()</CODE> is the IPP attribute name.  The enumeration's
  53  * integer value is the IPP enum value.  The <code>toString()</code> method
  54  * returns the IPP string representation of the attribute value.

  55  *
  56  * @author  Alan Kaminsky
  57  */
  58 public final class ColorSupported extends EnumSyntax
  59     implements PrintServiceAttribute {
  60 
  61     private static final long serialVersionUID = -2700555589688535545L;
  62 
  63     /**
  64      * The printer is not capable of any type of color printing.
  65      */
  66     public static final ColorSupported NOT_SUPPORTED = new ColorSupported(0);
  67 
  68     /**
  69      * The printer is capable of some type of color printing, such as
  70      * highlight color or full process color.
  71      */
  72     public static final ColorSupported SUPPORTED = new ColorSupported(1);
  73 
  74     /**