jdk/src/java.desktop/share/classes/javax/print/attribute/standard/SheetCollate.java
author serb
Thu, 31 Aug 2017 15:47:34 -0700
changeset 47196 a3211bb4daff
parent 35667 ed476aba94de
permissions -rw-r--r--
8184435: Cleanup of javadoc in javax.print package Reviewed-by: prr, psadhukhan
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
     2
 * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    25
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package javax.print.attribute.standard;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import javax.print.attribute.Attribute;
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    29
import javax.print.attribute.DocAttribute;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import javax.print.attribute.EnumSyntax;
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    31
import javax.print.attribute.PrintJobAttribute;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import javax.print.attribute.PrintRequestAttribute;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
/**
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    35
 * Class {@code SheetCollate} is a printing attribute class, an enumeration,
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    36
 * that specifies whether or not the media sheets of each copy of each printed
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * document in a job are to be in sequence, when multiple copies of the document
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    38
 * are specified by the {@link Copies Copies} attribute. When
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    39
 * {@code SheetCollate} is {@code COLLATED}, each copy of each document is
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    40
 * printed with the print-stream sheets in sequence. When {@code SheetCollate}
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    41
 * is {@code UNCOLLATED}, each print-stream sheet is printed a number of times
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    42
 * equal to the value of the {@link Copies Copies} attribute in succession. For
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    43
 * example, suppose a document produces two media sheets as output,
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    44
 * {@link Copies Copies} is 6, and {@code SheetCollate} is UNCOLLATED; in this
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    45
 * case six copies of the first media sheet are printed followed by six copies
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    46
 * of the second media sheet.
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    47
 * <p>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * Whether the effect of sheet collation is achieved by placing copies of a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 * document in multiple output bins or in the same output bin with
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    50
 * implementation defined document separation is implementation dependent. Also
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    51
 * whether it is achieved by making multiple passes over the job or by using an
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    52
 * output sorter is implementation dependent.
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    53
 * <p>
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    54
 * If a printer does not support the {@code SheetCollate} attribute (meaning the
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    55
 * client cannot specify any particular sheet collation), the printer must
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    56
 * behave as though {@code SheetCollate} were always set to {@code COLLATED}.
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    57
 * <p>
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    58
 * The {@code SheetCollate} attribute interacts with the
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    59
 * {@link MultipleDocumentHandling MultipleDocumentHandling} attribute. The
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    60
 * {@link MultipleDocumentHandling MultipleDocumentHandling} attribute describes
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    61
 * the collation of entire documents, and the {@code SheetCollate} attribute
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    62
 * describes the semantics of collating individual pages within a document.
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    63
 * <p>
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    64
 * The effect of a {@code SheetCollate} attribute on a multidoc print job (a job
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    65
 * with multiple documents) depends on whether all the docs have the same sheet
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    66
 * collation specified or whether different docs have different sheet collations
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    67
 * specified, and on the (perhaps defaulted) value of the
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    68
 * {@link MultipleDocumentHandling MultipleDocumentHandling} attribute.
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    69
 * <ul>
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    70
 *   <li>If all the docs have the same sheet collation specified, then the
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    71
 *   following combinations of {@code SheetCollate} and
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    72
 *   {@link MultipleDocumentHandling MultipleDocumentHandling} are permitted,
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    73
 *   and the printer reports an error when the job is submitted if any other
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    74
 *   combination is specified:
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    75
 *   <ul>
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    76
 *     <li>SheetCollate = COLLATED, {@link MultipleDocumentHandling
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    77
 *     MultipleDocumentHandling} = SINGLE_DOCUMENT -- All the input docs will be
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    78
 *     combined into one output document. Multiple copies of the output document
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    79
 *     will be produced with pages in collated order, i.e. pages 1, 2, 3, . . .,
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    80
 *     1, 2, 3, . . .
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    81
 *     <li>SheetCollate = COLLATED, {@link MultipleDocumentHandling
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    82
 *     MultipleDocumentHandling} = SINGLE_DOCUMENT_NEW_SHEET -- All the input
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    83
 *     docs will be combined into one output document, and the first impression
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    84
 *     of each input doc will always start on a new media sheet. Multiple copies
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    85
 *     of the output document will be produced with pages in collated order,
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    86
 *     i.e. pages 1, 2, 3, . . ., 1, 2, 3, . . .
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    87
 *     <li>SheetCollate = COLLATED, {@link MultipleDocumentHandling
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    88
 *     MultipleDocumentHandling} = SEPARATE_DOCUMENTS_UNCOLLATED_COPIES -- Each
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    89
 *     input doc will remain a separate output document. Multiple copies of each
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    90
 *     output document (call them A, B, . . .) will be produced with each
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    91
 *     document's pages in collated order, but the documents themselves in
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    92
 *     uncollated order, i.e. pages A1, A2, A3, . . ., A1, A2, A3, . . ., B1,
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    93
 *     B2, B3, . . ., B1, B2, B3, . . .
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    94
 *     <li>SheetCollate = COLLATED, {@link MultipleDocumentHandling
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    95
 *     MultipleDocumentHandling} = SEPARATE_DOCUMENTS_COLLATED_COPIES -- Each
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    96
 *     input doc will remain a separate output document. Multiple copies of each
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    97
 *     output document (call them A, B, . . .) will be produced with each
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    98
 *     document's pages in collated order, with the documents themselves also in
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
    99
 *     collated order, i.e. pages A1, A2, A3, . . ., B1, B2, B3, . . ., A1, A2,
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   100
 *     A3, . . ., B1, B2, B3, . . .
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   101
 *     <li>SheetCollate = UNCOLLATED, {@link MultipleDocumentHandling
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   102
 *     MultipleDocumentHandling} = SINGLE_DOCUMENT -- All the input docs will be
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   103
 *     combined into one output document. Multiple copies of the output document
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   104
 *     will be produced with pages in uncollated order, i.e. pages 1, 1, . . .,
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   105
 *     2, 2, . . ., 3, 3, . . .
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   106
 *     <li>SheetCollate = UNCOLLATED, {@link MultipleDocumentHandling
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   107
 *     MultipleDocumentHandling} = SINGLE_DOCUMENT_NEW_SHEET -- All the input
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   108
 *     docs will be combined into one output document, and the first impression
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   109
 *     of each input doc will always start on a new media sheet. Multiple copies
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   110
 *     of the output document will be produced with pages in uncollated order,
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   111
 *     i.e. pages 1, 1, . . ., 2, 2, . . ., 3, 3, . . .
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   112
 *     <li>SheetCollate = UNCOLLATED, {@link MultipleDocumentHandling
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   113
 *     MultipleDocumentHandling} = SEPARATE_DOCUMENTS_UNCOLLATED_COPIES -- Each
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   114
 *     input doc will remain a separate output document. Multiple copies of each
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   115
 *     output document (call them A, B, . . .) will be produced with each
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   116
 *     document's pages in uncollated order, with the documents themselves also
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   117
 *     in uncollated order, i.e. pages A1, A1, . . ., A2, A2, . . ., A3, A3, . .
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   118
 *     ., B1, B1, . . ., B2, B2, . . ., B3, B3, . . .
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   119
 *   </ul>
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   120
 *   <li>If different docs have different sheet collations specified, then only
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   121
 *   one value of {@link MultipleDocumentHandling MultipleDocumentHandling} is
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   122
 *   permitted, and the printer reports an error when the job is submitted if
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   123
 *   any other value is specified:
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   124
 *   <ul>
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   125
 *     <li>{@link MultipleDocumentHandling MultipleDocumentHandling} =
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   126
 *     SEPARATE_DOCUMENTS_UNCOLLATED_COPIES -- Each input doc will remain a
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   127
 *     separate output document. Multiple copies of each output document (call
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   128
 *     them A, B, . . .) will be produced with each document's pages in collated
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   129
 *     or uncollated order as the corresponding input doc's SheetCollate
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   130
 *     attribute specifies, and with the documents themselves in uncollated
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   131
 *     order. If document A had SheetCollate = UNCOLLATED and document B had
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   132
 *     SheetCollate = COLLATED, the following pages would be produced: A1, A1, .
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   133
 *     . ., A2, A2, . . ., A3, A3, . . ., B1, B2, B3, . . ., B1, B2, B3, . . .
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   134
 *   </ul>
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   135
 * </ul>
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   136
 * <p>
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   137
 * <b>IPP Compatibility:</b> SheetCollate is not an IPP attribute at present.
22260
c9185e010e03 8031082: Fix non-missing doclint problems in client libraries
darcy
parents: 5506
diff changeset
   138
 *
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   139
 * @author Alan Kaminsky
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   140
 * @see MultipleDocumentHandling
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
public final class SheetCollate extends EnumSyntax
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
    implements DocAttribute, PrintRequestAttribute, PrintJobAttribute {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   145
    /**
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   146
     * Use serialVersionUID from JDK 1.4 for interoperability.
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   147
     */
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
    private static final long serialVersionUID = 7080587914259873003L;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
    /**
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   151
     * Sheets within a document appear in uncollated order when multiple copies
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   152
     * are printed.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
    public static final SheetCollate UNCOLLATED = new SheetCollate(0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     * Sheets within a document appear in collated order when multiple copies
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * are printed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
    public static final SheetCollate COLLATED = new SheetCollate(1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     * Construct a new sheet collate enumeration value with the given integer
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     * value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
     *
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   166
     * @param  value Integer value
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
    protected SheetCollate(int value) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
        super (value);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   172
    /**
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   173
     * The string table for class {@code SheetCollate}.
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   174
     */
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
    private static final String[] myStringTable = {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
        "uncollated",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
        "collated"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   180
    /**
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   181
     * The enumeration value table for class {@code SheetCollate}.
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   182
     */
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
    private static final SheetCollate[] myEnumValueTable = {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
        UNCOLLATED,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
        COLLATED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    /**
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   189
     * Returns the string table for class {@code SheetCollate}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
    protected String[] getStringTable() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
        return myStringTable;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
    /**
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   196
     * Returns the enumeration value table for class {@code SheetCollate}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    protected EnumSyntax[] getEnumValueTable() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
        return myEnumValueTable;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     * Get the printing attribute class which is to be used as the "category"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     * for this printing attribute value.
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   205
     * <p>
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   206
     * For class {@code SheetCollate}, the category is class
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   207
     * {@code SheetCollate} itself.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
     *
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   209
     * @return printing attribute class (category), an instance of class
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   210
     *         {@link Class java.lang.Class}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
    public final Class<? extends Attribute> getCategory() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
        return SheetCollate.class;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     * Get the name of the category of which this attribute value is an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     * instance.
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   219
     * <p>
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   220
     * For class {@code SheetCollate}, the category name is
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   221
     * {@code "sheet-collate"}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
     *
47196
a3211bb4daff 8184435: Cleanup of javadoc in javax.print package
serb
parents: 35667
diff changeset
   223
     * @return attribute category name
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
    public final String getName() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
        return "sheet-collate";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
}