Class PrinterAttributes
java.lang.Object
javafx.print.PrinterAttributes
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
- 
Method SummaryModifier and TypeMethodDescriptionThe default collation setting.intThe default number of copies to print.Return the default orientation for paper on this printer.Return the default paper size used on this printer.Return the default paper input source/tray/Get the default color setting : greyscale or colorReturn the default quality settingReturn the default print resolution for paper on this printer.Returns the default value for duplex settings.intThe maximum supported number of copies.Returns an unmodifiable set of the supported collation settings for this printer.Returns an unmodifiable set of the supported orientations for this printer.Returns an unmodifiable set of the supported paper sizes for this printer.Returns an unmodifiable set of the supported paper sources (ie input bins or trays) for this printer.Returns an unmodifiable set of the supported color settings for this printer.Returns an unmodifiable set of the supported quality settings for this printer.Returns an unmodifiable set of the supported print resolutions for this printer.Returns an unmodifiable set of the supported duplex settings for this printer.booleanReports if page ranges are supported.
- 
Method Details- 
getDefaultCopiespublic int getDefaultCopies()The default number of copies to print.- Returns:
- default number of copies
 
- 
getMaxCopiespublic int getMaxCopies()The maximum supported number of copies.- Returns:
- the maximum supported number of copies
 
- 
supportsPageRangespublic boolean supportsPageRanges()Reports if page ranges are supported.- Returns:
- true if page ranges supported.
 
- 
getDefaultCollationThe default collation setting.- Returns:
- default value of Collation
 
- 
getSupportedCollations
- 
getDefaultPrintSidesReturns the default value for duplex settings.- Returns:
- default value of PrintSides
 
- 
getSupportedPrintSidesReturns an unmodifiable set of the supported duplex settings for this printer.- Returns:
- the supported values of PrintSides
 
- 
getDefaultPrintColorGet the default color setting : greyscale or color- Returns:
- default print color setting.
 
- 
getSupportedPrintColorsReturns an unmodifiable set of the supported color settings for this printer.- Returns:
- the supported values of PrintColor
 
- 
getDefaultPrintQualityReturn the default quality setting- Returns:
- default print quality setting.
 
- 
getSupportedPrintQualityReturns an unmodifiable set of the supported quality settings for this printer.- Returns:
- the supported values of PrintQuality
 
- 
getDefaultPrintResolutionReturn the default print resolution for paper on this printer.- Returns:
- default paper resolution
 
- 
getSupportedPrintResolutionsReturns an unmodifiable set of the supported print resolutions for this printer.- Returns:
- the supported values of PrintResolution
 
- 
getDefaultPageOrientationReturn the default orientation for paper on this printer.- Returns:
- default paper orientation
 
- 
getSupportedPageOrientationsReturns an unmodifiable set of the supported orientations for this printer.- Returns:
- the supported values of PageOrientation
 
- 
getDefaultPaperReturn the default paper size used on this printer.- Returns:
- default Paper
 
- 
getSupportedPapers
- 
getDefaultPaperSourceReturn the default paper input source/tray/- Returns:
- the default paper input source.
 
- 
getSupportedPaperSourcesReturns an unmodifiable set of the supported paper sources (ie input bins or trays) for this printer.- Returns:
- the supported paper input sources
 
 
-