javax.print.attribute.standard
Class Sides

java.lang.Object
  extended by javax.print.attribute.EnumSyntax
      extended by javax.print.attribute.standard.Sides
All Implemented Interfaces:
Serializable, Cloneable, Attribute, DocAttribute, PrintJobAttribute, PrintRequestAttribute

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.

See Also:
Serialized Form

Field Summary
static Sides DUPLEX
          An alias constant for "two sided long edge".
static Sides ONE_SIDED
          Specifies that each page should be printed on one sheet.
static Sides TUMBLE
          An alias constant for "two sided short edge".
static 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.
static 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 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.
 String getName()
          Returns the name of this attribute.
protected  String[] getStringTable()
          Returns a table with the enumeration values represented as strings for this object.
 
Methods inherited from class javax.print.attribute.EnumSyntax
clone, getOffset, getValue, hashCode, readResolve, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ONE_SIDED

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


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.


DUPLEX

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


TUMBLE

public static final Sides TUMBLE
An alias constant for "two sided 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.

Specified by:
getCategory in interface Attribute
Returns:
The class Sides itself.

getName

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

Specified by:
getName in interface Attribute
Returns:
The name "sides".

getStringTable

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

Overrides:
getStringTable in class EnumSyntax
Returns:
The enumeration values as strings.

getEnumValueTable

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

Overrides:
getEnumValueTable in class EnumSyntax
Returns:
The enumeration values.