- java.lang.Object
- 
- javafx.print.PrinterAttributes
 
- 
 public final class PrinterAttributes extends Object 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 Printerand 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CollationgetDefaultCollation()The default collation setting.intgetDefaultCopies()The default number of copies to print.PageOrientationgetDefaultPageOrientation()Return the default orientation for paper on this printer.PapergetDefaultPaper()Return the default paper size used on this printer.PaperSourcegetDefaultPaperSource()Return the default paper input source/tray/PrintColorgetDefaultPrintColor()Get the default color setting : greyscale or colorPrintQualitygetDefaultPrintQuality()Return the default quality settingPrintResolutiongetDefaultPrintResolution()Return the default print resolution for paper on this printer.PrintSidesgetDefaultPrintSides()Returns the default value for duplex settings.intgetMaxCopies()The maximum supported number of copies.Set<Collation>getSupportedCollations()Returns an unmodifiable set of the supported collation settings for this printer.Set<PageOrientation>getSupportedPageOrientations()Returns an unmodifiable set of the supported orientations for this printer.Set<Paper>getSupportedPapers()Returns an unmodifiable set of the supported paper sizes for this printer.Set<PaperSource>getSupportedPaperSources()Returns an unmodifiable set of the supported paper sources (ie input bins or trays) for this printer.Set<PrintColor>getSupportedPrintColors()Returns an unmodifiable set of the supported color settings for this printer.Set<PrintQuality>getSupportedPrintQuality()Returns an unmodifiable set of the supported quality settings for this printer.Set<PrintResolution>getSupportedPrintResolutions()Returns an unmodifiable set of the supported print resolutions for this printer.Set<PrintSides>getSupportedPrintSides()Returns an unmodifiable set of the supported duplex settings for this printer.booleansupportsPageRanges()Reports if page ranges are supported.
 
- 
- 
- 
Method Detail- 
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.
 
 - 
getDefaultCollationpublic Collation getDefaultCollation() The default collation setting.- Returns:
- default value of Collation
 
 - 
getSupportedCollationspublic Set<Collation> getSupportedCollations() Returns an unmodifiable set of the supported collation settings for this printer.- Returns:
- the supported values of Collation
 
 - 
getDefaultPrintSidespublic PrintSides getDefaultPrintSides() Returns the default value for duplex settings.- Returns:
- default value of PrintSides
 
 - 
getSupportedPrintSidespublic Set<PrintSides> getSupportedPrintSides() Returns an unmodifiable set of the supported duplex settings for this printer.- Returns:
- the supported values of PrintSides
 
 - 
getDefaultPrintColorpublic PrintColor getDefaultPrintColor() Get the default color setting : greyscale or color- Returns:
- default print color setting.
 
 - 
getSupportedPrintColorspublic Set<PrintColor> getSupportedPrintColors() Returns an unmodifiable set of the supported color settings for this printer.- Returns:
- the supported values of PrintColor
 
 - 
getDefaultPrintQualitypublic PrintQuality getDefaultPrintQuality() Return the default quality setting- Returns:
- default print quality setting.
 
 - 
getSupportedPrintQualitypublic Set<PrintQuality> getSupportedPrintQuality() Returns an unmodifiable set of the supported quality settings for this printer.- Returns:
- the supported values of PrintQuality
 
 - 
getDefaultPrintResolutionpublic PrintResolution getDefaultPrintResolution() Return the default print resolution for paper on this printer.- Returns:
- default paper resolution
 
 - 
getSupportedPrintResolutionspublic Set<PrintResolution> getSupportedPrintResolutions() Returns an unmodifiable set of the supported print resolutions for this printer.- Returns:
- the supported values of PrintResolution
 
 - 
getDefaultPageOrientationpublic PageOrientation getDefaultPageOrientation() Return the default orientation for paper on this printer.- Returns:
- default paper orientation
 
 - 
getSupportedPageOrientationspublic Set<PageOrientation> getSupportedPageOrientations() Returns an unmodifiable set of the supported orientations for this printer.- Returns:
- the supported values of PageOrientation
 
 - 
getDefaultPaperpublic Paper getDefaultPaper() Return the default paper size used on this printer.- Returns:
- default Paper
 
 - 
getSupportedPaperspublic Set<Paper> getSupportedPapers() Returns an unmodifiable set of the supported paper sizes for this printer.- Returns:
- the supported values of Paper
 
 - 
getDefaultPaperSourcepublic PaperSource getDefaultPaperSource() Return the default paper input source/tray/- Returns:
- the default paper input source.
 
 - 
getSupportedPaperSourcespublic Set<PaperSource> getSupportedPaperSources() Returns an unmodifiable set of the supported paper sources (ie input bins or trays) for this printer.- Returns:
- the supported paper input sources
 
 
- 
 
-