org.freehep.swing.print.table
Class TablePrinter
java.lang.Object
org.freehep.swing.print.table.TablePrinter
- All Implemented Interfaces:
- Pageable, Printable
public class TablePrinter
- extends Object
- implements Pageable, Printable
Utility for printing tables.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TablePrinter
public TablePrinter(PrintableTableModel model,
PageFormat pf,
Font headerFont,
Font cellFont,
FontRenderContext frc)
- Create a TablePrinter from a PrintableTableModel
- Parameters:
model - The table model to printpf - The page format to use for printingheaderFont - The font to be used for the table headercellFont - The font to be used for the cells in the body of the table.frc - The font render context for the printing device
TablePrinter
public TablePrinter(TableModel model,
String title,
PageFormat pf,
Font headerFont,
Font cellFont,
FontRenderContext frc)
- Create a TablePrinter from a TableModel
- Parameters:
model - The table model to printtitle - The title to use for the print jobpf - The page format to use for printingheaderFont - The font to be used for the table headercellFont - The font to be used for the cells in the body of the table.frc - The font render context for the printing device
getNumberOfPages
public int getNumberOfPages()
- Specified by:
getNumberOfPages in interface Pageable
getPageFormat
public PageFormat getPageFormat(int p1)
- Specified by:
getPageFormat in interface Pageable
getPrintable
public Printable getPrintable(int p1)
- Specified by:
getPrintable in interface Pageable
print
public int print(Graphics g,
PageFormat pf,
int page)
- Specified by:
print in interface Printable
Copyright © 2000-2007 FreeHEP. All Rights Reserved.