| 
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.PageNumberPrint
Supporting class to write the number on a page. This class is intended to be overridden. It uses a LabelDrawer
 to render the page number.
| Constructor Summary | |
PageNumberPrint(PageNumber pageNumber)
Constructs a new PageNumberPrint with the given PageNumber. | 
|
| Method Summary | |
 LabelDrawer | 
getDrawer()
Returns the Drawer that is used to render the page number.  | 
protected  java.lang.String | 
getLabelText(int pageNumber,
             int numberOfPages)
Override this method to customize the text.  | 
 java.awt.Dimension | 
getPreferredSize(java.awt.Graphics g)
Returns the preferred size of the Print. | 
 PrintIterator | 
getPrintIterator()
Factory method, that produces a PrintIerator.  | 
 void | 
setDrawer(LabelDrawer drawer)
Sets the Drawer that is used to render the page number. | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public PageNumberPrint(PageNumber pageNumber)
PageNumberPrint with the given PageNumber.
pageNumber - The page number that should be displayed.| Method Detail | 
public LabelDrawer getDrawer()
Drawer that is used to render the page number. Use this instance to configure font and alignment.
Drawer that is used to render the page number.public void setDrawer(LabelDrawer drawer)
Drawer that is used to render the page number.
drawer - The Drawer that is used to render the page number, not null.
protected java.lang.String getLabelText(int pageNumber,
                                        int numberOfPages)
"Page "+(pageNumber+1)+ "/" + numberOfPages;public java.awt.Dimension getPreferredSize(java.awt.Graphics g)
PrintPrint.
getPreferredSize in interface Printg - The relevant Graphics object. It can be used to calculate the widths of strings.
Print.public PrintIterator getPrintIterator()
PrintPrintIerator. The PrintIterator is used like an enumeration to generate all Prints.
getPrintIterator in interface PrintPrintIterator 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 | |||||||||