Example usage for javax.print.attribute.standard ColorSupported SUPPORTED

List of usage examples for javax.print.attribute.standard ColorSupported SUPPORTED

Introduction

In this page you can find the example usage for javax.print.attribute.standard ColorSupported SUPPORTED.

Prototype

ColorSupported SUPPORTED

To view the source code for javax.print.attribute.standard ColorSupported SUPPORTED.

Click Source Link

Document

The printer is capable of some type of color printing, such as highlight color or full process color.

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {
    PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);
    PrintService service = PrintServiceLookup.lookupDefaultPrintService();

    services = PrintServiceLookup.lookupPrintServices(DocFlavor.INPUT_STREAM.GIF, null);

    AttributeSet aset = new HashAttributeSet();
    aset.add(new PrinterName("HP LaserJet", null));
    services = PrintServiceLookup.lookupPrintServices(null, aset);

    aset = new HashAttributeSet();
    aset.add(ColorSupported.SUPPORTED);
    services = PrintServiceLookup.lookupPrintServices(null, aset);

}