ice.storm.print.jdk12
Class PageAttributesConverter

java.lang.Object
  extended byice.storm.print.jdk12.PageAttributesConverter

public class PageAttributesConverter
extends Object

The PageAttributesConverter class it a utility used to convert to and from PageAttributes and StormPageFormat objects.

Since:
6.0
Author:
Patrick Corless
See Also:
StormPageFormat, PageFormat

Constructor Summary
PageAttributesConverter()
           
 
Method Summary
static StormPageFormat pageAttributesConverter(PageAttributes pageAttributes, StormPageFormat stormPageFormat)
          Convertcs a Java 2 PageAttributes object to a StormPageFormat object.
static PageAttributes stormPageFormatConverter(StormPageFormat stormPageFormat, PageAttributes pageAttributes)
          Convertcs a StormPageFormat object to a Java 2 PageAttributes object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageAttributesConverter

public PageAttributesConverter()
Method Detail

stormPageFormatConverter

public static PageAttributes stormPageFormatConverter(StormPageFormat stormPageFormat,
                                                      PageAttributes pageAttributes)
Convertcs a StormPageFormat object to a Java 2 PageAttributes object.

Parameters:
stormPageFormat - object to be converted. If null a new StormPageFormat object is created.
Returns:
PageFormat object with the same properties as stormPageFormat
See Also:
StormPageFormat, PageAttributes

pageAttributesConverter

public static StormPageFormat pageAttributesConverter(PageAttributes pageAttributes,
                                                      StormPageFormat stormPageFormat)
Convertcs a Java 2 PageAttributes object to a StormPageFormat object.

Parameters:
pageAttributes - object to be converted. If null a new PageAttributes object is created.
Returns:
StormPageFormat object with the same properties as pageFormat
See Also:
PageAttributes, PageFormat