java.awt
Class PrintJob

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.awt.PrintJob

public abstract class PrintJob
extends Object sample code for java.lang.Object definition code for java.lang.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 Also:
Toolkit.getPrintJob(java.awt.Frame, java.lang.String, java.util.Properties) sample code for java.awt.Toolkit.getPrintJob(java.awt.Frame, java.lang.String, java.util.Properties) definition code for java.awt.Toolkit.getPrintJob(java.awt.Frame, java.lang.String, java.util.Properties)

Constructor Summary
PrintJob sample code for java.awt.PrintJob.PrintJob() definition code for java.awt.PrintJob.PrintJob() ()
           
 
Method Summary
abstract  void end sample code for java.awt.PrintJob.end() definition code for java.awt.PrintJob.end() ()
          Ends the print job and does any necessary cleanup.
 void finalize sample code for java.awt.PrintJob.finalize() definition code for java.awt.PrintJob.finalize() ()
          Ends this print job once it is no longer referenced.
abstract  Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics getGraphics sample code for java.awt.PrintJob.getGraphics() definition code for java.awt.PrintJob.getGraphics() ()
          Gets a Graphics object that will draw to the next page.
abstract  Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getPageDimension sample code for java.awt.PrintJob.getPageDimension() definition code for java.awt.PrintJob.getPageDimension() ()
          Returns the dimensions of the page in pixels.
abstract  int getPageResolution sample code for java.awt.PrintJob.getPageResolution() definition code for java.awt.PrintJob.getPageResolution() ()
          Returns the resolution of the page in pixels per inch.
abstract  boolean lastPageFirst sample code for java.awt.PrintJob.lastPageFirst() definition code for java.awt.PrintJob.lastPageFirst() ()
          Returns true if the last page will be printed first.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

PrintJob sample code for java.awt.PrintJob() definition code for java.awt.PrintJob()

public PrintJob()
Method Detail

getGraphics sample code for java.awt.PrintJob.getGraphics() definition code for java.awt.PrintJob.getGraphics()

public abstract Graphics sample code for java.awt.Graphics definition code for java.awt.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.

See Also:
PrintGraphics sample code for java.awt.PrintGraphics definition code for java.awt.PrintGraphics

getPageDimension sample code for java.awt.PrintJob.getPageDimension() definition code for java.awt.PrintJob.getPageDimension()

public abstract Dimension sample code for java.awt.Dimension definition code for java.awt.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 sample code for java.awt.PrintJob.getPageResolution() definition code for java.awt.PrintJob.getPageResolution()

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 sample code for java.awt.PrintJob.lastPageFirst() definition code for java.awt.PrintJob.lastPageFirst()

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


end sample code for java.awt.PrintJob.end() definition code for java.awt.PrintJob.end()

public abstract void end()
Ends the print job and does any necessary cleanup.


finalize sample code for java.awt.PrintJob.finalize() definition code for java.awt.PrintJob.finalize()

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

Overrides:
finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() in class Object sample code for java.lang.Object definition code for java.lang.Object
See Also:
end() sample code for java.awt.PrintJob.end() definition code for java.awt.PrintJob.end()