Java Doc for SwingLE.java in  » Report » datavision-1.1.0 » jimm » datavision » layout » swing » 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 » datavision 1.1.0 » jimm.datavision.layout.swing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   jimm.datavision.layout.LayoutEngine
      jimm.datavision.layout.swing.SwingLE

SwingLE
public class SwingLE extends LayoutEngine (Code)
SwingLE is a layout engine that creates a Swing window. The window can be printed by selecting the appropriate menu item.
author:
   Jim Menard, jimm@io.com
See Also:   SwingPageContents
See Also:   SwingPage
See Also:   SwingField
See Also:   SwingPrintBook


Field Summary
final protected static  StringEXPORT_ICON
    
final protected static  StringFIRST_ICON
    
final protected static  StringLAST_ICON
    
final protected static  StringNEXT_ICON
    
final protected static  StringPREV_ICON
    
final protected static  StringPRINT_ICON
    
final protected static  DimensionWINDOW_START_SIZE
    
protected  JPanelcardPanel
    
protected  ActioncloseAction
    
protected  intdisplayPageNum
    
protected  ActionexportAction
    
protected  JFrameframe
    
protected  ActiongoFirstAction
    
protected  ActiongoLastAction
    
protected  ActiongoNextAction
    
protected  ActiongoPrevAction
    
protected  SwingPageContentspageBeingBuilt
    
protected  ArrayListpageContents
    
protected  JLabelpageCountLabel
    
protected  DimensionpageDim
    
protected  ActionprintAction
    
protected  JScrollPanescroller
    

Constructor Summary
public  SwingLE()
     Constructor.

Method Summary
public  voidcancel()
    
public  voidclose()
     Closes this window.
protected  voiddisplayFirstPage()
     Performs the "First Page" command.
protected  voiddisplayLastPage()
     Performs the "Last Page" command.
protected  voiddisplayNextPage()
     Performs the "Next Page" command.
protected  voiddisplayPage(int num)
     Fills the window with the contents of the specified page.
protected  voiddisplayPrevPage()
     Performs the "Previous Page" command.
protected  voiddoEnd()
     Done loading report.
protected  voiddoEndPage()
     At the end of the first page, starts building it in a separate thread. Check to see if the first page is done being built.
protected  voiddoOutputField(Field field)
     Creates a new SwingField and adds it to the current page.
protected  voiddoOutputImage(ImageField image)
    
protected  voiddoOutputLine(Line line)
     Creates a new line.
protected  voiddoStart()
     Creates window and displays a blank page.
protected  voiddoStartPage()
     Creates a new page.
protected  voidexport()
     Opens the report export dialog.
public  JFramegetJFrame()
    
protected  voidmakeActions()
     Creates the actions used by menu items and toolbar widgets.
protected  voidmakeMenu(JFrame frame)
     Creates the window menu.
protected  JToolBarmakeToolbar()
     Creates and returns a new tool bar.
public  voidprintReport()
     Prints the report.
protected  voidupdateNavActions()
     Updates the navigation buttons based on number of pages and the current display page.
protected  voidupdatePageCountLabel()
     Updates the page count label based on the current page number and the total number of pages.

Field Detail
EXPORT_ICON
final protected static String EXPORT_ICON(Code)



FIRST_ICON
final protected static String FIRST_ICON(Code)



LAST_ICON
final protected static String LAST_ICON(Code)



NEXT_ICON
final protected static String NEXT_ICON(Code)



PREV_ICON
final protected static String PREV_ICON(Code)



PRINT_ICON
final protected static String PRINT_ICON(Code)



WINDOW_START_SIZE
final protected static Dimension WINDOW_START_SIZE(Code)



cardPanel
protected JPanel cardPanel(Code)



closeAction
protected Action closeAction(Code)



displayPageNum
protected int displayPageNum(Code)



exportAction
protected Action exportAction(Code)



frame
protected JFrame frame(Code)



goFirstAction
protected Action goFirstAction(Code)



goLastAction
protected Action goLastAction(Code)



goNextAction
protected Action goNextAction(Code)



goPrevAction
protected Action goPrevAction(Code)



pageBeingBuilt
protected SwingPageContents pageBeingBuilt(Code)



pageContents
protected ArrayList pageContents(Code)



pageCountLabel
protected JLabel pageCountLabel(Code)



pageDim
protected Dimension pageDim(Code)



printAction
protected Action printAction(Code)



scroller
protected JScrollPane scroller(Code)




Constructor Detail
SwingLE
public SwingLE()(Code)
Constructor.




Method Detail
cancel
public void cancel()(Code)



close
public void close()(Code)
Closes this window. Does not call System.exit.



displayFirstPage
protected void displayFirstPage()(Code)
Performs the "First Page" command.



displayLastPage
protected void displayLastPage()(Code)
Performs the "Last Page" command.



displayNextPage
protected void displayNextPage()(Code)
Performs the "Next Page" command.



displayPage
protected void displayPage(int num)(Code)
Fills the window with the contents of the specified page. If necessary, builds the page. Starts building the next and previous pages in separate threads, if they have not already been built.
Parameters:
  num - page number, starting at 1
See Also:   SwingPageContents



displayPrevPage
protected void displayPrevPage()(Code)
Performs the "Previous Page" command.



doEnd
protected void doEnd()(Code)
Done loading report.



doEndPage
protected void doEndPage()(Code)
At the end of the first page, starts building it in a separate thread. Check to see if the first page is done being built. If so, it is displayed.



doOutputField
protected void doOutputField(Field field)(Code)
Creates a new SwingField and adds it to the current page.
Parameters:
  field - the report field



doOutputImage
protected void doOutputImage(ImageField image)(Code)



doOutputLine
protected void doOutputLine(Line line)(Code)
Creates a new line. Unimplemented.
Parameters:
  line - a line



doStart
protected void doStart()(Code)
Creates window and displays a blank page.



doStartPage
protected void doStartPage()(Code)
Creates a new page.



export
protected void export()(Code)
Opens the report export dialog.



getJFrame
public JFrame getJFrame()(Code)



makeActions
protected void makeActions()(Code)
Creates the actions used by menu items and toolbar widgets.



makeMenu
protected void makeMenu(JFrame frame)(Code)
Creates the window menu.
Parameters:
  frame - the window that will contain the menu



makeToolbar
protected JToolBar makeToolbar()(Code)
Creates and returns a new tool bar.



printReport
public void printReport()(Code)
Prints the report.



updateNavActions
protected void updateNavActions()(Code)
Updates the navigation buttons based on number of pages and the current display page.



updatePageCountLabel
protected void updatePageCountLabel()(Code)
Updates the page count label based on the current page number and the total number of pages.



Fields inherited from jimm.datavision.layout.LayoutEngine
final public static int POINTS_PER_INCH(Code)(Java Doc)
final protected static int SECT_DETAIL(Code)(Java Doc)
final protected static int SECT_GROUP_FOOTER(Code)(Java Doc)
final protected static int SECT_GROUP_HEADER(Code)(Java Doc)
final protected static int SECT_PAGE_FOOTER(Code)(Java Doc)
final protected static int SECT_PAGE_HEADER(Code)(Java Doc)
final protected static int SECT_REPORT_FOOTER(Code)(Java Doc)
final protected static int SECT_REPORT_HEADER(Code)(Java Doc)
protected Section currentSection(Code)(Java Doc)
protected boolean newPage(Code)(Java Doc)
protected PrintWriter out(Code)(Java Doc)
protected double pageHeight(Code)(Java Doc)
protected double pageHeightUsed(Code)(Java Doc)
protected int pageNumber(Code)(Java Doc)
protected double pageWidth(Code)(Java Doc)
protected int previousSectionArea(Code)(Java Doc)
protected Report report(Code)(Java Doc)
protected boolean wantsMoreData(Code)(Java Doc)

Methods inherited from jimm.datavision.layout.LayoutEngine
protected double calcDetailHeight()(Code)(Java Doc)
protected double calcPageFooterHeight()(Code)(Java Doc)
protected double calcReportFooterHeight()(Code)(Java Doc)
protected double calcSectionHeights(SectionArea area)(Code)(Java Doc)
public void cancel()(Code)(Java Doc)
protected void checkRemainingPageLength(boolean isLastRow, boolean includeDetail)(Code)(Java Doc)
protected void closeOutput()(Code)(Java Doc)
protected String currentSectionTypeAsString()(Code)(Java Doc)
public void detail(boolean isLastRow)(Code)(Java Doc)
protected void doEnd()(Code)(Java Doc)
protected void doEndPage()(Code)(Java Doc)
abstract protected void doOutputField(Field field)(Code)(Java Doc)
abstract protected void doOutputImage(ImageField image)(Code)(Java Doc)
abstract protected void doOutputLine(Line line)(Code)(Java Doc)
protected void doOutputSection(Section sect)(Code)(Java Doc)
protected void doStart()(Code)(Java Doc)
protected void doStartPage()(Code)(Java Doc)
public void end()(Code)(Java Doc)
protected void endPage(boolean isLastPage)(Code)(Java Doc)
public void groupFooters(boolean isLastRow)(Code)(Java Doc)
public void groupHeaders(boolean isLastRow)(Code)(Java Doc)
protected void outputField(Field field)(Code)(Java Doc)
protected void outputImage(ImageField image)(Code)(Java Doc)
protected void outputLine(Line line)(Code)(Java Doc)
protected void outputSection(Section sect, int which)(Code)(Java Doc)
public double pageHeight()(Code)(Java Doc)
public int pageNumber()(Code)(Java Doc)
public double pageWidth()(Code)(Java Doc)
public void setReport(Report r)(Code)(Java Doc)
public void start()(Code)(Java Doc)
protected void startPage()(Code)(Java Doc)
public boolean wantsMoreData()(Code)(Java Doc)

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.