|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Field Summary | |
---|---|
static int |
NO_SUCH_PAGE
This value is returned by the print() method to indicate
that the requested page number does not exist. |
static int |
PAGE_EXISTS
This value is returned by the print() method to indicate
that the requested page exists and has been printed. |
Method Summary | |
---|---|
int |
print(Graphics graphics,
PageFormat format,
int page_number)
This method prints the specified page to the specified graphics context in the specified format. |
Field Detail |
---|
static final int PAGE_EXISTS
print()
method to indicate
that the requested page exists and has been printed.
static final int NO_SUCH_PAGE
print()
method to indicate
that the requested page number does not exist.
Method Detail |
---|
int print(Graphics graphics, PageFormat format, int page_number) throws PrinterException
graphics
- The graphics context to render the pages on.format
- The format in which to print the page.page_number
- The page number to print, where numbers start at zero.
PAGE_EXISTS
if the requested page exists and was
successfully printed, NO_SUCH_PAGE
otherwise.
PrinterException
- If an error occurs during printing.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |