public class CompoundGanttChartPrinter extends GanttChartPrinter
GanttChartPrinter
Constructor and Description |
---|
CompoundGanttChartPrinter()
Creates a new CompoundGanttChartPrinter.
|
CompoundGanttChartPrinter(java.lang.String jobName)
Creates a new CompoundGanttChartPrinter that uses the given job name as printer job name.
|
Modifier and Type | Method and Description |
---|---|
void |
addGanttChart(GanttChart ganttChart)
Adds the given GanttChart to the list of GanttCharts that should be
printed by this CompoundGanttChartPrinter.
|
void |
addGanttChart(int index,
GanttChart ganttChart)
Adds the given GanttChart at the specified index to the list of GanttCharts
that should be printed by this CompoundGanttChartPrinter.
|
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.
|
void |
removeGanttChart(GanttChart ganttChart)
Removes the given GanttChart from the list of GanttCharts that should be
printed by this CompoundGanttChartPrinter.
|
setupPrinter
public CompoundGanttChartPrinter()
public CompoundGanttChartPrinter(java.lang.String jobName)
jobName
- The name that will be used for the print job.public void print()
GanttChartPrinter
print
in class GanttChartPrinter
protected org.eclipse.swt.graphics.Point getFullPageCount(org.eclipse.swt.printing.Printer printer)
GanttChartPrinter
getFullPageCount
in class GanttChartPrinter
printer
- The printer that is used to determine the page count of a full print.public void addGanttChart(GanttChart ganttChart)
ganttChart
- The GanttChart to add to the charts to be printed.public void addGanttChart(int index, GanttChart ganttChart)
index
- The index at which the given GanttChart should be added.ganttChart
- The GanttChart to add to the charts to be printed.public void removeGanttChart(GanttChart ganttChart)
ganttChart
- The GanttChart to remove from the charts to be printed.