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()
Collation
public Set<Collation> getSupportedCollations()
Collation
public PrintSides getDefaultPrintSides()
PrintSides
public Set<PrintSides> getSupportedPrintSides()
PrintSides
public PrintColor getDefaultPrintColor()
public Set<PrintColor> getSupportedPrintColors()
PrintColor
public PrintQuality getDefaultPrintQuality()
public Set<PrintQuality> getSupportedPrintQuality()
PrintQuality
public PrintResolution getDefaultPrintResolution()
public Set<PrintResolution> getSupportedPrintResolutions()
PrintResolution
public PageOrientation getDefaultPageOrientation()
public Set<PageOrientation> getSupportedPageOrientations()
PageOrientation
public Paper getDefaultPaper()
public Set<Paper> getSupportedPapers()
Paper
public PaperSource getDefaultPaperSource()
public Set<PaperSource> getSupportedPaperSources()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.