PrintJob

Name

PrintJob

[Graphic: Figure from the text]

Description

PrintJob encapsulates printing information. When you call Toolkit.getPrintJob(), this is the object that is returned. From the PrintJob, you can access a Graphics object, which can be used for drawing to the printer.

Class Definition

public abstract class jav.awt.PrintJob extends java.lang.Object {
 // Instance Methods public abstract void end();
public void finalize();
public abstract Graphics getGraphics();
public abstract Dimension getPageDimension();
public abstract int getPageResolution();
public abstract boolean lastPageFirst();
}

Instance Methods

end

public abstract void end()

finalize

public void finalize()

getGraphics

public abstract Graphics getGraphics()

getPageDimension

public abstract Dimension getPageDimension()

getPageResolution

public abstract int getPageResolution

lastPageFirst

public abstract boolean lastPageFirst()

See Also

Dimension, Graphics, PrintGraphics, Toolkit