public final class Sides extends javax.print.attribute.EnumSyntax implements javax.print.attribute.DocAttribute, javax.print.attribute.PrintRequestAttribute, javax.print.attribute.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 |
|---|---|
java.lang.Class<? extends javax.print.attribute.Attribute> |
getCategory()
Returns category of this class.
|
protected javax.print.attribute.EnumSyntax[] |
getEnumValueTable()
Returns a table with the enumeration values for this object.
|
java.lang.String |
getName()
Returns the name of this attribute.
|
protected java.lang.String[] |
getStringTable()
Returns a table with the enumeration values represented as strings
for this object.
|
public 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 java.lang.Class<? extends javax.print.attribute.Attribute> getCategory()
getCategory in interface javax.print.attribute.AttributeSides itself.public java.lang.String getName()
getName in interface javax.print.attribute.Attributeprotected java.lang.String[] getStringTable()
getStringTable in class javax.print.attribute.EnumSyntaxprotected javax.print.attribute.EnumSyntax[] getEnumValueTable()
getEnumValueTable in class javax.print.attribute.EnumSyntax