ReportCat 1.1

li.netcat.print.util
Interface PrintBorder

All Known Implementing Classes:
DrawerPrintBorder, LinePrintBorder

public interface PrintBorder

Interface, defining a border that can handle a pagebreak. This interface is used by the BorderPrint which decorates a print with a border.

Author:
Arthur Marxer

Method Summary
 PrintInsets getPrintInsets(Print print, java.awt.Graphics g)
          Returns the PrintInsets for a given print.
 void paint(Print print, java.awt.Graphics g, PrintInsets margins, int x, int y, int width, int height, boolean topOpened, boolean bottomOpened)
          Paints the PrintBorder on the given graphics.
 

Method Detail

getPrintInsets

public PrintInsets getPrintInsets(Print print,
                                  java.awt.Graphics g)
Returns the PrintInsets for a given print.

Parameters:
print - The print that gets the border.
g - The relevant graphics object.
Returns:
The print insets defining all insets.

paint

public void paint(Print print,
                  java.awt.Graphics g,
                  PrintInsets margins,
                  int x,
                  int y,
                  int width,
                  int height,
                  boolean topOpened,
                  boolean bottomOpened)
Paints the PrintBorder on the given graphics.

Parameters:
print - The print that gets the border.
g - The relevant graphics object to paint on.
margins - The margins to be respected.
x - The x of the upper left corner of the PrintBorder.
y - The y of the upper left corner of the PrintBorder.
width - The total with of the border.
height - The total height of the border.
topOpened - Specifies whether the top is opened (page break) or not.
bottomOpened - Specifies whether the bottom is opened (page break) or not.

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