ReportCat 1.1

li.netcat.print.util
Class BorderPrint

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

public class BorderPrint
extends WrappedPrint

Implementation of the Print interface that can be used to paint a border around an other Print.

Author:
Arthur Marxer

Constructor Summary
BorderPrint(Print print)
          Constructs a new BorderPrint using the given Print and the default DrawerPrintBorder.
BorderPrint(Print print, PrintBorder border)
          Constructs a new BorderPrint using the given Print and the given PrintBorder.
 
Method Summary
 PrintBorder getBorder()
          Returns the border that is used for decoration.
 java.awt.Dimension getPreferredSize(java.awt.Graphics g)
          Returns the preferred size of the Print.
 PrintIterator getPrintIterator()
          Factory method, that produces a PrintIerator.
 void setBorder(PrintBorder border)
          Sets the PrintBorder that is used for decoration.
 void setPaintBorderFirst(boolean b)
          This property defines whether the border or the Print should be painted first or not.
 
Methods inherited from class li.netcat.print.util.WrappedPrint
getPrint, setPrint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BorderPrint

public BorderPrint(Print print)
Constructs a new BorderPrint using the given Print and the default DrawerPrintBorder.

Parameters:
print - The Print that gets decorated by this BorderPrint.

BorderPrint

public BorderPrint(Print print,
                   PrintBorder border)
Constructs a new BorderPrint using the given Print and the given PrintBorder.

Parameters:
print - The Print that gets decorated by this BorderPrint using the given PrintBorder.
border - The PrintBorder that is used for decoration.
Method Detail

getBorder

public PrintBorder getBorder()
Returns the border that is used for decoration.

Returns:
The PrintBorder that is used for decoration.

setBorder

public void setBorder(PrintBorder border)
Sets the PrintBorder that is used for decoration.

Parameters:
border - The PrintBorder that is used for decoration.

setPaintBorderFirst

public void setPaintBorderFirst(boolean b)
This property defines whether the border or the Print should be painted first or not.

Parameters:
b - Specify true, if the border should be painted first. The default is false.

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
Overrides:
getPreferredSize in class WrappedPrint

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