|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jasperreports.engine.JasperPrint
An instance of this class represents a page-oriented document that can be viewed, printed or exported to other formats.
When filling report designs with data, the engine produces instances of this class and these can be transferred over the network, stored in a serialized form on disk or exported to various other formats like PDF, HTML, XLS, CSV or XML.
Constructor Summary | |
JasperPrint()
Creates a new empty document. |
Method Summary | |
void |
addFont(JRReportFont reportFont)
Adds a new font to the report fonts. |
void |
addPage(int index,
JRPrintPage page)
Adds a new page to the document, placing it at the specified index. |
void |
addPage(JRPrintPage page)
Adds a new page to the document. |
java.util.Map |
getAnchorIndexes()
|
JRReportFont |
getDefaultFont()
Returns the default report font. |
JRDefaultFontProvider |
getDefaultFontProvider()
When we want to virtualize pages, we want a font provider that is not the print object itself. |
JRReportFont[] |
getFonts()
Gets an array of report fonts. |
java.util.List |
getFontsList()
Gets a list of report fonts. |
java.util.Map |
getFontsMap()
Gets a map of report fonts. |
java.lang.String |
getName()
|
byte |
getOrientation()
Returns the page orientation. |
int |
getPageHeight()
|
java.util.List |
getPages()
Returns a list of all pages in the filled report. |
int |
getPageWidth()
|
JRReportFont |
removeFont(JRReportFont reportFont)
|
JRReportFont |
removeFont(java.lang.String fontName)
|
JRPrintPage |
removePage(int index)
Removes a page from the document. |
void |
setDefaultFont(JRReportFont font)
Sets the default report font. |
void |
setName(java.lang.String name)
Sets the name of the document. |
void |
setOrientation(byte orientation)
Sets the page orientation. |
void |
setPageHeight(int pageHeight)
Sets the page height. |
void |
setPageWidth(int pageWidth)
Sets the page width. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JasperPrint()
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name
- name of the documentpublic int getPageWidth()
public void setPageWidth(int pageWidth)
pageWidth
- page widthpublic int getPageHeight()
public void setPageHeight(int pageHeight)
pageHeight
- page heightpublic byte getOrientation()
ORIENTATION_PORTRAIT,
,
ORIENTATION_LANDSCAPE
public void setOrientation(byte orientation)
ORIENTATION_PORTRAIT,
,
ORIENTATION_LANDSCAPE
public JRReportFont getDefaultFont()
public void setDefaultFont(JRReportFont font)
public JRDefaultFontProvider getDefaultFontProvider()
public JRReportFont[] getFonts()
public java.util.List getFontsList()
public java.util.Map getFontsMap()
public void addFont(JRReportFont reportFont) throws JRException
JRException
public JRReportFont removeFont(java.lang.String fontName)
public JRReportFont removeFont(JRReportFont reportFont)
public java.util.List getPages()
public void addPage(JRPrintPage page)
public void addPage(int index, JRPrintPage page)
public JRPrintPage removePage(int index)
public java.util.Map getAnchorIndexes()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |