public class GanttChartPrinter
extends java.lang.Object
There are some configuration parameters that have impact on:
Constructor and Description |
---|
GanttChartPrinter(GanttChart ganttChart)
Creates a new GanttChartPrinter for the given GanttChart.
|
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.swt.graphics.Point |
getFullPageCount(org.eclipse.swt.printing.Printer printer)
Calculates the number of horizontal and vertical pages needed to print the entire chart.
|
void |
print()
First opens the PrintDialog so a user can adjust his print settings and will
then print the chart based on the settings made by the user.
|
protected org.eclipse.swt.printing.Printer |
setupPrinter(org.eclipse.swt.widgets.Shell shell)
Opens the PrintDialog to let the user specify the printer and print configurations to use.
|
public GanttChartPrinter(GanttChart ganttChart)
ganttChart
- The GanttChart that should be printed by this GanttChartPrinter.public void print()
protected org.eclipse.swt.printing.Printer setupPrinter(org.eclipse.swt.widgets.Shell shell)
shell
- The Shell which should be the parent for the PrintDialogprotected org.eclipse.swt.graphics.Point getFullPageCount(org.eclipse.swt.printing.Printer printer)
printer
- The printer that is used to determine the page count of a full print.