public class PrintUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
FOOTER_HEIGHT_IN_PRINTER_DPI
The height of the footer on a print page.
|
Constructor and Description |
---|
PrintUtils() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.swt.graphics.Rectangle |
computePrintArea(org.eclipse.swt.printing.Printer printer)
Computes the print area, including margins
|
static org.eclipse.swt.graphics.Point |
computeScaleFactor(org.eclipse.swt.printing.Printer printer) |
static org.eclipse.swt.graphics.Point |
getPageCount(org.eclipse.swt.printing.Printer printer,
org.eclipse.swt.graphics.Image image)
Calculate number of horizontal and vertical pages needed
to print the given image of the chart.
|
static org.eclipse.swt.graphics.Rectangle |
getVisibleGanttChartArea(org.eclipse.swt.graphics.Image image) |
public static final int FOOTER_HEIGHT_IN_PRINTER_DPI
public static org.eclipse.swt.graphics.Rectangle computePrintArea(org.eclipse.swt.printing.Printer printer)
printer
- The printer that will be used to print the chartpublic static org.eclipse.swt.graphics.Point computeScaleFactor(org.eclipse.swt.printing.Printer printer)
printer
- The printer that will be used to print the chartpublic static org.eclipse.swt.graphics.Point getPageCount(org.eclipse.swt.printing.Printer printer, org.eclipse.swt.graphics.Image image)
printer
- The printer that will be used to print the chartimage
- The image of the chart that should be printed.public static org.eclipse.swt.graphics.Rectangle getVisibleGanttChartArea(org.eclipse.swt.graphics.Image image)
image
- The image of the chart that should be printed.