FileDocCategorySizeDatePackage
PrintJob.javaAPI DocJava SE 5 API1604Fri Aug 26 14:56:46 BST 2005java.awt

PrintJob

public abstract class PrintJob extends Object
An abstract class which initiates and executes a print job. It provides access to a print graphics object which renders to an appropriate print device.
see
Toolkit#getPrintJob
version
1.13 12/19/03
author
Amy Fowler

Fields Summary
Constructors Summary
Methods Summary
public abstract voidend()
Ends the print job and does any necessary cleanup.

public voidfinalize()
Ends this print job once it is no longer referenced.

see
#end

	end();
    
public abstract java.awt.GraphicsgetGraphics()
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.

see
PrintGraphics

public abstract java.awt.DimensiongetPageDimension()
Returns the dimensions of the page in pixels. The resolution of the page is chosen so that it is similar to the screen resolution.

public abstract intgetPageResolution()
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.

public abstract booleanlastPageFirst()
Returns true if the last page will be printed first.