public interface PrintProvider
Modifier and Type | Method and Description |
---|---|
String |
getName()
Indicates the name of the document being printed which
will be shown in the header/footer.
|
PrintPage[][] |
getPages(int width,
int height,
double zoom)
Returns print pages being shown and printed.
|
Date |
lastModified()
Indicates the time at which the user last made a modification to
the document, diagram, etc.
|
PrintPage[][] getPages(int width, int height, double zoom)
pages[1][2]
will
be shown in second row and third column in the dialog.width
- specifies the width of pages in pixels.height
- specifies the height of pages in pixels.zoom
- specifies the scale of pages.
The zoom can take positive double value:
0.2
means 20%
,
1.0
- 100%
,
3.1415
- 314.5%
etc.String getName()
Date lastModified()