41 * document data. This information is generated by a device driver prior to
42 * the submission of the print job. Other document formats (such as
43 * <CODE>"text/plain"</CODE>) do not include the notion of desired orientation
44 * within the document data. In the latter case it is possible for the printer
45 * to bind the desired orientation to the document data after it has been
46 * submitted. It is expected that a printer would only support the
47 * OrientationRequested attribute for some document formats (e.g.,
48 * <CODE>"text/plain"</CODE> or <CODE>"text/html"</CODE>) but not others (e.g.
49 * <CODE>"application/postscript"</CODE>). This is no different from any other
50 * job template attribute, since a print job can always impose constraints
51 * among the values of different job template attributes.
52 * However, a special mention
53 * is made here since it is very likely that a printer will support the
54 * OrientationRequested attribute for only a subset of the supported document
55 * formats.
56 * <P>
57 * <B>IPP Compatibility:</B> The category name returned by
58 * <CODE>getName()</CODE> is the IPP attribute name. The enumeration's
59 * integer value is the IPP enum value. The <code>toString()</code> method
60 * returns the IPP string representation of the attribute value.
61 * <P>
62 *
63 * @author Alan Kaminsky
64 */
65 public final class OrientationRequested extends EnumSyntax
66 implements DocAttribute, PrintRequestAttribute, PrintJobAttribute {
67
68 private static final long serialVersionUID = -4447437289862822276L;
69
70 /**
71 * The content will be imaged across the short edge of the medium.
72 */
73 public static final OrientationRequested
74 PORTRAIT = new OrientationRequested(3);
75
76 /**
77 * The content will be imaged across the long edge of the medium.
78 * Landscape is defined to be a rotation of the print-stream page to be
79 * imaged by +90 degrees with respect to the medium
80 * (i.e. anti-clockwise) from the
81 * portrait orientation. <I>Note:</I> The +90 direction was chosen because
|
41 * document data. This information is generated by a device driver prior to
42 * the submission of the print job. Other document formats (such as
43 * <CODE>"text/plain"</CODE>) do not include the notion of desired orientation
44 * within the document data. In the latter case it is possible for the printer
45 * to bind the desired orientation to the document data after it has been
46 * submitted. It is expected that a printer would only support the
47 * OrientationRequested attribute for some document formats (e.g.,
48 * <CODE>"text/plain"</CODE> or <CODE>"text/html"</CODE>) but not others (e.g.
49 * <CODE>"application/postscript"</CODE>). This is no different from any other
50 * job template attribute, since a print job can always impose constraints
51 * among the values of different job template attributes.
52 * However, a special mention
53 * is made here since it is very likely that a printer will support the
54 * OrientationRequested attribute for only a subset of the supported document
55 * formats.
56 * <P>
57 * <B>IPP Compatibility:</B> The category name returned by
58 * <CODE>getName()</CODE> is the IPP attribute name. The enumeration's
59 * integer value is the IPP enum value. The <code>toString()</code> method
60 * returns the IPP string representation of the attribute value.
61 *
62 * @author Alan Kaminsky
63 */
64 public final class OrientationRequested extends EnumSyntax
65 implements DocAttribute, PrintRequestAttribute, PrintJobAttribute {
66
67 private static final long serialVersionUID = -4447437289862822276L;
68
69 /**
70 * The content will be imaged across the short edge of the medium.
71 */
72 public static final OrientationRequested
73 PORTRAIT = new OrientationRequested(3);
74
75 /**
76 * The content will be imaged across the long edge of the medium.
77 * Landscape is defined to be a rotation of the print-stream page to be
78 * imaged by +90 degrees with respect to the medium
79 * (i.e. anti-clockwise) from the
80 * portrait orientation. <I>Note:</I> The +90 direction was chosen because
|