public static class CanvasPrinter.PrintInfo extends Object
PageLayout,
i.e. the scale dependent on the screen DPI as well as the number of rows and columns for poster printing.
This data is produced by the method CanvasPrinter.createPrintInfo(javafx.print.PageLayout) and used in the method
CanvasPrinter.print(javafx.print.PrinterJob, boolean).| Constructor and Description |
|---|
PrintInfo(Rectangle contentRectangle,
double scale,
int rowCount,
int columnCount)
Constructs a new PrintInfo instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnCount()
Returns the number of columns that the content to print would need considering the
PageLayout. |
Rectangle |
getContentRectangle()
Returns the rectangle that defines the visible area of the page (that is, the printable area plus the content margins).
|
int |
getRowCount()
Returns the number of rows that the content to print would need considering the
PageLayout. |
double |
getScale()
Returns the scale of the content for the
PageLayout. |
public PrintInfo(Rectangle contentRectangle, double scale, int rowCount, int columnCount)
contentRectangle - the rectangle that defines the visible area of the page (that is, the printable area plus the content margins).scale - The scale of the content.rowCount - The number of rows that are needed to print the content completely with the PageLayout.columnCount - The number of columns that are needed to print the content completely with the PageLayout.public int getColumnCount()
PageLayout.public Rectangle getContentRectangle()
public int getRowCount()
PageLayout.public double getScale()
PageLayout.