ReportCat 1.1

li.netcat.print.util
Class PagePrint

java.lang.Object
  extended byli.netcat.print.util.WrappedPrint
      extended byli.netcat.print.util.PagePrint
All Implemented Interfaces:
Print

public class PagePrint
extends WrappedPrint

This Print is used to add header and/or footer on each page to a given print.

Author:
Arthur Marxer

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

PagePrint

public PagePrint(Print body,
                 PageDecorator decorator)
Constructs a new PagePrint with the given body and the given PageDecorator.

Parameters:
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

getPageDecorator

public PageDecorator getPageDecorator()
Returns the PageDecorator that defines header and footer.

Returns:
The PageDecorator that defines header and footer.

setPageDecorator

public void setPageDecorator(PageDecorator decorator)
Sets the PageDecorator that defines header and footer.

Parameters:
decorator - The decorator that defines header and footer, not null.

getPreferredSize

public java.awt.Dimension getPreferredSize(java.awt.Graphics g)
Description copied from interface: Print
Returns the preferred size of the Print.

Specified by:
getPreferredSize in interface Print
Overrides:
getPreferredSize in class WrappedPrint

getPrintIterator

public PrintIterator getPrintIterator()
Description copied from interface: Print
Factory method, that produces a PrintIerator. The PrintIterator is used like an enumeration to generate all Prints.

Specified by:
getPrintIterator in interface Print
Overrides:
getPrintIterator in class WrappedPrint

ReportCat 1.1

Copyright © 2003 - 2005 NetCat Inc.. All rights reserved. Feedback

Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation, Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation, Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation