APIdia Launch Partner
Top Description Fields Constructors Methods
javafx.print

public final Class PrinterAttributes

extends Object
Class Inheritance
Imports
java.util.Set, 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

Field Summary

Modifier and TypeField and Description
private PrinterImpl

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Collation

Returns:

default value of Collation
getDefaultCollation
()

The default collation setting.

public int

Returns:

default number of copies
getDefaultCopies
()

The default number of copies to print.

public PageOrientation

Returns:

default paper orientation
getDefaultPageOrientation
()

Return the default orientation for paper on this printer.

public Paper

Returns:

default Paper
getDefaultPaper
()

Return the default paper size used on this printer.

public PaperSource

Returns:

the default paper input source.
getDefaultPaperSource
()

Return the default paper input source/tray/

public PrintColor

Returns:

default print color setting.
getDefaultPrintColor
()

Get the default color setting : greyscale or color

public PrintQuality

Returns:

default print quality setting.
getDefaultPrintQuality
()

Return the default quality setting

public PrintResolution

Returns:

default paper resolution
getDefaultPrintResolution
()

Return the default print resolution for paper on this printer.

public PrintSides

Returns:

default value of PrintSides
getDefaultPrintSides
()

Returns the default value for duplex settings.

public int

Returns:

the maximum supported number of copies
getMaxCopies
()

The maximum supported number of copies.

public Set<Collation>

Returns:

the supported values of Collation
getSupportedCollations
()

Returns an unmodifiable set of the supported collation settings for this printer.

public Set<PageOrientation>

Returns:

the supported values of PageOrientation
getSupportedPageOrientations
()

Returns an unmodifiable set of the supported orientations for this printer.

public Set<Paper>

Returns:

the supported values of Paper
getSupportedPapers
()

Returns an unmodifiable set of the supported paper sizes for this printer.

public Set<PaperSource>

Returns:

the supported paper input sources
getSupportedPaperSources
()

Returns an unmodifiable set of the supported paper sources (ie input bins or trays) for this printer.

public Set<PrintColor>

Returns:

the supported values of PrintColor
getSupportedPrintColors
()

Returns an unmodifiable set of the supported color settings for this printer.

public Set<PrintQuality>

Returns:

the supported values of PrintQuality
getSupportedPrintQuality
()

Returns an unmodifiable set of the supported quality settings for this printer.

public Set<PrintResolution>

Returns:

the supported values of PrintResolution
getSupportedPrintResolutions
()

Returns an unmodifiable set of the supported print resolutions for this printer.

public Set<PrintSides>

Returns:

the supported values of PrintSides
getSupportedPrintSides
()

Returns an unmodifiable set of the supported duplex settings for this printer.

public boolean

Returns:

true if page ranges supported.
supportsPageRanges
()

Reports if page ranges are supported.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

implback to summary
private PrinterImpl impl

Constructor Detail

PrinterAttributesback to summary
pack-priv PrinterAttributes(PrinterImpl impl)

Method Detail

getDefaultCollationback to summary
public Collation getDefaultCollation()

The default collation setting.

Returns:Collation

default value of Collation

getDefaultCopiesback to summary
public int getDefaultCopies()

The default number of copies to print.

Returns:int

default number of copies

getDefaultPageOrientationback to summary
public PageOrientation getDefaultPageOrientation()

Return the default orientation for paper on this printer.

Returns:PageOrientation

default paper orientation

getDefaultPaperback to summary
public Paper getDefaultPaper()

Return the default paper size used on this printer.

Returns:Paper

default Paper

getDefaultPaperSourceback to summary
public PaperSource getDefaultPaperSource()

Return the default paper input source/tray/

Returns:PaperSource

the default paper input source.

getDefaultPrintColorback to summary
public PrintColor getDefaultPrintColor()

Get the default color setting : greyscale or color

Returns:PrintColor

default print color setting.

getDefaultPrintQualityback to summary
public PrintQuality getDefaultPrintQuality()

Return the default quality setting

Returns:PrintQuality

default print quality setting.

getDefaultPrintResolutionback to summary
public PrintResolution getDefaultPrintResolution()

Return the default print resolution for paper on this printer.

Returns:PrintResolution

default paper resolution

getDefaultPrintSidesback to summary
public PrintSides getDefaultPrintSides()

Returns the default value for duplex settings.

Returns:PrintSides

default value of PrintSides

getMaxCopiesback to summary
public int getMaxCopies()

The maximum supported number of copies.

Returns:int

the maximum supported number of copies

getSupportedCollationsback to summary
public Set<Collation> getSupportedCollations()

Returns an unmodifiable set of the supported collation settings for this printer.

Returns:Set<Collation>

the supported values of Collation

getSupportedPageOrientationsback to summary
public Set<PageOrientation> getSupportedPageOrientations()

Returns an unmodifiable set of the supported orientations for this printer.

Returns:Set<PageOrientation>

the supported values of PageOrientation

getSupportedPapersback to summary
public Set<Paper> getSupportedPapers()

Returns an unmodifiable set of the supported paper sizes for this printer.

Returns:Set<Paper>

the supported values of Paper

getSupportedPaperSourcesback to summary
public Set<PaperSource> getSupportedPaperSources()

Returns an unmodifiable set of the supported paper sources (ie input bins or trays) for this printer.

Returns:Set<PaperSource>

the supported paper input sources

getSupportedPrintColorsback to summary
public Set<PrintColor> getSupportedPrintColors()

Returns an unmodifiable set of the supported color settings for this printer.

Returns:Set<PrintColor>

the supported values of PrintColor

getSupportedPrintQualityback to summary
public Set<PrintQuality> getSupportedPrintQuality()

Returns an unmodifiable set of the supported quality settings for this printer.

Returns:Set<PrintQuality>

the supported values of PrintQuality

getSupportedPrintResolutionsback to summary
public Set<PrintResolution> getSupportedPrintResolutions()

Returns an unmodifiable set of the supported print resolutions for this printer.

Returns:Set<PrintResolution>

the supported values of PrintResolution

getSupportedPrintSidesback to summary
public Set<PrintSides> getSupportedPrintSides()

Returns an unmodifiable set of the supported duplex settings for this printer.

Returns:Set<PrintSides>

the supported values of PrintSides

supportsPageRangesback to summary
public boolean supportsPageRanges()

Reports if page ranges are supported.

Returns:boolean

true if page ranges supported.