jdbreport.grid
Class ReportPrintable
java.lang.Object
jdbreport.grid.ReportPrintable
- All Implemented Interfaces:
- Printable
public class ReportPrintable
- extends Object
- implements Printable
- Version:
- 2.0 12.05.2011
- Author:
- Andrey Kholmanskih
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReportPrintable
public ReportPrintable(JReportGrid table,
JTable.PrintMode printMode)
ReportPrintable
public ReportPrintable(JReportGrid table,
JTable.PrintMode printMode,
boolean isPreview)
- Creates a new
TablePrintable for the given
JTable
. Header and footer text can be specified using the
two MessageFormat
parameters. When called upon to provide a
String, each format is given the current page number.
- Parameters:
table
- the table to printprintMode
- the printing mode for this printableisPreview
- - if true, report will be preview
- Throws:
IllegalArgumentException
- if passed an invalid print mode
ReportPrintable
public ReportPrintable(ReportModel model)
print
public int print(Graphics graphics,
PageFormat pageFormat,
int pageIndex)
throws PrinterException
- Specified by:
print
in interface Printable
- Throws:
PrinterException
calcCountPage
public int calcCountPage(PageFormat pageFormat)
getPageClips
public Map<Integer,ReportPrintable.PageClip> getPageClips()