ice.ri.common.print
Class PrintUtilities

java.lang.Object
  extended byice.ri.common.print.PrintUtilities

public final class PrintUtilities
extends Object

This is final class containing some static utility methods for printing.


Method Summary
static void adjustScale(StormPageFormat stormpageformat, double layout_width)
          Adjusts scale factor in stormpageformat if option scale to fit in stormpageformat is true.
static PrintHelper getPrintHelper(Viewport viewport, StormPageFormat stormpageformat)
          Creates instance of PrintHelper based on the existence of java.awt.JobAttributes.
static boolean isFrameset(Viewport viewport)
          Checks document associated with given viewport if it contains frameset with child frames.
static void refreshPageDecoration(Viewport viewport, StormPageFormat stormPageFormat)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

adjustScale

public static void adjustScale(StormPageFormat stormpageformat,
                               double layout_width)
Adjusts scale factor in stormpageformat if option scale to fit in stormpageformat is true.

Parameters:
layout_width - original layout width

getPrintHelper

public static PrintHelper getPrintHelper(Viewport viewport,
                                         StormPageFormat stormpageformat)
Creates instance of PrintHelper based on the existence of java.awt.JobAttributes. java.awt.JobAttributes has been added to SUN JVM since 1.3.
if class JobAttributes exists, instance of ice.ri.common.print.jdk13.PrintHelper13 will be created. Otherwise instance of ice.ri.common.print.jdk11.PrintHelper11 is created.

Parameters:
viewport -
stormpageformat -
Returns:

isFrameset

public static boolean isFrameset(Viewport viewport)
Checks document associated with given viewport if it contains frameset with child frames.

Parameters:
viewport -
Returns:
true if this viewport's document is frameset document, false otherwise.

refreshPageDecoration

public static void refreshPageDecoration(Viewport viewport,
                                         StormPageFormat stormPageFormat)