|
ReportCat 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The Print is the interface to a very lightweight component that can be printed on
one or more pages. It is a factory that is able to produce an instance of a PrintIterator.
The PrintIterator is then used to render the Print on as many pages as nessecary.
The naming convention suggests, that all implementations of a Print end with "Print", e.g. TablePrint.
See the util and the table package for some predefined und useful implementations.
If a property of a Print is changed, all PrintIterators and Painters
generated by this Print are not valid any more. The general concept recommends, that
a Print is constructed and configured before it's reference is returned. After the
reference is "published", no modification to the Print shoud be carried out.
| Method Summary | |
java.awt.Dimension |
getPreferredSize(java.awt.Graphics g)
Returns the preferred size of the Print. |
PrintIterator |
getPrintIterator()
Factory method, that produces a PrintIerator. |
| Method Detail |
public java.awt.Dimension getPreferredSize(java.awt.Graphics g)
Print.
g - The relevant Graphics object. It can be used to calculate the widths of strings.
Print.public PrintIterator getPrintIterator()
PrintIerator. The PrintIterator is used like an enumeration to generate all Prints.
PrintIterator that is able to iterate over the Print.
|
ReportCat 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||