public final class Sides extends EnumSyntax implements DocAttribute, PrintRequestAttribute, PrintJobAttribute
Sides printing attribute specifies how consecutive
printing pages are arranged on the media sheet.
IPP Compatibility: Sides is an IPP 1.1 attribute.
| Modifier and Type | Field and Description |
|---|---|
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.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Sides(int value)
Creates a
Sides object. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, getOffset, getValue, hashCode, readResolve, toStringpublic static final Sides ONE_SIDED
public static final Sides TWO_SIDED_LONG_EDGE
public static final Sides TWO_SIDED_SHORT_EDGE
protected Sides(int value)
Sides object.value - the number of sidespublic Class<? extends Attribute> getCategory()
getCategory in interface AttributeSides itself.protected String[] getStringTable()
getStringTable in class EnumSyntaxprotected EnumSyntax[] getEnumValueTable()
getEnumValueTable in class EnumSyntax