Class GanttChartPrintJob
java.lang.Object
org.eclipse.nebula.widgets.ganttchart.print.GanttChartPrintJob
- All Implemented Interfaces:
java.lang.Runnable
public class GanttChartPrintJob
extends java.lang.Object
implements java.lang.Runnable
Runnable to print one ore more GanttCharts.
-
Constructor Summary
Constructors Constructor 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). -
Method Summary
Modifier and Type Method Description void
run()
void
setDisposePrinter(boolean dispose)
-
Constructor Details
-
GanttChartPrintJob
public 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). If not changed afterwards, running this job will dispose the given printer when it is done.- Parameters:
printer
- The printer to use.jobName
- The job name to use for the print job.charts
- The GanttCharts that should be printed.
-
GanttChartPrintJob
public 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).- Parameters:
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 istrue
. Only set this parameter tofalse
if the printer should be reused for additional print jobs. You need to ensure that the printer will get disposed yourself in that case!
-
-
Method Details
-
run
public void run()- Specified by:
run
in interfacejava.lang.Runnable
-
setDisposePrinter
public void setDisposePrinter(boolean dispose)- Parameters:
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.
-