| Modifier and Type | Class and Description |
|---|---|
| private static class | RasterPrinterJob.
Class to keep state information for redrawing areas "region" is an area at as a high a resolution as possible. |
| Modifier and Type | Field and Description |
|---|---|
| protected PrintRequestAttributeSet | attributes
attributes used by no-args page and print dialog and print method to communicate state |
| private BufferedImage | |
| private int | |
| private int | cachedBandWidth
Used to minimize GC & reallocation of band when printing |
| protected boolean | |
| private int | |
| public static boolean | |
| private AffineTransform | |
| protected String | |
| private int | |
| private int | |
| private static final float | |
| protected static final int | |
| private static final String | FORCE_PDL
When the system property FORCE_PIPE_PROP has this value then each page of a print job will be rendered through the PDL pipeline. |
| private static final String | FORCE_PIPE_PROP
Useful mainly for debugging, this system property can be used to force the printing code to print using a particular pipeline. |
| private static final String | FORCE_RASTER
When the system property FORCE_PIPE_PROP has this value then each page of a print job will be rendered through the raster pipeline. |
| public static boolean | forcePDL
values obtained from System properties in static initialiser block |
| public static boolean | |
| private String | |
| protected boolean | landscapeRotates270
Device rotation flag, if it support 270, this is set to true; |
| private static final int | MAX_BAND_SIZE
Maximum amount of memory in bytes to use for the buffered image "band". |
| protected static final int | MAX_UNKNOWN_PAGES
Pageable MAX pages |
| private boolean | mCollate
Collation effects the order of the pages printed when multiple copies are requested. |
| protected String | |
| protected int | |
| private String | mDocName
The name of the job being printed. |
| protected Pageable | mDocument
The document to be printed. |
| private int | mFirstPage
The zero based indices of the first and last pages to be printed. |
| private int | |
| private int | mNumCopies
The number of book copies to be printed. |
| protected PrintService | myService
Service for this job |
| protected boolean | |
| private DialogOwner | |
| protected OutputBin | |
| private PageRanges | |
| private long | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected boolean | performingPrinting
Printing cancellation flags |
| private PrinterGraphicsConfig | |
| private Paper | previousPaper
The previous print stream Paper Used to check if the paper size has changed such that the implementation needs to emit the new paper size information into the print stream. |
| protected static final int | |
| protected PrinterResolution | |
| private ArrayList | redrawList
List of areas & the graphics state for redrawing |
| private static final String | SHAPE_TEXT_PROP
When the system property SHAPE_TEXT_PROP has this value then text is always rendered as a shape, and no attempt is made to match the font through GDI |
| public static boolean | |
| protected Sides | |
| protected static final int | |
| protected boolean | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | |
| private PageFormat | |
| public void | cancel()
Implements abstract java. If a print job is in progress, print() has been called but has not returned, then this signals that the job should be cancelled and the next chance. |
| protected void | |
| private void | |
| protected Graphics2D | createPathGraphics(PeekGraphics graphics, PrinterJob printerJob, Printable painter, PageFormat pageFormat, int pageIndex)
Examine the metrics captured by the
|
| protected PeekGraphics | createPeekGraphics(Graphics2D graphics, PrinterJob printerJob)
Create and return an object that will gather and hold metrics about the print job. |
| protected void | |
| public PageFormat | defaultPage(PageFormat page)
Implements abstract java. The passed in PageFormat will be copied and altered to describe the default page size and orientation of the PrinterJob's current printer. |
| protected abstract void | |
| protected abstract void | |
| protected int | |
| public int | getCopies()
Implements abstract java. Get the number of copies to be printed. |
| protected int | |
| protected MediaPrintableArea | |
| protected int | |
| protected final int | |
| public String | getJobName()
Implements abstract java. Get the name of the document to be printed. |
| protected String | |
| protected int | |
| protected final int | |
| protected MediaSize | |
| protected final int | |
| protected int | getNoncollatedCopies()
Returns how many times each page in the book should be consecutively printed by PrintJob. |
| protected String | |
| protected Pageable | |
| protected PageFormat | |
| private long | |
| protected abstract double | |
| protected abstract double | |
| protected abstract double | |
| protected abstract double | |
| protected abstract double | |
| protected abstract double | |
| pack-priv synchronized PrinterGraphicsConfig | |
| public PrintService | Returns: the service for this printer job.Overrides java. Returns the service (printer) for this printer job. |
| protected final int | |
| protected final int | |
| public String | getUserName()
Implements abstract java. Get the name of the printing user. |
| protected String | |
| protected abstract double | |
| protected abstract double | |
| protected void | |
| protected void | initPrinterGraphics(Graphics2D g, Rectangle2D clip)
Configure the passed in Graphics2D so that is contains the defined initial settings for a print job. |
| public boolean | isCancelled()
Implements abstract java. Returns |
| protected boolean | |
| protected boolean | |
| protected static PrintService | |
| public PageFormat | Returns: the originalpage object if the dialog
is cancelled, or a new PageFormat object containing
the format indicated by the user if the dialog is
acknowledgedthe default PageFormat presented to the user
for modification page)Implements abstract java. Display a dialog to the user allowing the modification of a PageFormat instance. |
| public PageFormat | pageDialog(final PrintRequestAttributeSet attributes)
Overrides java. return a PageFormat corresponding to the updated attributes, or null if the user cancelled the dialog. |
| public void | |
| public void | print(PrintRequestAttributeSet attributes)
Overrides java. Prints a set of pages using the settings in the attribute set. |
| protected abstract void | printBand(byte[] data, int x, int y, int width, int height)
Prints the contents of the array of ints, 'data' to the current page. |
| public boolean | Returns: false if the user cancels the dialog and true otherwise.to store changed properties. attributes)Overrides java. Presents the user a dialog for changing properties of the print job interactively. |
| public boolean | Returns: false if the user cancels the dialog and true otherwise.Implements abstract java. Presents the user a dialog for changing properties of the print job interactively. |
| protected int | |
| public static String | Returns: the input text, with ignorable whitespace (if any) removedthe text to process s)Removes ignorable whitespace from the specified text, so that there is no need for platform-specific or font-specific custom whitespace handling, and so that these characters are not treated like control characters which are printed as the missing glyph. |
| public void | saveState(AffineTransform at, Shape clip, Rectangle2D region, double sx, double sy)
save graphics state of a PathGraphics for later redrawing of part of page represented by the region in that state |
| protected void | |
| protected void | |
| public void | setCopies(int copies)
Implements abstract java. Set the number of copies to be printed. |
| protected synchronized void | |
| public void | setJobName(String jobName)
Implements abstract java. Set the name of the document to be printed. |
| public void | setPageable(Pageable
The document to be printed. It may not be null. document)Implements abstract java. The pages in the document to be printed are held by the Pageable instance 'document'. |
| protected void | |
| private void | |
| public void | setPrintable(Printable
Called to render each page of the document. painter)Implements abstract java. The pages in the document to be printed by this PrinterJob are drawn by the Printable object 'painter'. |
| public void | setPrintable(Printable
Called to render each page of the document. painter, PageFormat The size and orientation of each page to
be printed. format)Implements abstract java. The pages in the document to be printed by this PrinterJob are drawn by the Printable object 'painter'. |
| public void | setPrintService(PrintService
print service which supports 2D printing. service)Overrides java. Associate this PrinterJob with a new PrintService. |
| protected void | |
| protected void | |
| protected abstract void | |
| protected abstract void | |
| protected void | updateAttributesWithPageFormat(PrintService service, PageFormat page, PrintRequestAttributeSet pageAttributes)
|
| protected void | |
| protected void | |
| public PageFormat | validatePage(PageFormat page)
Implements abstract java. The passed in PageFormat is cloned and altered to be usable on the PrinterJob's current printer. |
| protected void | validatePaper(Paper origPaper, Paper newPaper)
updates a Paper object to reflect the current printer's selected paper size and imageable area for that paper size. |