public class GanttChartPrintJob
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
GanttChartPrintJob(org.eclipse.swt.printing.Printer printer,
java.lang.String jobName,
boolean disposePrinter,
GanttChart... charts)
Creates a new GanttChartPrintJob that uses the given printer and print job name
to print the specified GanttChart(s).
|
GanttChartPrintJob(org.eclipse.swt.printing.Printer printer,
java.lang.String jobName,
GanttChart... charts)
Creates a new GanttChartPrintJob that uses the given printer and print job name
to print the specified GanttChart(s).
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
void |
setDisposePrinter(boolean dispose) |
public GanttChartPrintJob(org.eclipse.swt.printing.Printer printer, java.lang.String jobName, GanttChart... charts)
printer
- The printer to use.jobName
- The job name to use for the print job.charts
- The GanttCharts that should be printed.public GanttChartPrintJob(org.eclipse.swt.printing.Printer printer, java.lang.String jobName, boolean disposePrinter, GanttChart... charts)
printer
- The printer to use.jobName
- The job name to use for the print job.charts
- The GanttCharts that should be printed.disposePrinter
- Flag to configure whether the given printer should be disposed
after the print job is done. Default is true
. Only set this
parameter to false
if the printer should be reused for additional
print jobs. You need to ensure that the printer will get disposed yourself
in that case!public void run()
run
in interface java.lang.Runnable
public void setDisposePrinter(boolean dispose)
dispose
- true
if the printer that is set to this GanttChartPrintJob
should be disposed after the print job is done, false
if it should
not be disposed so the printer can be reused for additional tasks.