|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPrintManager
Gantt charts delegate the task of printing to print managers. They have to
pass a print context to the manager so that the print routine knows which
settings to copy from the original Gantt chart to a fake but printable Gantt
chart (see PrintGanttChart
).
Method Summary | |
---|---|
javax.swing.JComponent |
createTimelineControl(Timeline timeline)
Creates the control to change the printed time span. |
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 ctx,
boolean preview)
Invokes the print operation on the manager. |
void |
setPageFormat(java.awt.print.PageFormat format)
Specifies the page format settings to use. |
Method Detail |
---|
void print(javax.swing.JComponent parentComponent, PrintContext ctx, boolean preview) throws DatelineModelException
parentComponent
- the UI component from which printing was triggered (needed for
hooking up the preview dialog)ctx
- 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 printing
DatelineModelException
java.awt.print.PrinterJob getPrinterJob()
java.awt.print.PageFormat getPageFormat()
void setPageFormat(java.awt.print.PageFormat format)
format
- the page format settingsPrintContext getPrintContext()
PrintGanttChart getPrintGanttChart()
javax.swing.JComponent createTimelineControl(Timeline timeline)
timeline
- the timeline that will be managed by the controls
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |