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

Interface Printable

java.lang.Object
|
+--java.awt.print.Printable


public interface Printable

This interface provides a mechanism for the actual printing of pages to the printer. The object implementing this interface performs the page rendering.

Author:

Field Summary

static intNO_SUCH_PAGE

This value is returned by the print() method to indicate that the requested page number does not exist.
static intPAGE_EXISTS

This value is returned by the print() method to indicate that the requested page exists and has been printed.

Method Summary

intprint(java.awt.Graphics graphics, java.awt.print.PageFormat format, int page_number)

This method prints the specified page to the specified graphics context in the specified format.

Field Details

NO_SUCH_PAGE

public static final int NO_SUCH_PAGE

This value is returned by the print() method to indicate that the requested page number does not exist.


PAGE_EXISTS

public static final int PAGE_EXISTS

This value is returned by the print() method to indicate that the requested page exists and has been printed.


Method Details

print

public int print(java.awt.Graphics graphics, java.awt.print.PageFormat format, int page_number)

This method prints the specified page to the specified graphics context in the specified format. The pages are numbered starting from zero.

Parameters:

Returns:

Throws: