Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.awt
Class PrintJob  view PrintJob download PrintJob.java

java.lang.Object
  extended byjava.awt.PrintJob

public abstract class PrintJob
extends java.lang.Object

This abstract class represents a print job.

Since:
1.0

Constructor Summary
PrintJob()
          Create a new PrintJob.
 
Method Summary
abstract  void end()
          Informs the print job that printing is complete or should be aborted.
 void finalize()
          This method explicitly ends the print job in the event the job becomes un-referenced without the application having done so.
abstract  Graphics getGraphics()
          Returns a graphics context suitable for rendering the next page.
abstract  Dimension getPageDimension()
          Returns the dimension of the page in pixels.
abstract  int getPageResolution()
          Returns the resolution of the page in pixels per inch.
abstract  boolean lastPageFirst()
          Tests whether or not the last page will be printed first.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintJob

public PrintJob()
Create a new PrintJob.

Method Detail

getGraphics

public abstract Graphics getGraphics()
Returns a graphics context suitable for rendering the next page. The return must also implement PrintGraphics.


getPageDimension

public abstract Dimension getPageDimension()
Returns the dimension of the page in pixels. The resolution will be chosen to be similar to the on screen image.


getPageResolution

public abstract int getPageResolution()
Returns the resolution of the page in pixels per inch. Note that this is not necessarily the printer's resolution.


lastPageFirst

public abstract boolean lastPageFirst()
Tests whether or not the last page will be printed first.


end

public abstract 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.