Example usage for javax.print.attribute.standard Sides TUMBLE

List of usage examples for javax.print.attribute.standard Sides TUMBLE

Introduction

In this page you can find the example usage for javax.print.attribute.standard Sides TUMBLE.

Prototype

Sides TUMBLE

To view the source code for javax.print.attribute.standard Sides TUMBLE.

Click Source Link

Document

An alias for "two sided short edge" (see #TWO_SIDED_SHORT_EDGE TWO_SIDED_SHORT_EDGE ).

Usage

From source file:org.apache.camel.component.printer.PrinterConfiguration.java

public Sides assignSides(String sidesString) {
    Sides answer;//from w  ww  .ja  v a  2 s  . c o m

    if (sidesString == null) {
        // default to one side if no slides configured
        answer = Sides.ONE_SIDED;
    } else if (sidesString.equalsIgnoreCase("one-sided")) {
        answer = Sides.ONE_SIDED;
    } else if (sidesString.equalsIgnoreCase("duplex")) {
        answer = Sides.DUPLEX;
    } else if (sidesString.equalsIgnoreCase("tumble")) {
        answer = Sides.TUMBLE;
    } else if (sidesString.equalsIgnoreCase("two-sided-short-edge")) {
        answer = Sides.TWO_SIDED_SHORT_EDGE;
    } else if (sidesString.equalsIgnoreCase("two-sided-long-edge")) {
        answer = Sides.TWO_SIDED_LONG_EDGE;
    } else {
        answer = Sides.ONE_SIDED;
    }

    return answer;
}