javax.print.attribute.standard

Class Sides

public final class Sides extends EnumSyntax implements DocAttribute, PrintRequestAttribute, PrintJobAttribute

The Sides printing attribute specifies how consecutive printing pages are arranged on the media sheet.

IPP Compatibility: Sides is an IPP 1.1 attribute.

Field Summary
static SidesDUPLEX
An alias constant for "two sided long edge".
static SidesONE_SIDED
Specifies that each page should be printed on one sheet.
static SidesTUMBLE
An alias constant for "two sided short edge".
static SidesTWO_SIDED_LONG_EDGE
Specifies that two following pages should be printed on the front and back of one sheet for binding on the long edge.
static SidesTWO_SIDED_SHORT_EDGE
Specifies that two following pages should be printed on the front and back of one sheet for binding on the short edge.
Constructor Summary
protected Sides(int value)
Creates a Sides object.
Method Summary
Class<? extends Attribute>getCategory()
Returns category of this class.
protected EnumSyntax[]getEnumValueTable()
Returns a table with the enumeration values for this object.
StringgetName()
Returns the name of this attribute.
protected String[]getStringTable()
Returns a table with the enumeration values represented as strings for this object.

Field Detail

DUPLEX

public static final Sides DUPLEX
An alias constant for "two sided long edge".

ONE_SIDED

public static final Sides ONE_SIDED
Specifies that each page should be printed on one sheet.

TUMBLE

public static final Sides TUMBLE
An alias constant for "two sided short edge".

TWO_SIDED_LONG_EDGE

public static final Sides TWO_SIDED_LONG_EDGE
Specifies that two following pages should be printed on the front and back of one sheet for binding on the long edge.

TWO_SIDED_SHORT_EDGE

public static final Sides TWO_SIDED_SHORT_EDGE
Specifies that two following pages should be printed on the front and back of one sheet for binding on the short edge.

Constructor Detail

Sides

protected Sides(int value)
Creates a Sides object.

Parameters: value the number of sides

Method Detail

getCategory

public Class<? extends Attribute> getCategory()
Returns category of this class.

Returns: The class Sides itself.

getEnumValueTable

protected EnumSyntax[] getEnumValueTable()
Returns a table with the enumeration values for this object.

Returns: The enumeration values.

getName

public String getName()
Returns the name of this attribute.

Returns: The name "sides".

getStringTable

protected String[] getStringTable()
Returns a table with the enumeration values represented as strings for this object.

Returns: The enumeration values as strings.