com.crystaldecisions.sdk.occa.report.document
Class PrinterDuplex

java.lang.Object
  extended by com.crystaldecisions.sdk.occa.report.document.PrinterDuplex

public final class PrinterDuplex
extends java.lang.Object

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

_useDefault

public static final int _useDefault

Use the default printer duplex setting.

See Also:
Constant Field Values

_simplex

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.

See Also:
Constant Field Values

_vertical

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.

See Also:
Constant Field Values

_horizontal

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.

See Also:
Constant Field Values

useDefault

public static final PrinterDuplex useDefault

Specifies the default printer duplex setting.


simplex

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.


vertical

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.


horizontal

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

from_int

public static final PrinterDuplex from_int(int i)

Returns the PrinterDuplex object corresponding to the specified value.

Parameters:
i - The int value of the desired PrinterDuplex object.
Returns:
The PrinterDuplex object corresponding to the specified value.

from_string

public static final PrinterDuplex from_string(java.lang.String sVal)

Returns the PrinterDuplex object corresponding to the specified type.

Parameters:
sVal - The String value of the desired PrinterDuplex object.
Returns:
The PrinterDuplex object corresponding to the specified type.

toString

public java.lang.String toString()

Returns the String value of this PrinterDuplex object.

Overrides:
toString in class java.lang.Object
Returns:
The String value of this PrinterDuplex object.

value

public int value()

Returns the int value of this PrinterDuplex object.

Returns:
The int value of this PrinterDuplex object.