ReportCat 1.1

li.netcat.print.util
Class BackgroundPrint

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

public class BackgroundPrint
extends WrappedPrint

This Print can be used to paint a background behind an other Print.

Author:
Arthur Marxer

Constructor Summary
BackgroundPrint(Print print, java.awt.Color background)
          Constructs a new BackgroundPrint using the given print and the given color.
 
Method Summary
 java.awt.Color getBackground()
          Returns the current beckground property.
 PrintIterator getPrintIterator()
          Factory method, that produces a PrintIerator.
 void setBackground(java.awt.Color background)
          Sets the given background.
 
Methods inherited from class li.netcat.print.util.WrappedPrint
getPreferredSize, getPrint, setPrint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackgroundPrint

public BackgroundPrint(Print print,
                       java.awt.Color background)
Constructs a new BackgroundPrint using the given print and the given color.

Parameters:
print - The print that is intended to have a background, not null.
background - The background color, can be null.
Method Detail

getBackground

public java.awt.Color getBackground()
Returns the current beckground property.

Returns:
The background property.

setBackground

public void setBackground(java.awt.Color background)
Sets the given background.

Parameters:
background - The background color, can be null.

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