ReportCat 1.1

li.netcat.print.util
Class PainterPrint

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

public class PainterPrint
extends java.lang.Object
implements Print

This Print can be used to wrap a Painter as a Print.

Author:
Arthur Marxer

Constructor Summary
PainterPrint(Painter painter)
          Constructs a new PainterPrint using the given Painter.
 
Method Summary
 Painter getPaiter()
          Returns the currently installed Paiter.
 java.awt.Dimension getPreferredSize(java.awt.Graphics g)
          Returns the preferred size of the Print.
 PrintIterator getPrintIterator()
          Factory method, that produces a PrintIerator.
 void setPainter(Painter painter)
          Sets the wrapped painter to the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PainterPrint

public PainterPrint(Painter painter)
Constructs a new PainterPrint using the given Painter.

Parameters:
painter - An arbitrary painer object, not null.
Method Detail

getPaiter

public Painter getPaiter()
Returns the currently installed Paiter.

Returns:
The currently installed Painer.

setPainter

public void setPainter(Painter painter)
Sets the wrapped painter to the given value.

Parameters:
painter - An arbitrary painer object, 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
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