APIdia Launch Partner
Top Description Fields Constructors Methods
javax.print.attribute.standard

public final Class Sides

extends EnumSyntax
implements DocAttribute, PrintRequestAttribute, PrintJobAttribute
Class Inheritance
All Implemented Interfaces
javax.print.attribute.PrintJobAttribute, javax.print.attribute.Attribute, java.io.Serializable, javax.print.attribute.PrintRequestAttribute, javax.print.attribute.DocAttribute
Imports
java.io.Serial, javax.print.attribute.Attribute, .DocAttribute, .EnumSyntax, .PrintJobAttribute, .PrintRequestAttribute

Class Sides is a printing attribute class, an enumeration, that specifies how print-stream pages are to be imposed upon the sides of an instance of a selected medium, i.e., an impression.

The effect of a Sides attribute on a multidoc print job (a job with multiple documents) depends on whether all the docs have the same sides values specified or whether different docs have different sides values specified, and on the (perhaps defaulted) value of the MultipleDocumentHandling attribute.

IPP Compatibility: The category name returned by getName() is the IPP attribute name. The enumeration's integer value is the IPP enum value. The toString() method returns the IPP string representation of the attribute value.

Author
Alan Kaminsky

Field Summary

Modifier and TypeField and Description
public static final Sides
DUPLEX

An alias for "two sided long edge" (see TWO_SIDED_LONG_EDGE).

private static final Sides[]
myEnumValueTable

The enumeration value table for class Sides.

private static final String[]
myStringTable

The string table for class Sides.

public static final Sides
ONE_SIDED

Imposes each consecutive print-stream page upon the same side of consecutive media sheets.

private static final long
serialVersionUID

Hides javax.print.attribute.EnumSyntax.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.
public static final Sides
TUMBLE

An alias for "two sided short edge" (see TWO_SIDED_SHORT_EDGE).

public static final Sides
TWO_SIDED_LONG_EDGE

Imposes each consecutive pair of print-stream pages upon front and back sides of consecutive media sheets, such that the orientation of each pair of print-stream pages on the medium would be correct for the reader as if for binding on the long edge.

public static final Sides
TWO_SIDED_SHORT_EDGE

Imposes each consecutive pair of print-stream pages upon front and back sides of consecutive media sheets, such that the orientation of each pair of print-stream pages on the medium would be correct for the reader as if for binding on the short edge.

Constructor Summary

AccessConstructor and Description
protected
Sides(int
Integer value
value
)

Construct a new sides enumeration value with the given integer value.

Method Summary

Modifier and TypeMethod and Description
public final Class<? extends Attribute>

Returns:

printing attribute class (category), an instance of class java.lang.Class
getCategory
()

Implements javax.print.attribute.Attribute.getCategory.

Get the printing attribute class which is to be used as the "category" for this printing attribute value.

protected EnumSyntax[]
getEnumValueTable()

Overrides javax.print.attribute.EnumSyntax.getEnumValueTable.

Returns the enumeration value table for class Sides.

public final String

Returns:

attribute category name
getName
()

Implements javax.print.attribute.Attribute.getName.

Get the name of the category of which this attribute value is an instance.

protected String[]
getStringTable()

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class Sides.

Inherited from javax.print.attribute.EnumSyntax:
clonegetOffsetgetValuehashCodereadResolvetoString

Field Detail

DUPLEXback to summary
public static final Sides DUPLEX

An alias for "two sided long edge" (see TWO_SIDED_LONG_EDGE).

myEnumValueTableback to summary
private static final Sides[] myEnumValueTable

The enumeration value table for class Sides.

myStringTableback to summary
private static final String[] myStringTable

The string table for class Sides.

ONE_SIDEDback to summary
public static final Sides ONE_SIDED

Imposes each consecutive print-stream page upon the same side of consecutive media sheets.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.print.attribute.EnumSyntax.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Annotations
@Serial
TUMBLEback to summary
public static final Sides TUMBLE

An alias for "two sided short edge" (see TWO_SIDED_SHORT_EDGE).

TWO_SIDED_LONG_EDGEback to summary
public static final Sides TWO_SIDED_LONG_EDGE

Imposes each consecutive pair of print-stream pages upon front and back sides of consecutive media sheets, such that the orientation of each pair of print-stream pages on the medium would be correct for the reader as if for binding on the long edge. This imposition is also known as "duplex" (see DUPLEX).

TWO_SIDED_SHORT_EDGEback to summary
public static final Sides TWO_SIDED_SHORT_EDGE

Imposes each consecutive pair of print-stream pages upon front and back sides of consecutive media sheets, such that the orientation of each pair of print-stream pages on the medium would be correct for the reader as if for binding on the short edge. This imposition is also known as "tumble" (see TUMBLE).

Constructor Detail

Sidesback to summary
protected Sides(int value)

Construct a new sides enumeration value with the given integer value.

Parameters
value:int

Integer value

Method Detail

getCategoryback to summary
public final Class<? extends Attribute> getCategory()

Implements 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 Sides, the category is class Sides itself.

Returns:Class<? extends Attribute>

printing attribute class (category), an instance of class java.lang.Class

Annotations
@Override
getEnumValueTableback to summary
protected EnumSyntax[] getEnumValueTable()

Overrides javax.print.attribute.EnumSyntax.getEnumValueTable.

Returns the enumeration value table for class Sides.

Annotations
@Override
getNameback to summary
public final String getName()

Implements javax.print.attribute.Attribute.getName.

Get the name of the category of which this attribute value is an instance.

For class Sides, the category name is "sides".

Returns:String

attribute category name

Annotations
@Override
getStringTableback to summary
protected String[] getStringTable()

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class Sides.

Annotations
@Override