|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.crystaldecisions.sdk.occa.report.document.PrinterDuplex
public final class PrinterDuplex
This class is used to specify the printer duplex of the report, which determines how to handle printing on both sides of paper.
Field Summary | |
---|---|
static int |
_horizontal
Print each consecutive pair of pages on the front and back sides of consecutive sheets of paper, such that the orientation of each pair of pages would be correct for the reader when bound on the short edge (double-sided printing, short edge). |
static int |
_simplex
Print each consecutive page on the same side of consecutive sheets of paper (single-sided printing). |
static int |
_useDefault
Use the default printer duplex setting. |
static int |
_vertical
Print each consecutive pair of pages on the front and back sides of consecutive sheets of paper, such that the orientation of each pair of pages would be correct for the reader when bound on the long edge (double-sided printing, long edge). |
static PrinterDuplex |
horizontal
Specifies that each consecutive pair of pages be printed on the front and back sides of consecutive sheets of paper, such that the orientation of each pair of pages would be correct for the reader when bound on the short edge (double-sided printing, short edge). |
static PrinterDuplex |
simplex
Specifies that each consecutive page be printed on the same side of consecutive sheets of paper (single-sided printing). |
static PrinterDuplex |
useDefault
Specifies the default printer duplex setting. |
static PrinterDuplex |
vertical
Specifies that each consecutive pair of pages be printed on the front and back sides of consecutive sheets of paper, such that the orientation of each pair of pages would be correct for the reader when bound on the long edge (double-sided printing, long edge). |
Method Summary | |
---|---|
static PrinterDuplex |
from_int(int i)
Returns the PrinterDuplex object corresponding to the specified value. |
static PrinterDuplex |
from_string(java.lang.String sVal)
Returns the PrinterDuplex object corresponding to the specified type. |
java.lang.String |
toString()
Returns the String value of this PrinterDuplex object. |
int |
value()
Returns the int value of this PrinterDuplex object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int _useDefault
Use the default printer duplex setting.
public static final int _simplex
Print each consecutive page on the same side of consecutive sheets of paper (single-sided printing).
Corresponds to javax.print.attribute.standard.Sides.ONE_SIDED
in the Java Print Service API.
public static final int _vertical
Print each consecutive pair of pages on the front and back sides of consecutive sheets of paper,
such that the orientation of each pair of pages would be correct for the reader when bound on the long edge (double-sided printing, long edge).
Corresponds to javax.print.attribute.standard.Sides.TWO_SIDED_LONG_EDGE
in the Java Print Service API.
public static final int _horizontal
Print each consecutive pair of pages on the front and back sides of consecutive sheets of paper,
such that the orientation of each pair of pages would be correct for the reader when bound on the short edge (double-sided printing, short edge).
Corresponds to javax.print.attribute.standard.Sides.TWO_SIDED_SHORT_EDGE
in the Java Print Service API.
public static final PrinterDuplex useDefault
Specifies the default printer duplex setting.
public static final PrinterDuplex simplex
Specifies that each consecutive page be printed on the same side of consecutive sheets of paper (single-sided printing).
Corresponds to javax.print.attribute.standard.Sides.ONE_SIDED
in the Java Print Service API.
public static final PrinterDuplex vertical
Specifies that each consecutive pair of pages be printed on the front and back sides of consecutive sheets of paper,
such that the orientation of each pair of pages would be correct for the reader when bound on the long edge (double-sided printing, long edge).
Corresponds to javax.print.attribute.standard.Sides.TWO_SIDED_LONG_EDGE
in the Java Print Service API.
public static final PrinterDuplex horizontal
Specifies that each consecutive pair of pages be printed on the front and back sides of consecutive sheets of paper,
such that the orientation of each pair of pages would be correct for the reader when bound on the short edge (double-sided printing, short edge).
Corresponds to javax.print.attribute.standard.Sides.TWO_SIDED_SHORT_EDGE
in the Java Print Service API.
Method Detail |
---|
public static final PrinterDuplex from_int(int i)
Returns the PrinterDuplex
object corresponding to the specified value.
i
- The int
value of the desired PrinterDuplex
object.
PrinterDuplex
object corresponding to the specified value.public static final PrinterDuplex from_string(java.lang.String sVal)
Returns the PrinterDuplex
object corresponding to the specified type.
sVal
- The String
value of the desired PrinterDuplex
object.
PrinterDuplex
object corresponding to the specified type.public java.lang.String toString()
Returns the String
value of this PrinterDuplex
object.
toString
in class java.lang.Object
String
value of this PrinterDuplex
object.public int value()
Returns the int
value of this PrinterDuplex
object.
int
value of this PrinterDuplex
object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |