jgnash.ui.report
Class ReportPrintFactory
java.lang.Object
jgnash.ui.report.ReportPrintFactory
public class ReportPrintFactory
- extends java.lang.Object
Factory class for handling printing preferences
- Version:
- $Id$
- Author:
- Craig Cavanaugh
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HEIGHT
private static final java.lang.String HEIGHT
- See Also:
- Constant Field Values
WIDTH
private static final java.lang.String WIDTH
- See Also:
- Constant Field Values
ORIENTATION
private static final java.lang.String ORIENTATION
- See Also:
- Constant Field Values
IMAGEABLE_HEIGHT
private static final java.lang.String IMAGEABLE_HEIGHT
- See Also:
- Constant Field Values
IMAGEABLE_WIDTH
private static final java.lang.String IMAGEABLE_WIDTH
- See Also:
- Constant Field Values
IMAGEABLE_X
private static final java.lang.String IMAGEABLE_X
- See Also:
- Constant Field Values
IMAGEABLE_Y
private static final java.lang.String IMAGEABLE_Y
- See Also:
- Constant Field Values
ReportPrintFactory
private ReportPrintFactory()
getDefaultPage
private static java.awt.print.PageFormat getDefaultPage()
- Gets the default page format based on the default printer. If no printers are found
a generic default is created.
- Returns:
- page format
savePageFormat
public static void savePageFormat(DynamicJasperReport report,
java.awt.print.PageFormat format)
- Save a
PageFormat to preferences
- Parameters:
report - reportformat - PageFormat to save
getPageFormat
public static java.awt.print.PageFormat getPageFormat(DynamicJasperReport report)