Java Code Examples for javax.print.attribute.standard.MediaTray#LARGE_CAPACITY
The following examples show how to use
javax.print.attribute.standard.MediaTray#LARGE_CAPACITY .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WPrinterJob.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
private void setMediaTrayAttrib(Attribute attr) { if (attr == MediaTray.BOTTOM) { mAttMediaTray = 2; // DMBIN_LOWER } else if (attr == MediaTray.ENVELOPE) { mAttMediaTray = 5; // DMBIN_ENVELOPE } else if (attr == MediaTray.LARGE_CAPACITY) { mAttMediaTray = 11; // DMBIN_LARGECAPACITY } else if (attr == MediaTray.MAIN) { mAttMediaTray =1; // DMBIN_UPPER } else if (attr == MediaTray.MANUAL) { mAttMediaTray = 4; // DMBIN_MANUAL } else if (attr == MediaTray.MIDDLE) { mAttMediaTray = 3; // DMBIN_MIDDLE } else if (attr == MediaTray.SIDE) { // no equivalent predefined value mAttMediaTray = 7; // DMBIN_AUTO } else if (attr == MediaTray.TOP) { mAttMediaTray = 1; // DMBIN_UPPER } else { if (attr instanceof Win32MediaTray) { mAttMediaTray = ((Win32MediaTray)attr).winID; } else { mAttMediaTray = 1; // default } } }
Example 2
Source File: WPrinterJob.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private void setMediaTrayAttrib(Attribute attr) { if (attr == MediaTray.BOTTOM) { mAttMediaTray = 2; // DMBIN_LOWER } else if (attr == MediaTray.ENVELOPE) { mAttMediaTray = 5; // DMBIN_ENVELOPE } else if (attr == MediaTray.LARGE_CAPACITY) { mAttMediaTray = 11; // DMBIN_LARGECAPACITY } else if (attr == MediaTray.MAIN) { mAttMediaTray =1; // DMBIN_UPPER } else if (attr == MediaTray.MANUAL) { mAttMediaTray = 4; // DMBIN_MANUAL } else if (attr == MediaTray.MIDDLE) { mAttMediaTray = 3; // DMBIN_MIDDLE } else if (attr == MediaTray.SIDE) { // no equivalent predefined value mAttMediaTray = 7; // DMBIN_AUTO } else if (attr == MediaTray.TOP) { mAttMediaTray = 1; // DMBIN_UPPER } else { if (attr instanceof Win32MediaTray) { mAttMediaTray = ((Win32MediaTray)attr).winID; } else { mAttMediaTray = 1; // default } } }
Example 3
Source File: WPrinterJob.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private void setMediaTrayAttrib(Attribute attr) { if (attr == MediaTray.BOTTOM) { mAttMediaTray = 2; // DMBIN_LOWER } else if (attr == MediaTray.ENVELOPE) { mAttMediaTray = 5; // DMBIN_ENVELOPE } else if (attr == MediaTray.LARGE_CAPACITY) { mAttMediaTray = 11; // DMBIN_LARGECAPACITY } else if (attr == MediaTray.MAIN) { mAttMediaTray =1; // DMBIN_UPPER } else if (attr == MediaTray.MANUAL) { mAttMediaTray = 4; // DMBIN_MANUAL } else if (attr == MediaTray.MIDDLE) { mAttMediaTray = 3; // DMBIN_MIDDLE } else if (attr == MediaTray.SIDE) { // no equivalent predefined value mAttMediaTray = 7; // DMBIN_AUTO } else if (attr == MediaTray.TOP) { mAttMediaTray = 1; // DMBIN_UPPER } else { if (attr instanceof Win32MediaTray) { mAttMediaTray = ((Win32MediaTray)attr).winID; } else { mAttMediaTray = 1; // default } } }
Example 4
Source File: WPrinterJob.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private void setMediaTrayAttrib(Attribute attr) { if (attr == MediaTray.BOTTOM) { mAttMediaTray = 2; // DMBIN_LOWER } else if (attr == MediaTray.ENVELOPE) { mAttMediaTray = 5; // DMBIN_ENVELOPE } else if (attr == MediaTray.LARGE_CAPACITY) { mAttMediaTray = 11; // DMBIN_LARGECAPACITY } else if (attr == MediaTray.MAIN) { mAttMediaTray =1; // DMBIN_UPPER } else if (attr == MediaTray.MANUAL) { mAttMediaTray = 4; // DMBIN_MANUAL } else if (attr == MediaTray.MIDDLE) { mAttMediaTray = 3; // DMBIN_MIDDLE } else if (attr == MediaTray.SIDE) { // no equivalent predefined value mAttMediaTray = 7; // DMBIN_AUTO } else if (attr == MediaTray.TOP) { mAttMediaTray = 1; // DMBIN_UPPER } else { if (attr instanceof Win32MediaTray) { mAttMediaTray = ((Win32MediaTray)attr).winID; } else { mAttMediaTray = 1; // default } } }
Example 5
Source File: WPrinterJob.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private void setMediaTrayAttrib(Attribute attr) { if (attr == MediaTray.BOTTOM) { mAttMediaTray = 2; // DMBIN_LOWER } else if (attr == MediaTray.ENVELOPE) { mAttMediaTray = 5; // DMBIN_ENVELOPE } else if (attr == MediaTray.LARGE_CAPACITY) { mAttMediaTray = 11; // DMBIN_LARGECAPACITY } else if (attr == MediaTray.MAIN) { mAttMediaTray =1; // DMBIN_UPPER } else if (attr == MediaTray.MANUAL) { mAttMediaTray = 4; // DMBIN_MANUAL } else if (attr == MediaTray.MIDDLE) { mAttMediaTray = 3; // DMBIN_MIDDLE } else if (attr == MediaTray.SIDE) { // no equivalent predefined value mAttMediaTray = 7; // DMBIN_AUTO } else if (attr == MediaTray.TOP) { mAttMediaTray = 1; // DMBIN_UPPER } else { if (attr instanceof Win32MediaTray) { mAttMediaTray = ((Win32MediaTray)attr).winID; } else { mAttMediaTray = 1; // default } } }
Example 6
Source File: WPrinterJob.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private void setMediaTrayAttrib(Attribute attr) { if (attr == MediaTray.BOTTOM) { mAttMediaTray = 2; // DMBIN_LOWER } else if (attr == MediaTray.ENVELOPE) { mAttMediaTray = 5; // DMBIN_ENVELOPE } else if (attr == MediaTray.LARGE_CAPACITY) { mAttMediaTray = 11; // DMBIN_LARGECAPACITY } else if (attr == MediaTray.MAIN) { mAttMediaTray =1; // DMBIN_UPPER } else if (attr == MediaTray.MANUAL) { mAttMediaTray = 4; // DMBIN_MANUAL } else if (attr == MediaTray.MIDDLE) { mAttMediaTray = 3; // DMBIN_MIDDLE } else if (attr == MediaTray.SIDE) { // no equivalent predefined value mAttMediaTray = 7; // DMBIN_AUTO } else if (attr == MediaTray.TOP) { mAttMediaTray = 1; // DMBIN_UPPER } else { if (attr instanceof Win32MediaTray) { mAttMediaTray = ((Win32MediaTray)attr).winID; } else { mAttMediaTray = 1; // default } } }
Example 7
Source File: WPrinterJob.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
private void setMediaTrayAttrib(Attribute attr) { if (attr == MediaTray.BOTTOM) { mAttMediaTray = 2; // DMBIN_LOWER } else if (attr == MediaTray.ENVELOPE) { mAttMediaTray = 5; // DMBIN_ENVELOPE } else if (attr == MediaTray.LARGE_CAPACITY) { mAttMediaTray = 11; // DMBIN_LARGECAPACITY } else if (attr == MediaTray.MAIN) { mAttMediaTray =1; // DMBIN_UPPER } else if (attr == MediaTray.MANUAL) { mAttMediaTray = 4; // DMBIN_MANUAL } else if (attr == MediaTray.MIDDLE) { mAttMediaTray = 3; // DMBIN_MIDDLE } else if (attr == MediaTray.SIDE) { // no equivalent predefined value mAttMediaTray = 7; // DMBIN_AUTO } else if (attr == MediaTray.TOP) { mAttMediaTray = 1; // DMBIN_UPPER } else { if (attr instanceof Win32MediaTray) { mAttMediaTray = ((Win32MediaTray)attr).winID; } else { mAttMediaTray = 1; // default } } }
Example 8
Source File: WPrinterJob.java From hottub with GNU General Public License v2.0 | 6 votes |
private void setMediaTrayAttrib(Attribute attr) { if (attr == MediaTray.BOTTOM) { mAttMediaTray = 2; // DMBIN_LOWER } else if (attr == MediaTray.ENVELOPE) { mAttMediaTray = 5; // DMBIN_ENVELOPE } else if (attr == MediaTray.LARGE_CAPACITY) { mAttMediaTray = 11; // DMBIN_LARGECAPACITY } else if (attr == MediaTray.MAIN) { mAttMediaTray =1; // DMBIN_UPPER } else if (attr == MediaTray.MANUAL) { mAttMediaTray = 4; // DMBIN_MANUAL } else if (attr == MediaTray.MIDDLE) { mAttMediaTray = 3; // DMBIN_MIDDLE } else if (attr == MediaTray.SIDE) { // no equivalent predefined value mAttMediaTray = 7; // DMBIN_AUTO } else if (attr == MediaTray.TOP) { mAttMediaTray = 1; // DMBIN_UPPER } else { if (attr instanceof Win32MediaTray) { mAttMediaTray = ((Win32MediaTray)attr).winID; } else { mAttMediaTray = 1; // default } } }
Example 9
Source File: WPrinterJob.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private void setMediaTrayAttrib(Attribute attr) { if (attr == MediaTray.BOTTOM) { mAttMediaTray = 2; // DMBIN_LOWER } else if (attr == MediaTray.ENVELOPE) { mAttMediaTray = 5; // DMBIN_ENVELOPE } else if (attr == MediaTray.LARGE_CAPACITY) { mAttMediaTray = 11; // DMBIN_LARGECAPACITY } else if (attr == MediaTray.MAIN) { mAttMediaTray =1; // DMBIN_UPPER } else if (attr == MediaTray.MANUAL) { mAttMediaTray = 4; // DMBIN_MANUAL } else if (attr == MediaTray.MIDDLE) { mAttMediaTray = 3; // DMBIN_MIDDLE } else if (attr == MediaTray.SIDE) { // no equivalent predefined value mAttMediaTray = 7; // DMBIN_AUTO } else if (attr == MediaTray.TOP) { mAttMediaTray = 1; // DMBIN_UPPER } else { if (attr instanceof Win32MediaTray) { mAttMediaTray = ((Win32MediaTray)attr).winID; } else { mAttMediaTray = 1; // default } } }
Example 10
Source File: WPrinterJob.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private void setMediaTrayAttrib(Attribute attr) { if (attr == MediaTray.BOTTOM) { mAttMediaTray = 2; // DMBIN_LOWER } else if (attr == MediaTray.ENVELOPE) { mAttMediaTray = 5; // DMBIN_ENVELOPE } else if (attr == MediaTray.LARGE_CAPACITY) { mAttMediaTray = 11; // DMBIN_LARGECAPACITY } else if (attr == MediaTray.MAIN) { mAttMediaTray =1; // DMBIN_UPPER } else if (attr == MediaTray.MANUAL) { mAttMediaTray = 4; // DMBIN_MANUAL } else if (attr == MediaTray.MIDDLE) { mAttMediaTray = 3; // DMBIN_MIDDLE } else if (attr == MediaTray.SIDE) { // no equivalent predefined value mAttMediaTray = 7; // DMBIN_AUTO } else if (attr == MediaTray.TOP) { mAttMediaTray = 1; // DMBIN_UPPER } else { if (attr instanceof Win32MediaTray) { mAttMediaTray = ((Win32MediaTray)attr).winID; } else { mAttMediaTray = 1; // default } } }
Example 11
Source File: WPrinterJob.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
private void setMediaTrayAttrib(Attribute attr) { if (attr == MediaTray.BOTTOM) { mAttMediaTray = 2; // DMBIN_LOWER } else if (attr == MediaTray.ENVELOPE) { mAttMediaTray = 5; // DMBIN_ENVELOPE } else if (attr == MediaTray.LARGE_CAPACITY) { mAttMediaTray = 11; // DMBIN_LARGECAPACITY } else if (attr == MediaTray.MAIN) { mAttMediaTray =1; // DMBIN_UPPER } else if (attr == MediaTray.MANUAL) { mAttMediaTray = 4; // DMBIN_MANUAL } else if (attr == MediaTray.MIDDLE) { mAttMediaTray = 3; // DMBIN_MIDDLE } else if (attr == MediaTray.SIDE) { // no equivalent predefined value mAttMediaTray = 7; // DMBIN_AUTO } else if (attr == MediaTray.TOP) { mAttMediaTray = 1; // DMBIN_UPPER } else { if (attr instanceof Win32MediaTray) { mAttMediaTray = ((Win32MediaTray)attr).winID; } else { mAttMediaTray = 1; // default } } }
Example 12
Source File: WPrinterJob.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
private void setMediaTrayAttrib(Attribute attr) { if (attr == MediaTray.BOTTOM) { mAttMediaTray = 2; // DMBIN_LOWER } else if (attr == MediaTray.ENVELOPE) { mAttMediaTray = 5; // DMBIN_ENVELOPE } else if (attr == MediaTray.LARGE_CAPACITY) { mAttMediaTray = 11; // DMBIN_LARGECAPACITY } else if (attr == MediaTray.MAIN) { mAttMediaTray =1; // DMBIN_UPPER } else if (attr == MediaTray.MANUAL) { mAttMediaTray = 4; // DMBIN_MANUAL } else if (attr == MediaTray.MIDDLE) { mAttMediaTray = 3; // DMBIN_MIDDLE } else if (attr == MediaTray.SIDE) { // no equivalent predefined value mAttMediaTray = 7; // DMBIN_AUTO } else if (attr == MediaTray.TOP) { mAttMediaTray = 1; // DMBIN_UPPER } else { if (attr instanceof Win32MediaTray) { mAttMediaTray = ((Win32MediaTray)attr).winID; } else { mAttMediaTray = 1; // default } } }
Example 13
Source File: WPrinterJob.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
private void setMediaTrayAttrib(Attribute attr) { if (attr == MediaTray.BOTTOM) { mAttMediaTray = 2; // DMBIN_LOWER } else if (attr == MediaTray.ENVELOPE) { mAttMediaTray = 5; // DMBIN_ENVELOPE } else if (attr == MediaTray.LARGE_CAPACITY) { mAttMediaTray = 11; // DMBIN_LARGECAPACITY } else if (attr == MediaTray.MAIN) { mAttMediaTray =1; // DMBIN_UPPER } else if (attr == MediaTray.MANUAL) { mAttMediaTray = 4; // DMBIN_MANUAL } else if (attr == MediaTray.MIDDLE) { mAttMediaTray = 3; // DMBIN_MIDDLE } else if (attr == MediaTray.SIDE) { // no equivalent predefined value mAttMediaTray = 7; // DMBIN_AUTO } else if (attr == MediaTray.TOP) { mAttMediaTray = 1; // DMBIN_UPPER } else { if (attr instanceof Win32MediaTray) { mAttMediaTray = ((Win32MediaTray)attr).winID; } else { mAttMediaTray = 1; // default } } }