net.sf.jasperreports.engine.print
Class JRPrinterAWT
java.lang.Object
net.sf.jasperreports.engine.print.JRPrinterAWT
- All Implemented Interfaces:
- Printable
public class JRPrinterAWT
- extends Object
- implements Printable
- Version:
- $Id: JRPrinterAWT.java 5180 2012-03-29 13:23:12Z teodord $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
|
Method Summary |
static long |
getImageSize(JasperPrint jasperPrint,
float zoom)
|
static void |
initPrinterJobFields(PrinterJob job)
Fix for bug ID 6255588 from Sun bug database |
int |
print(Graphics graphics,
PageFormat pageFormat,
int pageIndex)
|
boolean |
printPages(int firstPageIndex,
int lastPageIndex,
boolean withPrintDialog)
|
static boolean |
printPages(JasperPrint jrPrint,
int firstPageIndex,
int lastPageIndex,
boolean withPrintDialog)
|
Image |
printPageToImage(int pageIndex,
float zoom)
|
static Image |
printPageToImage(JasperPrint jrPrint,
int pageIndex,
float zoom)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JRPrinterAWT
protected JRPrinterAWT(JasperPrint jrPrint)
throws JRException
- Throws:
JRException
JRPrinterAWT
public JRPrinterAWT(JasperReportsContext jasperReportsContext,
JasperPrint jasperPrint)
throws JRException
- Throws:
JRException
printPages
public static boolean printPages(JasperPrint jrPrint,
int firstPageIndex,
int lastPageIndex,
boolean withPrintDialog)
throws JRException
- Throws:
JRException- See Also:
printPages(int, int, boolean)
printPageToImage
public static Image printPageToImage(JasperPrint jrPrint,
int pageIndex,
float zoom)
throws JRException
- Throws:
JRException- See Also:
printPageToImage(int, float)
printPages
public boolean printPages(int firstPageIndex,
int lastPageIndex,
boolean withPrintDialog)
throws JRException
- Throws:
JRException
print
public int print(Graphics graphics,
PageFormat pageFormat,
int pageIndex)
throws PrinterException
- Specified by:
print in interface Printable
- Throws:
PrinterException
printPageToImage
public Image printPageToImage(int pageIndex,
float zoom)
throws JRException
- Throws:
JRException
initPrinterJobFields
public static void initPrinterJobFields(PrinterJob job)
- Fix for bug ID 6255588 from Sun bug database
- Parameters:
job - print job that the fix applies to
getImageSize
public static long getImageSize(JasperPrint jasperPrint,
float zoom)
Copyright © 2012. All Rights Reserved.