|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.print.PrintablePage
public class PrintablePage
A decoration of the Page to allow printing. The class can also support printing in panels or other containers.
Copyright (c) Formaria Ltd., 2008, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.
$Revision: 1.4 $
| Field Summary | |
|---|---|
protected java.awt.Container |
currentPage
The current page or container being printed |
protected Project |
currentProject
The owner project and the context in which this object operates. |
protected Printout |
printout
The PrintOut class to which this printable page belongs |
| Fields inherited from interface java.awt.print.Printable |
|---|
NO_SUCH_PAGE, PAGE_EXISTS |
| Constructor Summary | |
|---|---|
PrintablePage(java.awt.Container page,
Printout po)
Create a new printable page |
|
| Method Summary | |
|---|---|
java.awt.Container |
getPage()
Get the page or container wrapped by this class. |
int |
print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int pageIndex)
Print the page |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.awt.Container currentPage
protected Printout printout
protected Project currentProject
| Constructor Detail |
|---|
public PrintablePage(java.awt.Container page,
Printout po)
page - The page or container to be printedpo - The printout that will 'own' the printable page| Method Detail |
|---|
public int print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int pageIndex)
throws java.awt.print.PrinterException
print in interface java.awt.print.Printableg - The graphics contextpf - the page formatpageIndex - the index of the page within the printout page set
java.awt.print.PrinterException - Some printing exception occuredpublic java.awt.Container getPage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||