ice.storm.print.jdk12
Class PrintablePage

java.lang.Object
  extended byice.storm.print.jdk12.PrintablePage
All Implemented Interfaces:
Printable

public class PrintablePage
extends Object
implements Printable

The printable page class allows StormPrinter to be easily printed using Java 2 Printable interface.

Since:
6.0
Version:
%I%, %G%
Author:
Patrick Corless

Field Summary
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
PrintablePage(StormPrinter stormPrinter, int pageIndex)
          Create a new PrintablePage object.
 
Method Summary
 int print(Graphics graphics, PageFormat pageFormat, int pageIndex)
          Print the StormPrinter object to graphics context graphics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintablePage

public PrintablePage(StormPrinter stormPrinter,
                     int pageIndex)
Create a new PrintablePage object.

Parameters:
stormPrinter - viewport printer to be printed
pageIndex - page index to print
Method Detail

print

public int print(Graphics graphics,
                 PageFormat pageFormat,
                 int pageIndex)
Print the StormPrinter object to graphics context graphics.

Specified by:
print in interface Printable
Parameters:
graphics - graphics context StormPrinter prints to.
pageFormat - not used by print method
pageIndex - not used by print method