|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.swing.print.AbstractPrintManager
public abstract class AbstractPrintManager
An abstract implementation of a print manager. The only thing missing to make this a concrete implementation is the method, which creates the controls to change the time span for printing. This control is dependend on the currently used dateline model.
Constructor Summary | |
---|---|
AbstractPrintManager()
|
Method Summary | |
---|---|
protected PreviewDialog |
createPreviewDialog(javax.swing.JComponent parentComponent)
Creates the preview dialog and uses the given component to look up the window that will own the dialog. |
java.awt.print.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. |
java.awt.print.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(javax.swing.JComponent parentComponent,
PrintContext printContext,
boolean preview)
Invokes the print operation on the manager. |
void |
setPageFormat(java.awt.print.PageFormat format)
Specifies the page format settings to use. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.dlsc.flexgantt.swing.print.IPrintManager |
---|
createTimelineControl |
Constructor Detail |
---|
public AbstractPrintManager()
Method Detail |
---|
public void print(javax.swing.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(javax.swing.JComponent parentComponent)
parentComponent
- the component used to lookup the owning window for the dialog
public java.awt.print.PageFormat getPageFormat()
IPrintManager
getPageFormat
in interface IPrintManager
public java.awt.print.PrinterJob getPrinterJob()
IPrintManager
getPrinterJob
in interface IPrintManager
public PrintContext getPrintContext()
IPrintManager
getPrintContext
in interface IPrintManager
public void setPageFormat(java.awt.print.PageFormat format)
IPrintManager
setPageFormat
in interface IPrintManager
format
- the page format settingspublic PrintGanttChart getPrintGanttChart()
IPrintManager
getPrintGanttChart
in interface IPrintManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |