public abstract class AbstractPrintManager extends Object implements IPrintManager
Constructor and Description |
---|
AbstractPrintManager() |
Modifier and Type | Method and Description |
---|---|
protected PreviewDialog |
createPreviewDialog(JComponent parentComponent)
Creates the preview dialog and uses the given component to look up the
window that will own the dialog.
|
PageFormat |
getPageFormat()
Returns the currently used page format settings.
|
PrintContext |
getPrintContext()
Returns the print context that was passed to the print manager from the
printing Gantt chart.
|
PrinterJob |
getPrinterJob()
Returns the current printer job.
|
PrintGanttChart |
getPrintGanttChart()
Returns the printable Gantt chart, which will copy its settings from the
Gantt chart requested to be printed.
|
void |
print(JComponent parentComponent,
PrintContext printContext,
boolean preview)
Invokes the print operation on the manager.
|
void |
setPageFormat(PageFormat format)
Specifies the page format settings to use.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTimelineControl
public void print(JComponent parentComponent, PrintContext printContext, boolean preview)
IPrintManager
print
in interface IPrintManager
parentComponent
- the UI component from which printing was triggered (needed for
hooking up the preview dialog)printContext
- the printing context (depends on the Gantt chart, the dual
Gantt chart has two different contexts, the upper and the
lower part)preview
- a flag signalling whether a preview dialog has to be shown
before printingprotected PreviewDialog createPreviewDialog(JComponent parentComponent)
parentComponent
- the component used to lookup the owning window for the dialogpublic PageFormat getPageFormat()
IPrintManager
getPageFormat
in interface IPrintManager
public PrinterJob getPrinterJob()
IPrintManager
getPrinterJob
in interface IPrintManager
public PrintContext getPrintContext()
IPrintManager
getPrintContext
in interface IPrintManager
public void setPageFormat(PageFormat format)
IPrintManager
setPageFormat
in interface IPrintManager
format
- the page format settingspublic PrintGanttChart getPrintGanttChart()
IPrintManager
getPrintGanttChart
in interface IPrintManager
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.