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

public final Class PrismPrintPipeline

extends PrintPipeline
Class Inheritance
Imports
javafx.collections.FXCollections, .ObservableSet, javafx.print.Printer, .PrinterJob, javax.print.PrintService, .PrintServiceLookup, java.util.Comparator, .HashMap, .Set, .TreeSet, java.awt.Graphics, .Graphics2D, com.sun.javafx.print.PrintHelper, .PrinterImpl, .PrinterJobImpl, com.sun.javafx.sg.prism.NGNode, com.sun.javafx.tk.PrintPipeline, com.sun.prism.j2d.print.J2DPrinter, .J2DPrinterJob

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static Printer
private static long
private static final PrismPrintPipeline.NameComparator
private static HashMap<PrintService, Printer>
private static ObservableSet<Printer>
private static ObservableSet<Printer>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
public PrinterJobImpl
private static Printer
findDefaultPrinter(Set<Printer> printers, PrintService defaultService)

public synchronized ObservableSet<Printer>
public synchronized Printer
public static PrintPipeline
public boolean
printNode(NGNode ngNode, int w, int h, Graphics g)

private void
Inherited from com.sun.javafx.tk.PrintPipeline:
getPrintPipeline

Field Detail

defaultPrinterback to summary
private static Printer defaultPrinter
lastTimeback to summary
private static long lastTime
nameComparatorback to summary
private static final PrismPrintPipeline.NameComparator nameComparator
pMapback to summary
private static HashMap<PrintService, Printer> pMap
printerSetback to summary
private static ObservableSet<Printer> printerSet
returnedPrinterSetback to summary
private static ObservableSet<Printer> returnedPrinterSet

Constructor Detail

PrismPrintPipelineback to summary
public PrismPrintPipeline()

Method Detail

addNewback to summary
private void addNew(PrintService s, Set<Printer> printers)
createPrinterJobback to summary
public PrinterJobImpl createPrinterJob(PrinterJob job)

Implements abstract com.sun.javafx.tk.PrintPipeline.createPrinterJob.

Annotations
@Override
findDefaultPrinterback to summary
private static Printer findDefaultPrinter(Set<Printer> printers, PrintService defaultService)
getAllPrintersback to summary
public synchronized ObservableSet<Printer> getAllPrinters()

Implements abstract com.sun.javafx.tk.PrintPipeline.getAllPrinters.

Annotations
@Override
getDefaultPrinterback to summary
public synchronized Printer getDefaultPrinter()

Implements abstract com.sun.javafx.tk.PrintPipeline.getDefaultPrinter.

Annotations
@Override
getInstanceback to summary
public static PrintPipeline getInstance()
printNodeback to summary
public boolean printNode(NGNode ngNode, int w, int h, Graphics g)
updatePrintersback to summary
private void updatePrinters(PrintService[] newServices)
com.sun.prism.j2d back to summary

pack-priv Class PrismPrintPipeline.NameComparator

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

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

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

Implements java.util.Comparator.compare.

Compares its two arguments for order.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NameComparatorback to summary
pack-priv NameComparator()

Method Detail

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

Implements java.util.Comparator.compare.

Doc from java.util.Comparator.compare.

Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

The implementor must ensure that signum(compare(x, y)) == -signum(compare(y, x)) for all x and y. (This implies that compare(x, y) must throw an exception if and only if compare(y, x) throws an exception.)

The implementor must also ensure that the relation is transitive: ((compare(x, y)>0) && (compare(y, z)>0)) implies compare(x, z)>0.

Finally, the implementor must ensure that compare(x, y)==0 implies that signum(compare(x, z))==signum(compare(y, z)) for all z.

Annotations
@Override