Java Doc for JRViewer.java in  » Report » jasperreports-2.0.1 » net » sf » jasperreports » view » 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.view 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.JPanel
   net.sf.jasperreports.view.JRViewer

All known Subclasses:   net.sf.jasperreports.view.JRDesignViewer,
JRViewer
public class JRViewer extends javax.swing.JPanel implements JRHyperlinkListener(Code)

author:
   Teodor Danciu (teodord@users.sourceforge.net)
version:
   $Id: JRViewer.java 1797 2007-07-30 09:38:35Z teodord $

Inner Class :protected class ImageMapPanel extends JPanel implements MouseListener,MouseMotionListener
Inner Class :class PageRenderer extends JLabel

Field Summary
protected  floatMAX_ZOOM
    
protected  floatMIN_ZOOM
    
final public static  intREPORT_RESOLUTION
     The DPI of the generated report.
final protected static  intTYPE_FILE_NAME
    
final protected static  intTYPE_INPUT_STREAM
    
final protected static  intTYPE_OBJECT
    
final public static  StringVIEWER_RENDER_BUFFER_MAX_SIZE
     Maximum size (in pixels) of a buffered image that would be used by JRViewer JRViewer to render a report page.

If rendering a report page would require an image larger than this threshold (i.e.

protected  javax.swing.JToggleButtonbtnActualSize
    
protected  javax.swing.JButtonbtnFirst
    
protected  javax.swing.JToggleButtonbtnFitPage
    
protected  javax.swing.JToggleButtonbtnFitWidth
    
protected  javax.swing.JButtonbtnLast
    
protected  javax.swing.JButtonbtnNext
    
protected  javax.swing.JButtonbtnPrevious
    
protected  javax.swing.JButtonbtnPrint
    
protected  javax.swing.JButtonbtnReload
    
protected  javax.swing.JButtonbtnSave
    
protected  javax.swing.JButtonbtnZoomIn
    
protected  javax.swing.JButtonbtnZoomOut
    
protected  javax.swing.JComboBoxcmbZoom
    
protected  intdefaultZoomIndex
    
protected  booleanisXML
    
 JasperPrintjasperPrint
    
protected  javax.swing.JLabellblStatus
    
protected  javax.swing.JPanelpnlSep01
    
protected  javax.swing.JPanelpnlSep02
    
protected  javax.swing.JPanelpnlSep03
    
protected  javax.swing.JPanelpnlStatus
    
protected  floatrealZoom
     the zoom ration adjusted to the screen resolution.
protected  StringreportFileName
    
protected  javax.swing.JPaneltlbToolBar
    
protected  javax.swing.JTextFieldtxtGoTo
    
protected  inttype
    
protected  floatzoom
    
protected  intzooms
    

Constructor Summary
public  JRViewer(String fileName, boolean isXML)
    
public  JRViewer(InputStream is, boolean isXML)
    
public  JRViewer(JasperPrint jrPrint)
    
public  JRViewer(String fileName, boolean isXML, Locale locale)
    
public  JRViewer(InputStream is, boolean isXML, Locale locale)
    
public  JRViewer(JasperPrint jrPrint, Locale locale)
    
public  JRViewer(String fileName, boolean isXML, Locale locale, ResourceBundle resBundle)
    
public  JRViewer(InputStream is, boolean isXML, Locale locale, ResourceBundle resBundle)
    
public  JRViewer(JasperPrint jrPrint, Locale locale, ResourceBundle resBundle)
    

Method Summary
public  voidaddHyperlinkListener(JRHyperlinkListener listener)
    
public  voidaddSaveContributor(JRSaveContributor contributor)
    
 voidbtnActualSizeActionPerformed(java.awt.event.ActionEvent evt)
    
 voidbtnFirstActionPerformed(java.awt.event.ActionEvent evt)
    
 voidbtnFitPageActionPerformed(java.awt.event.ActionEvent evt)
    
 voidbtnFitWidthActionPerformed(java.awt.event.ActionEvent evt)
    
 voidbtnLastActionPerformed(java.awt.event.ActionEvent evt)
    
 voidbtnNextActionPerformed(java.awt.event.ActionEvent evt)
    
 voidbtnPreviousActionPerformed(java.awt.event.ActionEvent evt)
    
 voidbtnPrintActionPerformed(java.awt.event.ActionEvent evt)
    
 voidbtnReloadActionPerformed(java.awt.event.ActionEvent evt)
    
 voidbtnSaveActionPerformed(java.awt.event.ActionEvent evt)
    
 voidbtnZoomInActionPerformed(java.awt.event.ActionEvent evt)
    
 voidbtnZoomOutActionPerformed(java.awt.event.ActionEvent evt)
    
public  voidclear()
    
 voidcmbZoomActionPerformed(java.awt.event.ActionEvent evt)
    
 voidcmbZoomItemStateChanged(java.awt.event.ItemEvent evt)
    
protected  voidcreateHyperlinks()
    
protected  voidcreateHyperlinks(List elements, int offsetX, int offsetY)
    
protected  voidforceRefresh()
    
protected  StringgetBundleString(String key)
    
protected  StringgetFallbackTooltip(JRPrintHyperlink hyperlink)
    
public  JRHyperlinkListener[]getHyperlinkListeners()
    
protected  StringgetHyperlinkTooltip(JRPrintHyperlink hyperlink)
    
public  intgetPageIndex()
    
public  JRSaveContributor[]getSaveContributors()
    
public  voidgotoHyperlink(JRPrintHyperlink hyperlink)
    
 voidhyperlinkClicked(MouseEvent evt)
    
protected  voidhyperlinkClicked(JRPrintHyperlink hyperlink)
    
protected  voidinitResources(Locale locale, ResourceBundle resBundle)
    
protected  voidinitSaveContributors()
    
protected  booleanisOnlyHyperlinkListener()
    
protected  voidloadReport(String fileName, boolean isXmlReport)
    
protected  voidloadReport(InputStream is, boolean isXmlReport)
    
protected  voidloadReport(JasperPrint jrPrint)
    
protected  voidpaintPage(Graphics2D grx)
    
 voidpnlLinksMouseDragged(java.awt.event.MouseEvent evt)
    
 voidpnlLinksMousePressed(java.awt.event.MouseEvent evt)
    
 voidpnlLinksMouseReleased(java.awt.event.MouseEvent evt)
    
 voidpnlMainComponentResized(java.awt.event.ComponentEvent evt)
    
protected  voidrefreshPage()
    
public  voidremoveHyperlinkListener(JRHyperlinkListener listener)
    
public  voidremoveSaveContributor(JRSaveContributor contributor)
    
public  voidsetFitPageZoomRatio()
    
public  voidsetFitWidthZoomRatio()
    
public  voidsetZoomRatio(float newZoom)
    
protected  voidsetZooms()
    
 voidtxtGoToActionPerformed(java.awt.event.ActionEvent evt)
    

Field Detail
MAX_ZOOM
protected float MAX_ZOOM(Code)



MIN_ZOOM
protected float MIN_ZOOM(Code)



REPORT_RESOLUTION
final public static int REPORT_RESOLUTION(Code)
The DPI of the generated report.



TYPE_FILE_NAME
final protected static int TYPE_FILE_NAME(Code)



TYPE_INPUT_STREAM
final protected static int TYPE_INPUT_STREAM(Code)



TYPE_OBJECT
final protected static int TYPE_OBJECT(Code)



VIEWER_RENDER_BUFFER_MAX_SIZE
final public static String VIEWER_RENDER_BUFFER_MAX_SIZE(Code)
Maximum size (in pixels) of a buffered image that would be used by JRViewer JRViewer to render a report page.

If rendering a report page would require an image larger than this threshold (i.e. image width x image height > maximum size), the report page will be rendered directly on the viewer component.

If this property is zero or negative, buffered images will never be user to render a report page. By default, this property is set to 0.




btnActualSize
protected javax.swing.JToggleButton btnActualSize(Code)



btnFirst
protected javax.swing.JButton btnFirst(Code)



btnFitPage
protected javax.swing.JToggleButton btnFitPage(Code)



btnFitWidth
protected javax.swing.JToggleButton btnFitWidth(Code)



btnLast
protected javax.swing.JButton btnLast(Code)



btnNext
protected javax.swing.JButton btnNext(Code)



btnPrevious
protected javax.swing.JButton btnPrevious(Code)



btnPrint
protected javax.swing.JButton btnPrint(Code)



btnReload
protected javax.swing.JButton btnReload(Code)



btnSave
protected javax.swing.JButton btnSave(Code)



btnZoomIn
protected javax.swing.JButton btnZoomIn(Code)



btnZoomOut
protected javax.swing.JButton btnZoomOut(Code)



cmbZoom
protected javax.swing.JComboBox cmbZoom(Code)



defaultZoomIndex
protected int defaultZoomIndex(Code)



isXML
protected boolean isXML(Code)



jasperPrint
JasperPrint jasperPrint(Code)



lblStatus
protected javax.swing.JLabel lblStatus(Code)



pnlSep01
protected javax.swing.JPanel pnlSep01(Code)



pnlSep02
protected javax.swing.JPanel pnlSep02(Code)



pnlSep03
protected javax.swing.JPanel pnlSep03(Code)



pnlStatus
protected javax.swing.JPanel pnlStatus(Code)



realZoom
protected float realZoom(Code)
the zoom ration adjusted to the screen resolution.



reportFileName
protected String reportFileName(Code)



tlbToolBar
protected javax.swing.JPanel tlbToolBar(Code)



txtGoTo
protected javax.swing.JTextField txtGoTo(Code)



type
protected int type(Code)



zoom
protected float zoom(Code)



zooms
protected int zooms(Code)




Constructor Detail
JRViewer
public JRViewer(String fileName, boolean isXML) throws JRException(Code)
Creates new form JRViewer



JRViewer
public JRViewer(InputStream is, boolean isXML) throws JRException(Code)
Creates new form JRViewer



JRViewer
public JRViewer(JasperPrint jrPrint)(Code)
Creates new form JRViewer



JRViewer
public JRViewer(String fileName, boolean isXML, Locale locale) throws JRException(Code)
Creates new form JRViewer



JRViewer
public JRViewer(InputStream is, boolean isXML, Locale locale) throws JRException(Code)
Creates new form JRViewer



JRViewer
public JRViewer(JasperPrint jrPrint, Locale locale)(Code)
Creates new form JRViewer



JRViewer
public JRViewer(String fileName, boolean isXML, Locale locale, ResourceBundle resBundle) throws JRException(Code)
Creates new form JRViewer



JRViewer
public JRViewer(InputStream is, boolean isXML, Locale locale, ResourceBundle resBundle) throws JRException(Code)
Creates new form JRViewer



JRViewer
public JRViewer(JasperPrint jrPrint, Locale locale, ResourceBundle resBundle)(Code)
Creates new form JRViewer




Method Detail
addHyperlinkListener
public void addHyperlinkListener(JRHyperlinkListener listener)(Code)



addSaveContributor
public void addSaveContributor(JRSaveContributor contributor)(Code)



btnActualSizeActionPerformed
void btnActualSizeActionPerformed(java.awt.event.ActionEvent evt)(Code)



btnFirstActionPerformed
void btnFirstActionPerformed(java.awt.event.ActionEvent evt)(Code)



btnFitPageActionPerformed
void btnFitPageActionPerformed(java.awt.event.ActionEvent evt)(Code)



btnFitWidthActionPerformed
void btnFitWidthActionPerformed(java.awt.event.ActionEvent evt)(Code)



btnLastActionPerformed
void btnLastActionPerformed(java.awt.event.ActionEvent evt)(Code)



btnNextActionPerformed
void btnNextActionPerformed(java.awt.event.ActionEvent evt)(Code)



btnPreviousActionPerformed
void btnPreviousActionPerformed(java.awt.event.ActionEvent evt)(Code)



btnPrintActionPerformed
void btnPrintActionPerformed(java.awt.event.ActionEvent evt)(Code)



btnReloadActionPerformed
void btnReloadActionPerformed(java.awt.event.ActionEvent evt)(Code)



btnSaveActionPerformed
void btnSaveActionPerformed(java.awt.event.ActionEvent evt)(Code)



btnZoomInActionPerformed
void btnZoomInActionPerformed(java.awt.event.ActionEvent evt)(Code)



btnZoomOutActionPerformed
void btnZoomOutActionPerformed(java.awt.event.ActionEvent evt)(Code)



clear
public void clear()(Code)



cmbZoomActionPerformed
void cmbZoomActionPerformed(java.awt.event.ActionEvent evt)(Code)



cmbZoomItemStateChanged
void cmbZoomItemStateChanged(java.awt.event.ItemEvent evt)(Code)



createHyperlinks
protected void createHyperlinks()(Code)



createHyperlinks
protected void createHyperlinks(List elements, int offsetX, int offsetY)(Code)



forceRefresh
protected void forceRefresh()(Code)



getBundleString
protected String getBundleString(String key)(Code)



getFallbackTooltip
protected String getFallbackTooltip(JRPrintHyperlink hyperlink)(Code)



getHyperlinkListeners
public JRHyperlinkListener[] getHyperlinkListeners()(Code)



getHyperlinkTooltip
protected String getHyperlinkTooltip(JRPrintHyperlink hyperlink)(Code)



getPageIndex
public int getPageIndex()(Code)



getSaveContributors
public JRSaveContributor[] getSaveContributors()(Code)



gotoHyperlink
public void gotoHyperlink(JRPrintHyperlink hyperlink)(Code)



hyperlinkClicked
void hyperlinkClicked(MouseEvent evt)(Code)



hyperlinkClicked
protected void hyperlinkClicked(JRPrintHyperlink hyperlink)(Code)



initResources
protected void initResources(Locale locale, ResourceBundle resBundle)(Code)



initSaveContributors
protected void initSaveContributors()(Code)



isOnlyHyperlinkListener
protected boolean isOnlyHyperlinkListener()(Code)



loadReport
protected void loadReport(String fileName, boolean isXmlReport) throws JRException(Code)



loadReport
protected void loadReport(InputStream is, boolean isXmlReport) throws JRException(Code)



loadReport
protected void loadReport(JasperPrint jrPrint)(Code)



paintPage
protected void paintPage(Graphics2D grx)(Code)



pnlLinksMouseDragged
void pnlLinksMouseDragged(java.awt.event.MouseEvent evt)(Code)



pnlLinksMousePressed
void pnlLinksMousePressed(java.awt.event.MouseEvent evt)(Code)



pnlLinksMouseReleased
void pnlLinksMouseReleased(java.awt.event.MouseEvent evt)(Code)



pnlMainComponentResized
void pnlMainComponentResized(java.awt.event.ComponentEvent evt)(Code)



refreshPage
protected void refreshPage()(Code)



removeHyperlinkListener
public void removeHyperlinkListener(JRHyperlinkListener listener)(Code)



removeSaveContributor
public void removeSaveContributor(JRSaveContributor contributor)(Code)



setFitPageZoomRatio
public void setFitPageZoomRatio()(Code)



setFitWidthZoomRatio
public void setFitWidthZoomRatio()(Code)



setZoomRatio
public void setZoomRatio(float newZoom)(Code)



setZooms
protected void setZooms()(Code)



txtGoToActionPerformed
void txtGoToActionPerformed(java.awt.event.ActionEvent evt)(Code)



Methods inherited from javax.swing.JPanel
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public PanelUI getUI()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void setUI(PanelUI ui)(Code)(Java Doc)
public void updateUI()(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.