APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.prism.j2d.print

public Class J2DPrinter

extends Object
implements PrinterImpl
Class Inheritance
All Implemented Interfaces
com.sun.javafx.print.PrinterImpl
Imports
java.util.Collections, .Comparator, .HashMap, .Map, .Set, .TreeSet, javax.print.PrintService, javax.print.attribute.HashPrintRequestAttributeSet, .PrintRequestAttributeSet, .ResolutionSyntax, javax.print.attribute.standard.Chromaticity, .Copies, .CopiesSupported, .Media, .MediaPrintableArea, .MediaSize, .MediaSizeName, .MediaTray, .OrientationRequested, .PageRanges, .PrinterResolution, .SheetCollate, .Sides, javafx.geometry.Rectangle2D, java.awt.print.PageFormat, javafx.print.JobSettings, .PageLayout, .Printer, .Printer.MarginType, .Collation, .PageRange, .PrintColor, .PageOrientation, .PrintQuality, .PrintResolution, .Paper, .PaperSource, .PrintSides, com.sun.javafx.print.PrintHelper, .PrinterImpl, .Units

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private Set<Collation>
private Set<PrintColor>
private Collation
private int
private PageLayout
private PrintColor
private PageOrientation
private Paper
private PaperSource
private PrintQuality
private PrintResolution
private PrintSides
private Printer
private int
private final Map<MediaSizeName, Paper>
private Set<PageOrientation>
private Set<Paper>
private Set<PaperSource>
private final Map<Paper, MediaSizeName>
private static Map<MediaSizeName, Paper>
private static Map<MediaTray, PaperSource>
private Set<PrintQuality>
private Set<PrintResolution>
private PrintService
private Set<PrintSides>
private Map<PaperSource, MediaTray>
private Map<MediaTray, PaperSource>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private final synchronized Paper
private final synchronized PaperSource
private Paper
public Collation
public int
public PageOrientation
pack-priv PageLayout
public PageRange
public Paper
public PaperSource
public PrintColor
public PrintQuality
public PrintResolution
public PrintSides
pack-priv Chromaticity
public JobSettings
pack-priv PrinterResolution
pack-priv PrintQuality
pack-priv SheetCollate
private MediaSizeName
public String
pack-priv static int
private Paper
pack-priv Paper
pack-priv final synchronized PaperSource
public Printer
public PrintService
pack-priv MediaTray
private static void
pack-priv static OrientationRequested
public int
private void
public Rectangle2D
printableArea(Paper paper)

Implements com.sun.javafx.print.PrinterImpl.printableArea.

For any given paper, this retrieves the hardware margins, or a reasonable and safe guess if they aren't available.

pack-priv static PageOrientation
public void
public Set<Collation>
public Set<PageOrientation>
public Set<Paper>
public Set<PaperSource>
public Set<PrintColor>
public Set<PrintQuality>
public Set<PrintResolution>
public Set<PrintSides>
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

collateSetback to summary
private Set<Collation> collateSet
colorSetback to summary
private Set<PrintColor> colorSet
defaultCollationback to summary
private Collation defaultCollation
defaultCopiesback to summary
private int defaultCopies
defaultLayoutback to summary
private PageLayout defaultLayout
defColorback to summary
private PrintColor defColor
defOrientback to summary
private PageOrientation defOrient
defPaperback to summary
private Paper defPaper
defPaperSourceback to summary
private PaperSource defPaperSource
defQualityback to summary
private PrintQuality defQuality
defResback to summary
private PrintResolution defRes
defSidesback to summary
private PrintSides defSides
fxPrinterback to summary
private Printer fxPrinter
maxCopiesback to summary
private int maxCopies
mediaToPaperMapback to summary
private final Map<MediaSizeName, Paper> mediaToPaperMap
orientSetback to summary
private Set<PageOrientation> orientSet
paperSetback to summary
private Set<Paper> paperSet
paperSourceSetback to summary
private Set<PaperSource> paperSourceSet
paperToMediaMapback to summary
private final Map<Paper, MediaSizeName> paperToMediaMap
predefinedPaperMapback to summary
private static Map<MediaSizeName, Paper> predefinedPaperMap
predefinedTrayMapback to summary
private static Map<MediaTray, PaperSource> predefinedTrayMap
qualitySetback to summary
private Set<PrintQuality> qualitySet
resSetback to summary
private Set<PrintResolution> resSet
serviceback to summary
private PrintService service
sidesSetback to summary
private Set<PrintSides> sidesSet
sourceToTrayMapback to summary
private Map<PaperSource, MediaTray> sourceToTrayMap
trayToSourceMapback to summary
private Map<MediaTray, PaperSource> trayToSourceMap

Constructor Detail

J2DPrinterback to summary
public J2DPrinter(PrintService s)

Method Detail

addPaperback to summary
private final synchronized Paper addPaper(MediaSizeName media)
addPaperSourceback to summary
private final synchronized PaperSource addPaperSource(MediaTray tray)
createPaperback to summary
private Paper createPaper(MediaSizeName media)
defaultCollationback to summary
public Collation defaultCollation()

Implements com.sun.javafx.print.PrinterImpl.defaultCollation.

Annotations
@Override
defaultCopiesback to summary
public int defaultCopies()

Implements com.sun.javafx.print.PrinterImpl.defaultCopies.

Annotations
@Override
defaultOrientationback to summary
public PageOrientation defaultOrientation()

Implements com.sun.javafx.print.PrinterImpl.defaultOrientation.

Annotations
@Override
defaultPageLayoutback to summary
pack-priv PageLayout defaultPageLayout()
defaultPageRangeback to summary
public PageRange defaultPageRange()

Implements com.sun.javafx.print.PrinterImpl.defaultPageRange.

Annotations
@Override
defaultPaperback to summary
public Paper defaultPaper()

Implements com.sun.javafx.print.PrinterImpl.defaultPaper.

Annotations
@Override
defaultPaperSourceback to summary
public PaperSource defaultPaperSource()

Implements com.sun.javafx.print.PrinterImpl.defaultPaperSource.

Annotations
@Override
defaultPrintColorback to summary
public PrintColor defaultPrintColor()

Implements com.sun.javafx.print.PrinterImpl.defaultPrintColor.

Annotations
@Override
defaultPrintQualityback to summary
public PrintQuality defaultPrintQuality()

Implements com.sun.javafx.print.PrinterImpl.defaultPrintQuality.

Annotations
@Override
defaultPrintResolutionback to summary
public PrintResolution defaultPrintResolution()

Implements com.sun.javafx.print.PrinterImpl.defaultPrintResolution.

Annotations
@Override
defaultSidesback to summary
public PrintSides defaultSides()

Implements com.sun.javafx.print.PrinterImpl.defaultSides.

Annotations
@Override
getDefaultChromaticityback to summary
pack-priv Chromaticity getDefaultChromaticity()
getDefaultJobSettingsback to summary
public JobSettings getDefaultJobSettings()

Implements com.sun.javafx.print.PrinterImpl.getDefaultJobSettings.

Annotations
@Override
getDefaultPrinterResolutionback to summary
pack-priv PrinterResolution getDefaultPrinterResolution()
getDefaultPrintQualityback to summary
pack-priv PrintQuality getDefaultPrintQuality()
getDefaultSheetCollateback to summary
pack-priv SheetCollate getDefaultSheetCollate()
getMediaSizeNameback to summary
private MediaSizeName getMediaSizeName(Paper paper)
getNameback to summary
public String getName()

Implements com.sun.javafx.print.PrinterImpl.getName.

Annotations
@Override
getOrientIDback to summary
pack-priv static int getOrientID(PageOrientation o)
getPaperback to summary
private Paper getPaper(MediaSizeName m)
getPaperForMediaback to summary
pack-priv Paper getPaperForMedia(Media media)
getPaperSourceback to summary
pack-priv final synchronized PaperSource getPaperSource(MediaTray tray)
getPrinterback to summary
public Printer getPrinter()
getServiceback to summary
public PrintService getService()
getTrayForPaperSourceback to summary
pack-priv MediaTray getTrayForPaperSource(PaperSource source)
initPredefinedMediaMapsback to summary
private static void initPredefinedMediaMaps()
mapOrientationback to summary
pack-priv static OrientationRequested mapOrientation(PageOrientation o)
maxCopiesback to summary
public int maxCopies()

Implements com.sun.javafx.print.PrinterImpl.maxCopies.

Annotations
@Override
populateMediaback to summary
private void populateMedia()
printableAreaback to summary
public Rectangle2D printableArea(Paper paper)

Implements com.sun.javafx.print.PrinterImpl.printableArea.

For any given paper, this retrieves the hardware margins, or a reasonable and safe guess if they aren't available.

Annotations
@Override
reverseMapOrientationback to summary
pack-priv static PageOrientation reverseMapOrientation(OrientationRequested o)
setPrinterback to summary
public void setPrinter(Printer printer)

Implements com.sun.javafx.print.PrinterImpl.setPrinter.

Annotations
@Override
supportedCollationsback to summary
public Set<Collation> supportedCollations()

Implements com.sun.javafx.print.PrinterImpl.supportedCollations.

Annotations
@Override
supportedOrientationback to summary
public Set<PageOrientation> supportedOrientation()

Implements com.sun.javafx.print.PrinterImpl.supportedOrientation.

Annotations
@Override
supportedPapersback to summary
public Set<Paper> supportedPapers()

Implements com.sun.javafx.print.PrinterImpl.supportedPapers.

Annotations
@Override
supportedPaperSourcesback to summary
public Set<PaperSource> supportedPaperSources()

Implements com.sun.javafx.print.PrinterImpl.supportedPaperSources.

Annotations
@Override
supportedPrintColorback to summary
public Set<PrintColor> supportedPrintColor()

Implements com.sun.javafx.print.PrinterImpl.supportedPrintColor.

Annotations
@Override
supportedPrintQualityback to summary
public Set<PrintQuality> supportedPrintQuality()

Implements com.sun.javafx.print.PrinterImpl.supportedPrintQuality.

Annotations
@Override
supportedPrintResolutionback to summary
public Set<PrintResolution> supportedPrintResolution()

Implements com.sun.javafx.print.PrinterImpl.supportedPrintResolution.

Annotations
@Override
supportedSidesback to summary
public Set<PrintSides> supportedSides()

Implements com.sun.javafx.print.PrinterImpl.supportedSides.

Annotations
@Override
supportsPageRangesback to summary
public boolean supportsPageRanges()

Implements com.sun.javafx.print.PrinterImpl.supportsPageRanges.

Annotations
@Override
com.sun.prism.j2d.print back to summary

private Class J2DPrinter.PaperComparator

extends Object
implements Comparator<Paper>
Class Inheritance
All Implemented Interfaces
java.util.Comparator

Field Summary

Modifier and TypeField and Description
pack-priv static final J2DPrinter.PaperComparator

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
compare(Paper p1, Paper p2)

Implements java.util.Comparator.compare.

This sorts papers lexically based on name, not size.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

theComparatorback to summary
pack-priv static final J2DPrinter.PaperComparator theComparator

Constructor Detail

PaperComparatorback to summary
private PaperComparator()

Method Detail

compareback to summary
public int compare(Paper p1, Paper p2)

Implements java.util.Comparator.compare.

This sorts papers lexically based on name, not size.

Annotations
@Override
com.sun.prism.j2d.print back to summary

private Class J2DPrinter.PaperSourceComparator

extends Object
implements Comparator<PaperSource>
Class Inheritance
All Implemented Interfaces
java.util.Comparator

Field Summary

Modifier and TypeField and Description
pack-priv static final J2DPrinter.PaperSourceComparator

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
compare(PaperSource p1, PaperSource p2)

Implements java.util.Comparator.compare.

This sorts papers lexically based on name, not size.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

theComparatorback to summary
pack-priv static final J2DPrinter.PaperSourceComparator theComparator

Constructor Detail

PaperSourceComparatorback to summary
private PaperSourceComparator()

Method Detail

compareback to summary
public int compare(PaperSource p1, PaperSource p2)

Implements java.util.Comparator.compare.

This sorts papers lexically based on name, not size.

Annotations
@Override
com.sun.prism.j2d.print back to summary

private Class J2DPrinter.PrintResolutionComparator

extends Object
implements Comparator<PrintResolution>
Class Inheritance
All Implemented Interfaces
java.util.Comparator

Field Summary

Modifier and TypeField and Description
pack-priv static final J2DPrinter.PrintResolutionComparator

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

whether this resolution is less, equal or greater than the other.
compare
(PrintResolution r1, PrintResolution r2)

Implements java.util.Comparator.compare.

Is used to approximate a sort of resolutions from lowest to highest overall resolution.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

theComparatorback to summary
pack-priv static final J2DPrinter.PrintResolutionComparator theComparator

Constructor Detail

PrintResolutionComparatorback to summary
private PrintResolutionComparator()

Method Detail

compareback to summary
public int compare(PrintResolution r1, PrintResolution r2)

Implements java.util.Comparator.compare.

Is used to approximate a sort of resolutions from lowest to highest overall resolution. The feed and cross feed resolutions are combined so a where M and N represent cross feed and feed dpi values, a resolution MxN will equal NxM.

Returns:int

whether this resolution is less, equal or greater than the other.

Annotations
@Override