Java Doc for JasperPrint.java in  » Report » jasperreports-2.0.1 » net » sf » jasperreports » engine » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Report » jasperreports 2.0.1 » net.sf.jasperreports.engine 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sf.jasperreports.engine.JasperPrint

JasperPrint
public class JasperPrint implements Serializable,JRPropertiesHolder(Code)
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.
author:
   Teodor Danciu (teodord@users.sourceforge.net)
version:
   $Id: JasperPrint.java 1818 2007-08-22 13:46:00Z teodord $




Constructor Summary
public  JasperPrint()
     Creates a new empty document.

Method Summary
public synchronized  voidaddFont(JRReportFont reportFont)
     Adds a new font to the report fonts.
public synchronized  voidaddFont(JRReportFont reportFont, boolean isIgnoreDuplicate)
     Adds a new font to the report fonts.
public synchronized  voidaddPage(JRPrintPage page)
     Adds a new page to the document.
public synchronized  voidaddPage(int index, JRPrintPage page)
     Adds a new page to the document, placing it at the specified index.
public synchronized  voidaddStyle(JRStyle style)
     Adds a new style to the report styles.
public synchronized  voidaddStyle(JRStyle style, boolean isIgnoreDuplicate)
     Adds a new style to the report styles.
protected  voidcollectAnchors(Collection elements, int pageIndex, int offsetX, int offsetY)
    
public synchronized  MapgetAnchorIndexes()
    
public  JRReportFontgetDefaultFont()
     Returns the default report font.
public  JRDefaultFontProvidergetDefaultFontProvider()
     When we want to virtualize pages, we want a font provider that is not the print object itself.
public  JRStylegetDefaultStyle()
     Returns the default report style.
public  JRDefaultStyleProvidergetDefaultStyleProvider()
     When we want to virtualize pages, we want a style provider that is not the print object itself.
public  JRReportFont[]getFonts()
     Gets an array of report fonts.
public  ListgetFontsList()
     Gets a list of report fonts.
public  MapgetFontsMap()
     Gets a map of report fonts.
public  StringgetFormatFactoryClass()
     Returns the name of the class implementing the net.sf.jasperreports.engine.util.FormatFactory FormatFactory interface to use with this document.
public  StringgetLocaleCode()
     Returns the code of the default java.util.Locale to be used for the elements of this print object.

When filling a report, the value of the JRParameter.REPORT_LOCALE REPORT_LOCALE parameter (or the default locale if the parameter has no explicit value) is saved using this attribute.

public  StringgetName()
    
public  bytegetOrientation()
     Returns the page orientation.
public  intgetPageHeight()
    
public  intgetPageWidth()
    
public  ListgetPages()
     Returns a list of all pages in the filled report.
public  JRPropertiesMapgetPropertiesMap()
    
public  StringgetProperty(String propName)
    
public  String[]getPropertyNames()
    
public  JRStyle[]getStyles()
     Gets an array of report styles.
public  ListgetStylesList()
     Gets a list of report styles.
public  MapgetStylesMap()
     Gets a map of report styles.
public  StringgetTimeZoneId()
     Returns the java.util.TimeZone.getID ID of the default java.util.TimeZone to be used for the elements of this print object.

When filling a report, the value of the JRParameter.REPORT_TIME_ZONE REPORT_TIME_ZONE parameter (or the default time zine if the parameter has no explicit value) is saved using this attribute.

public synchronized  JRReportFontremoveFont(String fontName)
    
public synchronized  JRReportFontremoveFont(JRReportFont reportFont)
    
public synchronized  JRPrintPageremovePage(int index)
     Removes a page from the document.
public  voidremoveProperty(String propName)
    
public synchronized  JRStyleremoveStyle(String styleName)
    
public synchronized  JRStyleremoveStyle(JRStyle style)
    
public  voidsetDefaultFont(JRReportFont font)
     Sets the default report font.
public synchronized  voidsetDefaultStyle(JRStyle style)
     Sets the default report style.
public  voidsetFormatFactoryClass(String formatFactoryClass)
     Sets the name of the class implementing the net.sf.jasperreports.engine.util.FormatFactory FormatFactory interface to use with this document.
public  voidsetLocaleCode(String localeCode)
     Sets the the code of the default java.util.Locale to be used for this object.
public  voidsetName(String name)
     Sets the name of the document.
public  voidsetOrientation(byte orientation)
     Sets the page orientation.
public  voidsetPageHeight(int pageHeight)
     Sets the page height.
public  voidsetPageWidth(int pageWidth)
     Sets the page width.
public  voidsetProperty(String propName, String value)
    
public  voidsetTimeZoneId(String timeZoneId)
     Sets the the java.util.TimeZone.getID ID of the default java.util.TimeZone to be used for this object.


Constructor Detail
JasperPrint
public JasperPrint()(Code)
Creates a new empty document.




Method Detail
addFont
public synchronized void addFont(JRReportFont reportFont) throws JRException(Code)
Adds a new font to the report fonts.



addFont
public synchronized void addFont(JRReportFont reportFont, boolean isIgnoreDuplicate) throws JRException(Code)
Adds a new font to the report fonts.



addPage
public synchronized void addPage(JRPrintPage page)(Code)
Adds a new page to the document.



addPage
public synchronized void addPage(int index, JRPrintPage page)(Code)
Adds a new page to the document, placing it at the specified index.



addStyle
public synchronized void addStyle(JRStyle style) throws JRException(Code)
Adds a new style to the report styles.



addStyle
public synchronized void addStyle(JRStyle style, boolean isIgnoreDuplicate) throws JRException(Code)
Adds a new style to the report styles.



collectAnchors
protected void collectAnchors(Collection elements, int pageIndex, int offsetX, int offsetY)(Code)



getAnchorIndexes
public synchronized Map getAnchorIndexes()(Code)



getDefaultFont
public JRReportFont getDefaultFont()(Code)
Returns the default report font.



getDefaultFontProvider
public JRDefaultFontProvider getDefaultFontProvider()(Code)
When we want to virtualize pages, we want a font provider that is not the print object itself.



getDefaultStyle
public JRStyle getDefaultStyle()(Code)
Returns the default report style.



getDefaultStyleProvider
public JRDefaultStyleProvider getDefaultStyleProvider()(Code)
When we want to virtualize pages, we want a style provider that is not the print object itself.



getFonts
public JRReportFont[] getFonts()(Code)
Gets an array of report fonts.



getFontsList
public List getFontsList()(Code)
Gets a list of report fonts.



getFontsMap
public Map getFontsMap()(Code)
Gets a map of report fonts.



getFormatFactoryClass
public String getFormatFactoryClass()(Code)
Returns the name of the class implementing the net.sf.jasperreports.engine.util.FormatFactory FormatFactory interface to use with this document.



getLocaleCode
public String getLocaleCode()(Code)
Returns the code of the default java.util.Locale to be used for the elements of this print object.

When filling a report, the value of the JRParameter.REPORT_LOCALE REPORT_LOCALE parameter (or the default locale if the parameter has no explicit value) is saved using this attribute. Some elements (e.g. elements rendered by a subreport) in the print object can override this default locale.

the code of the default java.util.Locale for this object
See Also:   JRPrintText.getLocaleCode



getName
public String getName()(Code)
Returns the name of the document



getOrientation
public byte getOrientation()(Code)
Returns the page orientation.
See Also:   JRReport
See Also:    ORIENTATION_PORTRAIT,
See Also:   JRReport
See Also:    ORIENTATION_LANDSCAPE



getPageHeight
public int getPageHeight()(Code)
Returns the page height.



getPageWidth
public int getPageWidth()(Code)
Returns the page width



getPages
public List getPages()(Code)
Returns a list of all pages in the filled report.



getPropertiesMap
public JRPropertiesMap getPropertiesMap()(Code)



getProperty
public String getProperty(String propName)(Code)



getPropertyNames
public String[] getPropertyNames()(Code)



getStyles
public JRStyle[] getStyles()(Code)
Gets an array of report styles.



getStylesList
public List getStylesList()(Code)
Gets a list of report styles.



getStylesMap
public Map getStylesMap()(Code)
Gets a map of report styles.



getTimeZoneId
public String getTimeZoneId()(Code)
Returns the java.util.TimeZone.getID ID of the default java.util.TimeZone to be used for the elements of this print object.

When filling a report, the value of the JRParameter.REPORT_TIME_ZONE REPORT_TIME_ZONE parameter (or the default time zine if the parameter has no explicit value) is saved using this attribute. Some elements (e.g. elements rendered by a subreport) in the print object can override this default time zone.

the ID of the default java.util.TimeZone for this object
See Also:   JRPrintText.getTimeZoneId



removeFont
public synchronized JRReportFont removeFont(String fontName)(Code)



removeFont
public synchronized JRReportFont removeFont(JRReportFont reportFont)(Code)



removePage
public synchronized JRPrintPage removePage(int index)(Code)
Removes a page from the document.



removeProperty
public void removeProperty(String propName)(Code)



removeStyle
public synchronized JRStyle removeStyle(String styleName)(Code)



removeStyle
public synchronized JRStyle removeStyle(JRStyle style)(Code)



setDefaultFont
public void setDefaultFont(JRReportFont font)(Code)
Sets the default report font.



setDefaultStyle
public synchronized void setDefaultStyle(JRStyle style)(Code)
Sets the default report style.



setFormatFactoryClass
public void setFormatFactoryClass(String formatFactoryClass)(Code)
Sets the name of the class implementing the net.sf.jasperreports.engine.util.FormatFactory FormatFactory interface to use with this document.



setLocaleCode
public void setLocaleCode(String localeCode)(Code)
Sets the the code of the default java.util.Locale to be used for this object.
Parameters:
  localeCode - the locale code, using the java.util.Locale.toString java.util.Locale.toString()convention.
See Also:   JasperPrint.getLocaleCode()
See Also:   java.util.Locale.toString



setName
public void setName(String name)(Code)
Sets the name of the document.
Parameters:
  name - name of the document



setOrientation
public void setOrientation(byte orientation)(Code)
Sets the page orientation.
See Also:   JRReport
See Also:    ORIENTATION_PORTRAIT,
See Also:   JRReport
See Also:    ORIENTATION_LANDSCAPE



setPageHeight
public void setPageHeight(int pageHeight)(Code)
Sets the page height.
Parameters:
  pageHeight - page height



setPageWidth
public void setPageWidth(int pageWidth)(Code)
Sets the page width.
Parameters:
  pageWidth - page width



setProperty
public void setProperty(String propName, String value)(Code)



setTimeZoneId
public void setTimeZoneId(String timeZoneId)(Code)
Sets the the java.util.TimeZone.getID ID of the default java.util.TimeZone to be used for this object.
Parameters:
  timeZoneId - the time zone ID
See Also:   JasperPrint.getTimeZoneId()
See Also:   java.util.TimeZone.getID



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.