ice.ri.common.print.jdk13
Class PrintHelper13

java.lang.Object
  extended byice.ri.common.print.jdk13.PrintHelper13
All Implemented Interfaces:
PrintHelper

public class PrintHelper13
extends Object
implements PrintHelper

This class is utility class for printing viewports under JDK 1.3. The constructor can take a JobAttributes object which allows a user to set printer job attributes attributes such as if a dialog should be visible.


Constructor Summary
PrintHelper13(Viewport viewport, StormPageFormat stormPageFormat)
          Default PrintHelper13 constructor.
PrintHelper13(Viewport viewport, StormPageFormat stormpageformat, JobAttributes jobAttributes)
          Default PrintHelper13 constructor.
 
Method Summary
 void print(Frame parent)
          Prints the viewport content using the properties specified by StormPageFormat.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintHelper13

public PrintHelper13(Viewport viewport,
                     StormPageFormat stormpageformat,
                     JobAttributes jobAttributes)
Default PrintHelper13 constructor.

Parameters:
viewport - viewport that will be printed.
stormpageformat - page format which will be applied to print job.
jobAttributes - job attributes which will be applied to print job.

PrintHelper13

public PrintHelper13(Viewport viewport,
                     StormPageFormat stormPageFormat)
Default PrintHelper13 constructor.

Parameters:
viewport - viewport that will be printed.
stormPageFormat - page format which will be applied to print job.
Method Detail

print

public void print(Frame parent)
Prints the viewport content using the properties specified by StormPageFormat.

Specified by:
print in interface PrintHelper
Parameters:
parent - - frame to center print dialog to if print dialog is visible