1 /*
2 * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
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 /**
|
1 /*
2 * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
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 /**
|