Toolkit#getPrintJob
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public void | finalize()
Overrides java.
Deprecated
for removal since 9. Finalization has been deprecated for removal. See
java. for background information and details
about migration options.
Ends this print job once it is no longer referenced. |
| public abstract Graphics | Returns: the graphics context for printing the next pageGets a Graphics object that will draw to the next page. |
| public abstract Dimension | |
| public abstract int | Returns: the page resolutionReturns the resolution of the page in pixels per inch. |
| public abstract boolean | Returns: true if the last page will be printed first;
otherwise falseReturns true if the last page will be printed first. |
| PrintJob | back to summary |
|---|---|
| protected PrintJob() Constructor for subclasses to call. | |
| end | back to summary |
|---|---|
| public abstract void end() Ends the print job and does any necessary cleanup. | |
| finalize | back to summary |
|---|---|
| public void finalize() Overrides java. Deprecated for removal since 9. Finalization has been deprecated for removal. See
Ends this print job once it is no longer referenced.
| |
| getGraphics | back to summary |
|---|---|
| public abstract Graphics getGraphics() Gets a Graphics object that will draw to the next page.
The page is sent to the printer when the graphics
object is disposed. This graphics object will also implement
the PrintGraphics interface.
If
| |
| getPageDimension | back to summary |
|---|---|
| public abstract Dimension getPageDimension() Returns the dimensions of the page in pixels. The resolution of the page is chosen so that it is similar to the screen resolution.
| |
| getPageResolution | back to summary |
|---|---|
| public abstract int getPageResolution() Returns the resolution of the page in pixels per inch. Note that this doesn't have to correspond to the physical resolution of the printer.
| |
| lastPageFirst | back to summary |
|---|---|
| public abstract boolean lastPageFirst() Returns true if the last page will be printed first.
| |