|
ReportCat 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectli.netcat.print.util.WrappedPrint
li.netcat.print.util.PagePrint
This Print
is used to add header and/or footer on each page to a given print.
Constructor Summary | |
PagePrint(Print body,
PageDecorator decorator)
Constructs a new PagePrint with the given body and the given PageDecorator . |
Method Summary | |
PageDecorator |
getPageDecorator()
Returns the PageDecorator that defines header and footer. |
java.awt.Dimension |
getPreferredSize(java.awt.Graphics g)
Returns the preferred size of the Print . |
PrintIterator |
getPrintIterator()
Factory method, that produces a PrintIerator . |
void |
setPageDecorator(PageDecorator decorator)
Sets the PageDecorator that defines header and footer. |
Methods inherited from class li.netcat.print.util.WrappedPrint |
getPrint, setPrint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PagePrint(Print body, PageDecorator decorator)
PagePrint
with the given body and the given PageDecorator
.
body
- The body Print
that is intended to get a header and/or footer, not null
.decorator
- The decorator that defines header and footer, not null
.Method Detail |
public PageDecorator getPageDecorator()
PageDecorator
that defines header and footer.
PageDecorator
that defines header and footer.public void setPageDecorator(PageDecorator decorator)
PageDecorator
that defines header and footer.
decorator
- The decorator that defines header and footer, not null
.public java.awt.Dimension getPreferredSize(java.awt.Graphics g)
Print
Print
.
getPreferredSize
in interface Print
getPreferredSize
in class WrappedPrint
public PrintIterator getPrintIterator()
Print
PrintIerator
. The PrintIterator
is used like an enumeration to generate all Print
s.
getPrintIterator
in interface Print
getPrintIterator
in class WrappedPrint
|
ReportCat 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |