/* * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javafx.print; import java.util.Collections; import java.util.Set; import java.util.TreeSet; import static javafx.print.PageOrientation.*; import com.sun.javafx.print.PrinterImpl; /** * This class encapsulates the attributes of a printer which * relate to its job printing capabilities and other attributes. *
* there are methods to retrieve the default or current value, * as well as the set or range of supported values, as appropriate. *
* Instances of this class are delegates of the Printer
* and must be obtained from the printer. They cannot be mutated by
* the application as changing settings of a printer is outside the
* scope of this API.
*
* @since JavaFX 8.0
*/
public final class PrinterAttributes {
private PrinterImpl impl;
PrinterAttributes(PrinterImpl impl) {
this.impl = impl;
}
/**
* The default number of copies to print.
* @return default number of copies
*/
public int getDefaultCopies() {
return impl.defaultCopies();
}
/**
* The maximum supported number of copies.
*/
public int getMaxCopies() {
return impl.maxCopies();
}
/**
* Reports if page ranges are supported.
* @return true if page ranges supported.
*/
public boolean supportsPageRanges() {
return impl.supportsPageRanges();
}
/**
* The default collation setting.
* @return default value of Collation
*/
public Collation getDefaultCollation() {
return impl.defaultCollation();
}
/**
* Returns an unmodifiable set of the supported collation settings
* for this printer.
* @return the supported values of Collation
*/
public SetPrintSides
*/
public PrintSides getDefaultPrintSides() {
return impl.defaultSides();
}
/**
* Returns an unmodifiable set of the supported duplex settings
* for this printer.
* @return the supported values of PrintSides
*/
public SetPrintColor
*/
public SetPrintQuality
*/
public SetPrintResolution
*/
public SetPageOrientation
*/
public SetPaper
*/
public Set