Package javax.print.attribute.standard

Examples of javax.print.attribute.standard.SheetCollate


        PageRanges range = (PageRanges)attributes.get(PageRanges.class);
        int[][] members = range.getMembers();
        jobAttributes.setPageRanges(members);

        SheetCollate collation =
            (SheetCollate)attributes.get(SheetCollate.class);
        if (collation == SheetCollate.COLLATED) {
            jobAttributes.setMultipleDocumentHandling(
            MultipleDocumentHandlingType.SEPARATE_DOCUMENTS_COLLATED_COPIES);
        } else {
View Full Code Here


         * Since we have verified supported values if fidelity is true,
         * we can either ignore unsupported values, or substitute a
         * reasonable alternative
         */

        SheetCollate collateAttr =
            (SheetCollate)attributes.get(SheetCollate.class);
        if (isSupportedValue(collateAttr,  attributes)) {
            setCollated(collateAttr == SheetCollate.COLLATED);
        }

View Full Code Here

                int xres = res.getCrossFeedResolution(PrinterResolution.DPI);
                int yres = res.getFeedResolution(PrinterResolution.DPI);
                printAttributes[XRESOLUTION_INDEX] = xres;
                printAttributes[YRESOLUTION_INDEX] = yres;
            } else if (category.equals(SheetCollate.class)) {
                SheetCollate collate = (SheetCollate)requestAttrs[i];
                if (collate == SheetCollate.COLLATED) {
                    printAttributes[COLLATE_INDEX] = 1;
                } else if (collate == SheetCollate.UNCOLLATED) {
                    printAttributes[COLLATE_INDEX] = 0;
                }
View Full Code Here

                int xres = res.getCrossFeedResolution(PrinterResolution.DPI);
                int yres = res.getFeedResolution(PrinterResolution.DPI);
                printAttributes[XRESOLUTION_INDEX] = xres;
                printAttributes[YRESOLUTION_INDEX] = yres;
            } else if (category.equals(SheetCollate.class)) {
                SheetCollate collate = (SheetCollate)requestAttrs[i];
                if (collate == SheetCollate.COLLATED) {
                    printAttributes[COLLATE_INDEX] = 1;
                } else if (collate == SheetCollate.UNCOLLATED) {
                    printAttributes[COLLATE_INDEX] = 0;
                }
View Full Code Here

                int xres = res.getCrossFeedResolution(PrinterResolution.DPI);
                int yres = res.getFeedResolution(PrinterResolution.DPI);
                printAttributes[XRESOLUTION_INDEX] = xres;
                printAttributes[YRESOLUTION_INDEX] = yres;
            } else if (category.equals(SheetCollate.class)) {
                SheetCollate collate = (SheetCollate)requestAttrs[i];
                if (collate == SheetCollate.COLLATED) {
                    printAttributes[COLLATE_INDEX] = 1;
                } else if (collate == SheetCollate.UNCOLLATED) {
                    printAttributes[COLLATE_INDEX] = 0;
                }
View Full Code Here

         * Since we have verified supported values if fidelity is true,
         * we can either ignore unsupported values, or substitute a
         * reasonable alternative
         */

        SheetCollate collateAttr =
            (SheetCollate)attributes.get(SheetCollate.class);
        if (isSupportedValue(collateAttr,  attributes)) {
            setCollated(collateAttr == SheetCollate.COLLATED);
        }

View Full Code Here

TOP

Related Classes of javax.print.attribute.standard.SheetCollate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.