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

Print this page


   1 /*
   2  * Copyright (c) 2000, 2013, 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


 132  * <LI>
 133  * If different docs have different sheet collations specified, then only one
 134  * value of {@link MultipleDocumentHandling MultipleDocumentHandling} is
 135  * permitted, and the printer reports an error when the job is submitted if any
 136  * other value is specified:
 137  * <UL>
 138  * <LI>
 139  * {@link MultipleDocumentHandling MultipleDocumentHandling} =
 140  * SEPARATE_DOCUMENTS_UNCOLLATED_COPIES -- Each input doc will remain a separate
 141  * output document. Multiple copies of each output document (call them A, B,
 142  * . . .) will be produced with each document's pages in collated or uncollated
 143  * order as the corresponding input doc's SheetCollate attribute specifies, and
 144  * with the documents themselves in uncollated order. If document A had
 145  * SheetCollate = UNCOLLATED and document B had SheetCollate = COLLATED, the
 146  * following pages would be produced: A1, A1, . . ., A2, A2, . . ., A3, A3,
 147  * . . ., B1, B2, B3, . . ., B1, B2, B3, . . .
 148  * </UL>
 149  * </UL>
 150  * <P>
 151  * <B>IPP Compatibility:</B> SheetCollate is not an IPP attribute at present.
 152  * <P>
 153  *
 154  * @see  MultipleDocumentHandling
 155  *
 156  * @author  Alan Kaminsky
 157  */
 158 public final class SheetCollate extends EnumSyntax
 159     implements DocAttribute, PrintRequestAttribute, PrintJobAttribute {
 160 
 161     private static final long serialVersionUID = 7080587914259873003L;
 162 
 163     /**
 164      * Sheets within a document appear in uncollated order when multiple
 165      * copies are printed.
 166      */
 167     public static final SheetCollate UNCOLLATED = new SheetCollate(0);
 168 
 169     /**
 170      * Sheets within a document appear in collated order when multiple copies
 171      * are printed.
 172      */


   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


 132  * <LI>
 133  * If different docs have different sheet collations specified, then only one
 134  * value of {@link MultipleDocumentHandling MultipleDocumentHandling} is
 135  * permitted, and the printer reports an error when the job is submitted if any
 136  * other value is specified:
 137  * <UL>
 138  * <LI>
 139  * {@link MultipleDocumentHandling MultipleDocumentHandling} =
 140  * SEPARATE_DOCUMENTS_UNCOLLATED_COPIES -- Each input doc will remain a separate
 141  * output document. Multiple copies of each output document (call them A, B,
 142  * . . .) will be produced with each document's pages in collated or uncollated
 143  * order as the corresponding input doc's SheetCollate attribute specifies, and
 144  * with the documents themselves in uncollated order. If document A had
 145  * SheetCollate = UNCOLLATED and document B had SheetCollate = COLLATED, the
 146  * following pages would be produced: A1, A1, . . ., A2, A2, . . ., A3, A3,
 147  * . . ., B1, B2, B3, . . ., B1, B2, B3, . . .
 148  * </UL>
 149  * </UL>
 150  * <P>
 151  * <B>IPP Compatibility:</B> SheetCollate is not an IPP attribute at present.

 152  *
 153  * @see  MultipleDocumentHandling
 154  *
 155  * @author  Alan Kaminsky
 156  */
 157 public final class SheetCollate extends EnumSyntax
 158     implements DocAttribute, PrintRequestAttribute, PrintJobAttribute {
 159 
 160     private static final long serialVersionUID = 7080587914259873003L;
 161 
 162     /**
 163      * Sheets within a document appear in uncollated order when multiple
 164      * copies are printed.
 165      */
 166     public static final SheetCollate UNCOLLATED = new SheetCollate(0);
 167 
 168     /**
 169      * Sheets within a document appear in collated order when multiple copies
 170      * are printed.
 171      */