ReportCat 1.1

li.netcat.print
Interface Print

All Known Implementing Classes:
BreakPrint, GapPrint, GridPrint, ImagePrint, PageNumberPrint, PainterPrint, TablePrint, TextPrint, WrappedPrint

public interface Print

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.

Author:
Arthur Marxer

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

getPreferredSize

public java.awt.Dimension getPreferredSize(java.awt.Graphics g)
Returns the preferred size of the Print.

Parameters:
g - The relevant Graphics object. It can be used to calculate the widths of strings.
Returns:
The preferred size of the Print.

getPrintIterator

public PrintIterator getPrintIterator()
Factory method, that produces a PrintIerator. The PrintIterator is used like an enumeration to generate all Prints.

Returns:
An instance of a PrintIterator that is able to iterate over the Print.

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