ReportCat 1.1

li.netcat.print.util
Class WrappedPrint

java.lang.Object
  extended byli.netcat.print.util.WrappedPrint
All Implemented Interfaces:
Print
Direct Known Subclasses:
BackgroundPrint, BorderPrint, GluePrint, InsetsPrint, PagePrint, RotatePrint, ScalePrint, SplitPrint

public abstract class WrappedPrint
extends java.lang.Object
implements Print

Abstract implementation of a Print that wraps another Print.

Author:
Arthur Marxer

Constructor Summary
WrappedPrint(Print print)
          Constructs a new WrappedPrint using the given Print as delegate.
 
Method Summary
 java.awt.Dimension getPreferredSize(java.awt.Graphics g)
          Returns the preferred size of the Print.
 Print getPrint()
          Returns the delegate.
 PrintIterator getPrintIterator()
          Factory method, that produces a PrintIerator.
 void setPrint(Print print)
          Sets the delegate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappedPrint

public WrappedPrint(Print print)
Constructs a new WrappedPrint using the given Print as delegate.

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

getPrint

public Print getPrint()
Returns the delegate.

Returns:
The delegate.

setPrint

public void setPrint(Print print)
Sets the delegate.

Parameters:
print - The delegate, must not be 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
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()
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
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