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

public Class J2DPrinterJob

extends Object
implements PrinterJobImpl
Class Inheritance
All Implemented Interfaces
com.sun.javafx.print.PrinterJobImpl
Imports
javafx.print.Collation, .JobSettings, .PageLayout, .PageOrientation, .PageRange, .Paper, .PaperSource, .PrintColor, .PrintResolution, .PrintSides, .Printer, .Printer.MarginType, .PrinterAttributes, javafx.scene.Group, .Node, .Parent, .Scene, javafx.stage.Window, javax.print.PrintService, javax.print.attribute.HashPrintRequestAttributeSet, .PrintRequestAttribute, .PrintRequestAttributeSet, .ResolutionSyntax, .Size2DSyntax, javax.print.attribute.standard.Chromaticity, .Copies, .Destination, .DialogTypeSelection, .Media, .MediaPrintableArea, .MediaSize, .MediaSizeName, .MediaTray, .OrientationRequested, .PageRanges, .PrintQuality, .PrinterResolution, .SheetCollate, .Sides, java.awt.*, java.awt.print.PageFormat, .Pageable, .Printable, .PrinterException, java.io.File, java.net.URI, java.util.ArrayList, .Set, com.sun.glass.ui.Application, com.sun.javafx.PlatformUtil, com.sun.javafx.print.PrintHelper, .PrinterImpl, .PrinterJobImpl, com.sun.javafx.scene.NodeHelper, com.sun.javafx.sg.prism.NGNode, com.sun.javafx.stage.WindowHelper, com.sun.javafx.tk.TKStage, .Toolkit, com.sun.glass.utils.NativeLibLoader, com.sun.prism.impl.PrismSettings, com.sun.prism.j2d.PrismPrintGraphics, java.lang.reflect.Constructor

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
private class
pack-priv static class
private class
private static class
private class
private class

Field Summary

Modifier and TypeField and Description
private volatile Object
pack-priv Printer
pack-priv PrinterJob
private J2DPrinterJob.J2DPageable
pack-priv J2DPrinter
private boolean
private boolean
private boolean
private boolean
private Object
private static Class<T>
pack-priv PrinterJob
private PrintRequestAttributeSet
private JobSettings

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public boolean
pack-priv PrintRequestAttribute
getAlwaysOnTop(final long id)

private static native PrintRequestAttribute
getAlwaysOnTop(Class<T> onTopClass, long id)

private Printer
private J2DPrinter
public Printer
public PrinterImpl
private void
setEnabledState(Window owner, boolean state)

public void
public void
public boolean
private boolean
public boolean
private boolean
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
public PageLayout
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

eloback to summary
private volatile Object elo
fxPrinterback to summary
pack-priv Printer fxPrinter
fxPrinterJobback to summary
pack-priv PrinterJob fxPrinterJob
j2dPageableback to summary
private J2DPrinterJob.J2DPageable j2dPageable
j2dPrinterback to summary
pack-priv J2DPrinter j2dPrinter
jobCanceledback to summary
private boolean jobCanceled
jobDoneback to summary
private boolean jobDone
jobErrorback to summary
private boolean jobError
jobRunningback to summary
private boolean jobRunning
monitorback to summary
private Object monitor
onTopClassback to summary
private static Class<T> onTopClass
pJob2Dback to summary
pack-priv PrinterJob pJob2D
printReqAttrSetback to summary
private PrintRequestAttributeSet printReqAttrSet
settingsback to summary
private JobSettings settings

Constructor Detail

J2DPrinterJobback to summary
public J2DPrinterJob(PrinterJob fxJob)

Method Detail

cancelJobback to summary
public void cancelJob()

Implements com.sun.javafx.print.PrinterJobImpl.cancelJob.

Annotations
@Override
endJobback to summary
public boolean endJob()

Implements com.sun.javafx.print.PrinterJobImpl.endJob.

Annotations
@Override
getAlwaysOnTopback to summary
pack-priv PrintRequestAttribute getAlwaysOnTop(final long id)
getAlwaysOnTopback to summary
private static native PrintRequestAttribute getAlwaysOnTop(Class<T> onTopClass, long id)
getFXPrinterForServiceback to summary
private Printer getFXPrinterForService(PrintService service)
getJ2DPrinterback to summary
private J2DPrinter getJ2DPrinter(Printer printer)
getPrinterback to summary
public Printer getPrinter()
getPrinterImplback to summary
public PrinterImpl getPrinterImpl()

Implements com.sun.javafx.print.PrinterJobImpl.getPrinterImpl.

Annotations
@Override
setEnabledStateback to summary
private void setEnabledState(Window owner, boolean state)
setPrinterback to summary
public void setPrinter(Printer printer)
setPrinterImplback to summary
public void setPrinterImpl(PrinterImpl impl)

Implements com.sun.javafx.print.PrinterJobImpl.setPrinterImpl.

Annotations
@Override
showPageDialogback to summary
public boolean showPageDialog(Window owner)

Implements com.sun.javafx.print.PrinterJobImpl.showPageDialog.

Annotations
@Override
showPageDialogFromNestedLoopback to summary
private boolean showPageDialogFromNestedLoop(Window owner)
showPrintDialogback to summary
public boolean showPrintDialog(Window owner)

Implements com.sun.javafx.print.PrinterJobImpl.showPrintDialog.

Annotations
@Override
showPrintDialogWithNestedLoopback to summary
private boolean showPrintDialogWithNestedLoop(Window owner)
syncCollationback to summary
private void syncCollation()
syncColorback to summary
private void syncColor()
syncCopiesback to summary
private void syncCopies()
syncJobNameback to summary
private void syncJobName()
syncOutputFileback to summary
private void syncOutputFile()
syncPageLayoutback to summary
private void syncPageLayout()
syncPageRangesback to summary
private void syncPageRanges()
syncPaperSourceback to summary
private void syncPaperSource()
syncPrintQualityback to summary
private void syncPrintQuality()
syncPrintResolutionback to summary
private void syncPrintResolution()
syncSettingsToAttributesback to summary
private void syncSettingsToAttributes()
syncSidesback to summary
private void syncSides()
updateCollationback to summary
private void updateCollation()
updateColorback to summary
private void updateColor()
updateCopiesback to summary
private void updateCopies()
updateJobNameback to summary
private void updateJobName()
updateOutputFileback to summary
private void updateOutputFile()
updatePageLayoutback to summary
private void updatePageLayout()
updatePageRangesback to summary
private void updatePageRanges()
updatePaperSourceback to summary
private void updatePaperSource()
updatePrinterback to summary
private void updatePrinter()
updatePrintQualityback to summary
private void updatePrintQuality()
updatePrintResolutionback to summary
private void updatePrintResolution()
updateSettingsFromDialogback to summary
private void updateSettingsFromDialog()
updateSidesback to summary
private void updateSides()
validatePageLayoutback to summary
public PageLayout validatePageLayout(PageLayout pageLayout)

Implements com.sun.javafx.print.PrinterJobImpl.validatePageLayout.

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

pack-priv Class J2DPrinterJob.ClearSceneRunnable

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable

Field Summary

Modifier and TypeField and Description
pack-priv J2DPrinterJob.PageInfo

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

pageInfoback to summary
pack-priv J2DPrinterJob.PageInfo pageInfo

Constructor Detail

ClearSceneRunnableback to summary
pack-priv ClearSceneRunnable(J2DPrinterJob.PageInfo info)

Method Detail

runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

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

pack-priv Class J2DPrinterJob.ExitLoopRunnable

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable

Field Summary

Modifier and TypeField and Description
pack-priv Object
pack-priv Object

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

eloback to summary
pack-priv Object elo
rvback to summary
pack-priv Object rv

Constructor Detail

ExitLoopRunnableback to summary
pack-priv ExitLoopRunnable(Object elo, Object rv)

Method Detail

runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

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

private Class J2DPrinterJob.J2DPageable

extends Object
implements Pageable, Printable
Class Inheritance
All Implemented Interfaces
java.awt.print.Printable, java.awt.print.Pageable

Field Summary

Modifier and TypeField and Description
private PageFormat
private int
private J2DPrinterJob.PageInfo
private volatile J2DPrinterJob.PageInfo
private volatile boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
getNumberOfPages()

Implements java.awt.print.Pageable.getNumberOfPages.

Returns the number of pages in the set.

private boolean
getPage(int pageIndex)

public PageFormat
getPageFormat(int pageIndex)

Implements java.awt.print.Pageable.getPageFormat.

Returns the PageFormat of the page specified by pageIndex.

private PageFormat
public Printable
getPrintable(int pageIndex)

Implements java.awt.print.Pageable.getPrintable.

Returns the Printable instance responsible for rendering the page specified by pageIndex.

private void
implPrintPage(PageLayout pageLayout, Node node)

public int
print(Graphics g, PageFormat pf, int pageIndex)

Implements java.awt.print.Printable.print.

Prints the page at the specified index into the specified Graphics context in the specified format.

private void
printNode(Node node, Graphics g, int w, int h)

private boolean
waitForNextPage(int pageIndex)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currPageFormatback to summary
private PageFormat currPageFormat
currPageIndexback to summary
private int currPageIndex
currPageInfoback to summary
private J2DPrinterJob.PageInfo currPageInfo
newPageInfoback to summary
private volatile J2DPrinterJob.PageInfo newPageInfo
pageDoneback to summary
private volatile boolean pageDone

Constructor Detail

J2DPageableback to summary
private J2DPageable()

Method Detail

getNumberOfPagesback to summary
public int getNumberOfPages()

Implements java.awt.print.Pageable.getNumberOfPages.

Doc from java.awt.print.Pageable.getNumberOfPages.

Returns the number of pages in the set. To enable advanced printing features, it is recommended that Pageable implementations return the true number of pages rather than the UNKNOWN_NUMBER_OF_PAGES constant.

Annotations
@Override
getPageback to summary
private boolean getPage(int pageIndex)
getPageFormatback to summary
public PageFormat getPageFormat(int pageIndex)

Implements java.awt.print.Pageable.getPageFormat.

Doc from java.awt.print.Pageable.getPageFormat.

Returns the PageFormat of the page specified by pageIndex.

Annotations
@Override
getPageFormatFromLayoutback to summary
private PageFormat getPageFormatFromLayout(PageLayout layout)
getPrintableback to summary
public Printable getPrintable(int pageIndex)

Implements java.awt.print.Pageable.getPrintable.

Doc from java.awt.print.Pageable.getPrintable.

Returns the Printable instance responsible for rendering the page specified by pageIndex.

Annotations
@Override
implPrintPageback to summary
private void implPrintPage(PageLayout pageLayout, Node node)
printback to summary
public int print(Graphics g, PageFormat pf, int pageIndex)

Implements java.awt.print.Printable.print.

Doc from java.awt.print.Printable.print.

Prints the page at the specified index into the specified Graphics context in the specified format. A PrinterJob calls the Printable interface to request that a page be rendered into the context specified by graphics. The format of the page to be drawn is specified by pageFormat. The zero based index of the requested page is specified by pageIndex. If the requested page does not exist then this method returns NO_SUCH_PAGE; otherwise PAGE_EXISTS is returned. The Graphics class or subclass implements the PrinterGraphics interface to provide additional information. If the Printable object aborts the print job then it throws a PrinterException.

Annotations
@Override
printNodeback to summary
private void printNode(Node node, Graphics g, int w, int h)
waitForNextPageback to summary
private boolean waitForNextPage(int pageIndex)
com.sun.prism.j2d.print back to summary

pack-priv Class J2DPrinterJob.LayoutRunnable

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable

Field Summary

Modifier and TypeField and Description
pack-priv J2DPrinterJob.PageInfo

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

pageInfoback to summary
pack-priv J2DPrinterJob.PageInfo pageInfo

Constructor Detail

LayoutRunnableback to summary
pack-priv LayoutRunnable(J2DPrinterJob.PageInfo info)

Method Detail

runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

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

private Class J2DPrinterJob.PageDialogRunnable

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PageDialogRunnableback to summary
private PageDialogRunnable()

Method Detail

runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

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

private Class J2DPrinterJob.PageInfo

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private Group
private Node
private PageLayout
private Parent
private boolean
private boolean
private boolean
private Node

Constructor Summary

AccessConstructor and Description
pack-priv
PageInfo(PageLayout pageLayout, Node node)

Method Summary

Modifier and TypeMethod and Description
private void
pack-priv Node
pack-priv PageLayout
pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

groupback to summary
private Group group
nodeback to summary
private Node node
pageLayoutback to summary
private PageLayout pageLayout
rootback to summary
private Parent root
sceneInitedback to summary
private boolean sceneInited
tempGroupback to summary
private boolean tempGroup
tempSceneback to summary
private boolean tempScene
topNodeback to summary
private Node topNode

Constructor Detail

PageInfoback to summary
pack-priv PageInfo(PageLayout pageLayout, Node node)

Method Detail

clearSceneback to summary
private void clearScene()
getNodeback to summary
pack-priv Node getNode()
getPageLayoutback to summary
pack-priv PageLayout getPageLayout()
initSceneback to summary
pack-priv void initScene()
com.sun.prism.j2d.print back to summary

private Class J2DPrinterJob.PrintDialogRunnable

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PrintDialogRunnableback to summary
private PrintDialogRunnable()

Method Detail

runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

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

private Class J2DPrinterJob.PrintJobRunnable

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PrintJobRunnableback to summary
private PrintJobRunnable()

Method Detail

runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override