ReportCat 1.1

li.netcat.print.util
Class WrappedPrintIterator

java.lang.Object
  extended byli.netcat.print.util.WrappedPrintIterator
All Implemented Interfaces:
PrintIterator

public class WrappedPrintIterator
extends java.lang.Object
implements PrintIterator

Implementation of a PrintIterator that wraps another PrintIterator.

Author:
Arthur Marxer

Constructor Summary
WrappedPrintIterator(PrintIterator printIterator)
          Constructs a new WrappedPrintIterator using the given PrintIterator as delegate.
 
Method Summary
 PrintIterator getIterator()
          Returns the delegate.
 Painter getNext(java.awt.Graphics g, int width, int height)
          This implementation calls directly the delegate.
 boolean hasNext()
          This implementation calls directly the delegate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappedPrintIterator

public WrappedPrintIterator(PrintIterator printIterator)
Constructs a new WrappedPrintIterator using the given PrintIterator as delegate.

Parameters:
printIterator - The delegate, must not be null.
Method Detail

getIterator

public PrintIterator getIterator()
Returns the delegate.

Returns:
The delegate.

hasNext

public boolean hasNext()
This implementation calls directly the delegate.

Specified by:
hasNext in interface PrintIterator
Returns:
true if there is at least one more Painter available.

getNext

public Painter getNext(java.awt.Graphics g,
                       int width,
                       int height)
This implementation calls directly the delegate.

Specified by:
getNext in interface PrintIterator
Parameters:
g - The relevant Graphics object.
width - The maximum available width that the Painter might use. This parameter is always > 0.
height - The maximum available height that the Painter might use. This parameter is always > 0.
Returns:
A Painter that is capable of painting the next part of 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