25 26 package javax.print.attribute.standard; 27 28 import javax.print.attribute.Attribute; 29 import javax.print.attribute.DocAttribute; 30 import javax.print.attribute.EnumSyntax; 31 import javax.print.attribute.PrintJobAttribute; 32 import javax.print.attribute.PrintRequestAttribute; 33 34 /** 35 * Class {@code Chromaticity} is a printing attribute class, an enumeration, 36 * that specifies monochrome or color printing. This is used by a print client 37 * to specify how the print data should be generated or processed. It is not 38 * descriptive of the color capabilities of the device. Query the service's 39 * {@link ColorSupported ColorSupported} attribute to determine if the device 40 * can be verified to support color printing. 41 * <p> 42 * The table below shows the effects of specifying a Chromaticity attribute of 43 * {@link #MONOCHROME MONOCHROME} or {@link #COLOR COLOR} for a monochrome or 44 * color document. 45 * <table class="striped"> 46 * <caption>Shows effects of specifying {@code MONOCHROME} or {@code COLOR} 47 * Chromaticity attributes</caption> 48 * <thead> 49 * <tr> 50 * <th>Chromaticity<br>Attribute 51 * <th>Effect on<br>Monochrome Document 52 * <th>Effect on<br>Color Document 53 * </thead> 54 * <tbody> 55 * <tr> 56 * <td>{@link #MONOCHROME MONOCHROME} 57 * <td>Printed as is, in monochrome 58 * <td>Printed in monochrome, with colors converted to shades of gray 59 * <tr> 60 * <td>{@link #COLOR COLOR} 61 * <td>Printed as is, in monochrome 62 * <td>Printed as is, in color 63 * </tbody> 64 * </table> 65 * <p> 66 * <b>IPP Compatibility:</b> Chromaticity is not an IPP attribute at present. 67 * 68 * @author Alan Kaminsky 69 */ 70 public final class Chromaticity extends EnumSyntax 71 implements DocAttribute, PrintRequestAttribute, PrintJobAttribute { 72 73 /** 74 * Use serialVersionUID from JDK 1.4 for interoperability. 75 */ 76 private static final long serialVersionUID = 4660543931355214012L; 77 78 /** 79 * Monochrome printing. 80 */ | 25 26 package javax.print.attribute.standard; 27 28 import javax.print.attribute.Attribute; 29 import javax.print.attribute.DocAttribute; 30 import javax.print.attribute.EnumSyntax; 31 import javax.print.attribute.PrintJobAttribute; 32 import javax.print.attribute.PrintRequestAttribute; 33 34 /** 35 * Class {@code Chromaticity} is a printing attribute class, an enumeration, 36 * that specifies monochrome or color printing. This is used by a print client 37 * to specify how the print data should be generated or processed. It is not 38 * descriptive of the color capabilities of the device. Query the service's 39 * {@link ColorSupported ColorSupported} attribute to determine if the device 40 * can be verified to support color printing. 41 * <p> 42 * The table below shows the effects of specifying a Chromaticity attribute of 43 * {@link #MONOCHROME MONOCHROME} or {@link #COLOR COLOR} for a monochrome or 44 * color document. 45 * 46 * <table class="striped"> 47 * <caption>Shows effects of specifying {@code MONOCHROME} or {@code COLOR} 48 * Chromaticity attributes</caption> 49 * <thead> 50 * <tr> 51 * <th scope="col">Chromaticity<br>Attribute 52 * <th scope="col">Effect on<br>Monochrome Document 53 * <th scope="col">Effect on<br>Color Document 54 * </thead> 55 * <tbody> 56 * <tr> 57 * <th scope="row">{@link #MONOCHROME MONOCHROME} 58 * <td>Printed as is, in monochrome 59 * <td>Printed in monochrome, with colors converted to shades of gray 60 * <tr> 61 * <th scope="row">{@link #COLOR COLOR} 62 * <td>Printed as is, in monochrome 63 * <td>Printed as is, in color 64 * </tbody> 65 * </table> 66 * <p> 67 * <b>IPP Compatibility:</b> Chromaticity is not an IPP attribute at present. 68 * 69 * @author Alan Kaminsky 70 */ 71 public final class Chromaticity extends EnumSyntax 72 implements DocAttribute, PrintRequestAttribute, PrintJobAttribute { 73 74 /** 75 * Use serialVersionUID from JDK 1.4 for interoperability. 76 */ 77 private static final long serialVersionUID = 4660543931355214012L; 78 79 /** 80 * Monochrome printing. 81 */ |