javax.print.attribute.standard
Class SheetCollate

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.print.attribute.EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax 
      extended by javax.print.attribute.standard.SheetCollate
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable , Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute , DocAttribute sample code for javax.print.attribute.DocAttribute definition code for javax.print.attribute.DocAttribute , PrintJobAttribute sample code for javax.print.attribute.PrintJobAttribute definition code for javax.print.attribute.PrintJobAttribute , PrintRequestAttribute sample code for javax.print.attribute.PrintRequestAttribute definition code for javax.print.attribute.PrintRequestAttribute

public final class SheetCollate
extends EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
implements DocAttribute sample code for javax.print.attribute.DocAttribute definition code for javax.print.attribute.DocAttribute , PrintRequestAttribute sample code for javax.print.attribute.PrintRequestAttribute definition code for javax.print.attribute.PrintRequestAttribute , PrintJobAttribute sample code for javax.print.attribute.PrintJobAttribute definition code for javax.print.attribute.PrintJobAttribute

Class SheetCollate is a printing attribute class, an enumeration, that specifies whether or not the media sheets of each copy of each printed document in a job are to be in sequence, when multiple copies of the document are specified by the Copies sample code for javax.print.attribute.standard.Copies definition code for javax.print.attribute.standard.Copies attribute. When SheetCollate is COLLATED, each copy of each document is printed with the print-stream sheets in sequence. When SheetCollate is UNCOLLATED, each print-stream sheet is printed a number of times equal to the value of the Copies sample code for javax.print.attribute.standard.Copies definition code for javax.print.attribute.standard.Copies attribute in succession. For example, suppose a document produces two media sheets as output, Copies sample code for javax.print.attribute.standard.Copies definition code for javax.print.attribute.standard.Copies is 6, and SheetCollate is UNCOLLATED; in this case six copies of the first media sheet are printed followed by six copies of the second media sheet.

Whether the effect of sheet collation is achieved by placing copies of a document in multiple output bins or in the same output bin with implementation defined document separation is implementation dependent. Also whether it is achieved by making multiple passes over the job or by using an output sorter is implementation dependent.

If a printer does not support the SheetCollate attribute (meaning the client cannot specify any particular sheet collation), the printer must behave as though SheetCollate were always set to COLLATED.

The SheetCollate attribute interacts with the MultipleDocumentHandling sample code for javax.print.attribute.standard.MultipleDocumentHandling definition code for javax.print.attribute.standard.MultipleDocumentHandling attribute. The MultipleDocumentHandling sample code for javax.print.attribute.standard.MultipleDocumentHandling definition code for javax.print.attribute.standard.MultipleDocumentHandling attribute describes the collation of entire documents, and the SheetCollate attribute describes the semantics of collating individual pages within a document.

The effect of a SheetCollate attribute on a multidoc print job (a job with multiple documents) depends on whether all the docs have the same sheet collation specified or whether different docs have different sheet collations specified, and on the (perhaps defaulted) value of the MultipleDocumentHandling sample code for javax.print.attribute.standard.MultipleDocumentHandling definition code for javax.print.attribute.standard.MultipleDocumentHandling attribute.

IPP Compatibility: SheetCollate is not an IPP attribute at present.

See Also:
MultipleDocumentHandling sample code for javax.print.attribute.standard.MultipleDocumentHandling definition code for javax.print.attribute.standard.MultipleDocumentHandling , Serialized Form

Field Summary
static SheetCollate sample code for javax.print.attribute.standard.SheetCollate definition code for javax.print.attribute.standard.SheetCollate COLLATED sample code for javax.print.attribute.standard.SheetCollate.COLLATED definition code for javax.print.attribute.standard.SheetCollate.COLLATED
          Sheets within a document appear in collated order when multiple copies are printed.
static SheetCollate sample code for javax.print.attribute.standard.SheetCollate definition code for javax.print.attribute.standard.SheetCollate UNCOLLATED sample code for javax.print.attribute.standard.SheetCollate.UNCOLLATED definition code for javax.print.attribute.standard.SheetCollate.UNCOLLATED
          Sheets within a document appear in uncollated order when multiple copies are printed.
 
Constructor Summary
protected SheetCollate sample code for javax.print.attribute.standard.SheetCollate.SheetCollate(int) definition code for javax.print.attribute.standard.SheetCollate.SheetCollate(int) (int value)
          Construct a new sheet collate enumeration value with the given integer value.
 
Method Summary
 Class sample code for java.lang.Class definition code for java.lang.Class <? extends Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute > getCategory sample code for javax.print.attribute.standard.SheetCollate.getCategory() definition code for javax.print.attribute.standard.SheetCollate.getCategory() ()
          Get the printing attribute class which is to be used as the "category" for this printing attribute value.
protected  EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax [] getEnumValueTable sample code for javax.print.attribute.standard.SheetCollate.getEnumValueTable() definition code for javax.print.attribute.standard.SheetCollate.getEnumValueTable() ()
          Returns the enumeration value table for class SheetCollate.
 String sample code for java.lang.String definition code for java.lang.String getName sample code for javax.print.attribute.standard.SheetCollate.getName() definition code for javax.print.attribute.standard.SheetCollate.getName() ()
          Get the name of the category of which this attribute value is an instance.
protected  String sample code for java.lang.String definition code for java.lang.String [] getStringTable sample code for javax.print.attribute.standard.SheetCollate.getStringTable() definition code for javax.print.attribute.standard.SheetCollate.getStringTable() ()
          Returns the string table for class SheetCollate.
 
Methods inherited from class javax.print.attribute.EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
clone sample code for javax.print.attribute.EnumSyntax.clone() definition code for javax.print.attribute.EnumSyntax.clone() , getOffset sample code for javax.print.attribute.EnumSyntax.getOffset() definition code for javax.print.attribute.EnumSyntax.getOffset() , getValue sample code for javax.print.attribute.EnumSyntax.getValue() definition code for javax.print.attribute.EnumSyntax.getValue() , hashCode sample code for javax.print.attribute.EnumSyntax.hashCode() definition code for javax.print.attribute.EnumSyntax.hashCode() , readResolve sample code for javax.print.attribute.EnumSyntax.readResolve() definition code for javax.print.attribute.EnumSyntax.readResolve() , toString sample code for javax.print.attribute.EnumSyntax.toString() definition code for javax.print.attribute.EnumSyntax.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

UNCOLLATED sample code for javax.print.attribute.standard.SheetCollate.UNCOLLATED

public static final SheetCollate sample code for javax.print.attribute.standard.SheetCollate definition code for javax.print.attribute.standard.SheetCollate  UNCOLLATED
Sheets within a document appear in uncollated order when multiple copies are printed.


COLLATED sample code for javax.print.attribute.standard.SheetCollate.COLLATED

public static final SheetCollate sample code for javax.print.attribute.standard.SheetCollate definition code for javax.print.attribute.standard.SheetCollate  COLLATED
Sheets within a document appear in collated order when multiple copies are printed.

Constructor Detail

SheetCollate sample code for javax.print.attribute.standard.SheetCollate(int) definition code for javax.print.attribute.standard.SheetCollate(int)

protected SheetCollate(int value)
Construct a new sheet collate enumeration value with the given integer value.

Parameters:
value - Integer value.
Method Detail

getStringTable sample code for javax.print.attribute.standard.SheetCollate.getStringTable() definition code for javax.print.attribute.standard.SheetCollate.getStringTable()

protected String sample code for java.lang.String definition code for java.lang.String [] getStringTable()
Returns the string table for class SheetCollate.

Overrides:
getStringTable sample code for javax.print.attribute.EnumSyntax.getStringTable() definition code for javax.print.attribute.EnumSyntax.getStringTable() in class EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
Returns:
the string table

getEnumValueTable sample code for javax.print.attribute.standard.SheetCollate.getEnumValueTable() definition code for javax.print.attribute.standard.SheetCollate.getEnumValueTable()

protected EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax [] getEnumValueTable()
Returns the enumeration value table for class SheetCollate.

Overrides:
getEnumValueTable sample code for javax.print.attribute.EnumSyntax.getEnumValueTable() definition code for javax.print.attribute.EnumSyntax.getEnumValueTable() in class EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
Returns:
the value table

getCategory sample code for javax.print.attribute.standard.SheetCollate.getCategory() definition code for javax.print.attribute.standard.SheetCollate.getCategory()

public final Class sample code for java.lang.Class definition code for java.lang.Class <? extends Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute > getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.

For class SheetCollate, the category is class SheetCollate itself.

Specified by:
getCategory sample code for javax.print.attribute.Attribute.getCategory() definition code for javax.print.attribute.Attribute.getCategory() in interface Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute
Returns:
Printing attribute class (category), an instance of class java.lang.Class sample code for java.lang.Class definition code for java.lang.Class .

getName sample code for javax.print.attribute.standard.SheetCollate.getName() definition code for javax.print.attribute.standard.SheetCollate.getName()

public final String sample code for java.lang.String definition code for java.lang.String  getName()
Get the name of the category of which this attribute value is an instance.

For class SheetCollate, the category name is "sheet-collate".

Specified by:
getName sample code for javax.print.attribute.Attribute.getName() definition code for javax.print.attribute.Attribute.getName() in interface Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute
Returns:
Attribute category name.