org.kemet.lf.tools.print
Class PrintHeader

java.lang.Object
  extended by org.kemet.lf.tools.print.PrintHeader
All Implemented Interfaces:
java.awt.print.Printable

public class PrintHeader
extends java.lang.Object
implements java.awt.print.Printable

Since:
0.5
Author:
fabricemaupin

PrintHeader : print the cover page of the document.


Field Summary
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
PrintHeader()
           
 
Method Summary
 int print(java.awt.Graphics g, java.awt.print.PageFormat pageFormat, int page)
           Prints the page at the specified index.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintHeader

public PrintHeader()
Method Detail

print

public int print(java.awt.Graphics g,
                 java.awt.print.PageFormat pageFormat,
                 int page)

Prints the page at the specified index.

Specified by:
print in interface java.awt.print.Printable
Parameters:
g - the graphic context into which the page is drawn
pageFormat - the size and orientation of the page being drawn
page - the zero based index of the page to be drawn
Returns:
signification that the requested page was rendered
Since:
0.5


Copyright © 2008 F. MAUPIN. All Rights Reserved.