public final class PrinterAttributes extends Object
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.
| Modifier and Type | Method and Description |
|---|---|
Collation |
getDefaultCollation()
The default collation setting.
|
int |
getDefaultCopies()
The default number of copies to print.
|
PageOrientation |
getDefaultPageOrientation()
Return the default orientation for paper on this printer.
|
Paper |
getDefaultPaper()
Return the default paper size used on this printer.
|
PaperSource |
getDefaultPaperSource()
Return the default paper input source/tray/
|
PrintColor |
getDefaultPrintColor()
Get the default color setting : greyscale or color
|
PrintQuality |
getDefaultPrintQuality()
Return the default quality setting
|
PrintResolution |
getDefaultPrintResolution()
Return the default print resolution for paper on this printer.
|
PrintSides |
getDefaultPrintSides()
Returns the default value for duplex settings.
|
int |
getMaxCopies()
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.
|
boolean |
supportsPageRanges()
Reports if page ranges are supported.
|
public int getDefaultCopies()
public int getMaxCopies()
public boolean supportsPageRanges()
public Collation getDefaultCollation()
Collationpublic Set<Collation> getSupportedCollations()
Collationpublic PrintSides getDefaultPrintSides()
PrintSidespublic Set<PrintSides> getSupportedPrintSides()
PrintSidespublic PrintColor getDefaultPrintColor()
public Set<PrintColor> getSupportedPrintColors()
PrintColorpublic PrintQuality getDefaultPrintQuality()
public Set<PrintQuality> getSupportedPrintQuality()
PrintQualitypublic PrintResolution getDefaultPrintResolution()
public Set<PrintResolution> getSupportedPrintResolutions()
PrintResolutionpublic PageOrientation getDefaultPageOrientation()
public Set<PageOrientation> getSupportedPageOrientations()
PageOrientationpublic Paper getDefaultPaper()
public Set<Paper> getSupportedPapers()
Paperpublic PaperSource getDefaultPaperSource()
public Set<PaperSource> getSupportedPaperSources()
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.