Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt

Class PrintJob

java.lang.Object
|
+--java.awt.PrintJob


public abstract class PrintJob

extends Object

This abstract class represents a print job.

Since:Author:See Also:

Constructor Summary

PrintJob()

Create a new PrintJob.

Method Summary

voidend()

Informs the print job that printing is complete or should be aborted.
voidfinalize()

This method explicitly ends the print job in the event the job becomes un-referenced without the application having done so.
java.awt.GraphicsgetGraphics()

Returns a graphics context suitable for rendering the next page.
java.awt.DimensiongetPageDimension()

Returns the dimension of the page in pixels.
intgetPageResolution()

Returns the resolution of the page in pixels per inch.
booleanlastPageFirst()

Tests whether or not the last page will be printed first.

Constructor Details

PrintJob

public PrintJob()

Create a new PrintJob.


Method Details

end

public void end()

Informs the print job that printing is complete or should be aborted.


finalize

public void finalize()

This method explicitly ends the print job in the event the job becomes un-referenced without the application having done so.


getGraphics

public Graphics getGraphics()

Returns a graphics context suitable for rendering the next page. The return must also implement PrintGraphics.

Returns:


getPageDimension

public Dimension getPageDimension()

Returns the dimension of the page in pixels. The resolution will be chosen to be similar to the on screen image.

Returns:


getPageResolution

public int getPageResolution()

Returns the resolution of the page in pixels per inch. Note that this is not necessarily the printer's resolution.

Returns:


lastPageFirst

public boolean lastPageFirst()

Tests whether or not the last page will be printed first.

Returns: