public class J2DPrinterJob extends java.lang.Object implements PrinterJobImpl
Modifier and Type | Class and Description |
---|---|
(package private) static class |
J2DPrinterJob.ClearSceneRunnable |
(package private) static class |
J2DPrinterJob.ExitLoopRunnable |
private class |
J2DPrinterJob.J2DPageable |
(package private) static class |
J2DPrinterJob.LayoutRunnable |
private class |
J2DPrinterJob.PageDialogRunnable |
private static class |
J2DPrinterJob.PageInfo |
private class |
J2DPrinterJob.PrintDialogRunnable |
private class |
J2DPrinterJob.PrintJobRunnable |
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
elo |
(package private) Printer |
fxPrinter |
(package private) PrinterJob |
fxPrinterJob |
private J2DPrinterJob.J2DPageable |
j2dPageable |
(package private) J2DPrinter |
j2dPrinter |
private boolean |
jobDone |
private boolean |
jobError |
private boolean |
jobRunning |
private java.lang.Object |
monitor |
private static java.lang.Class |
onTopClass |
(package private) java.awt.print.PrinterJob |
pJob2D |
private javax.print.attribute.PrintRequestAttributeSet |
printReqAttrSet |
private JobSettings |
settings |
Constructor and Description |
---|
J2DPrinterJob(PrinterJob fxJob) |
Modifier and Type | Method and Description |
---|---|
void |
cancelJob() |
private void |
checkPermissions() |
boolean |
endJob() |
(package private) javax.print.attribute.PrintRequestAttribute |
getAlwaysOnTop(long id) |
private Printer |
getFXPrinterForService(javax.print.PrintService service) |
private J2DPrinter |
getJ2DPrinter(Printer printer) |
Printer |
getPrinter() |
PrinterImpl |
getPrinterImpl() |
boolean |
print(PageLayout pageLayout,
Node node) |
private void |
setEnabledState(Window owner,
boolean state) |
void |
setPrinter(Printer printer) |
void |
setPrinterImpl(PrinterImpl impl) |
boolean |
showPageDialog(Window owner) |
private boolean |
showPageDialogFromNestedLoop(Window owner) |
boolean |
showPrintDialog(Window owner) |
private boolean |
showPrintDialogWithNestedLoop(Window owner) |
private void |
syncCollation() |
private void |
syncColor() |
private void |
syncCopies() |
private void |
syncJobName() |
private void |
syncPageLayout() |
private void |
syncPageRanges() |
private void |
syncPaperSource() |
private void |
syncPrintQuality() |
private void |
syncPrintResolution() |
private void |
syncSettingsToAttributes() |
private void |
syncSides() |
private void |
updateCollation() |
private void |
updateColor() |
private void |
updateCopies() |
private void |
updateJobName() |
private void |
updatePageLayout() |
private void |
updatePageRanges() |
private void |
updatePaperSource() |
private void |
updatePrinter() |
private void |
updatePrintQuality() |
private void |
updatePrintResolution() |
private void |
updateSettingsFromDialog() |
private void |
updateSides() |
PageLayout |
validatePageLayout(PageLayout pageLayout) |
PrinterJob fxPrinterJob
java.awt.print.PrinterJob pJob2D
Printer fxPrinter
J2DPrinter j2dPrinter
private JobSettings settings
private javax.print.attribute.PrintRequestAttributeSet printReqAttrSet
private volatile java.lang.Object elo
private static java.lang.Class onTopClass
private boolean jobRunning
private boolean jobError
private boolean jobDone
private J2DPrinterJob.J2DPageable j2dPageable
private java.lang.Object monitor
public J2DPrinterJob(PrinterJob fxJob)
javax.print.attribute.PrintRequestAttribute getAlwaysOnTop(long id)
private void setEnabledState(Window owner, boolean state)
public boolean showPrintDialog(Window owner)
showPrintDialog
in interface PrinterJobImpl
private boolean showPrintDialogWithNestedLoop(Window owner)
public boolean showPageDialog(Window owner)
showPageDialog
in interface PrinterJobImpl
private boolean showPageDialogFromNestedLoop(Window owner)
private void updateJobName()
private void updateCopies()
private void updatePageRanges()
private void updateSides()
private void updateCollation()
private void updateColor()
private void updatePrintQuality()
private void updatePrintResolution()
private void updatePageLayout()
private void updatePaperSource()
private Printer getFXPrinterForService(javax.print.PrintService service)
public void setPrinterImpl(PrinterImpl impl)
setPrinterImpl
in interface PrinterJobImpl
public PrinterImpl getPrinterImpl()
getPrinterImpl
in interface PrinterJobImpl
private J2DPrinter getJ2DPrinter(Printer printer)
public Printer getPrinter()
public void setPrinter(Printer printer)
private void updatePrinter()
private void updateSettingsFromDialog()
private void syncSettingsToAttributes()
private void syncJobName()
private void syncCopies()
private void syncPageRanges()
private void syncSides()
private void syncCollation()
private void syncPageLayout()
private void syncPaperSource()
private void syncColor()
private void syncPrintQuality()
private void syncPrintResolution()
public PageLayout validatePageLayout(PageLayout pageLayout)
validatePageLayout
in interface PrinterJobImpl
private void checkPermissions()
public boolean print(PageLayout pageLayout, Node node)
print
in interface PrinterJobImpl
public boolean endJob()
endJob
in interface PrinterJobImpl
public void cancelJob()
cancelJob
in interface PrinterJobImpl