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


java.lang.Object
   jimm.datavision.layout.LayoutEngine
      jimm.datavision.layout.SortedLayoutEngine

All known Subclasses:   jimm.datavision.layout.XMLLE,  jimm.datavision.layout.HTMLLE,  jimm.datavision.layout.CSSHTMLLE,  jimm.datavision.layout.CharSepLE,
SortedLayoutEngine
abstract public class SortedLayoutEngine extends LayoutEngine (Code)
A sorted layout engine outputs the fields within each section in order of their y then x coordinates. Another way of putting it: the fields are sorted top to bottom, then left to right. This ensures, for example, that character-based layout engines such as CharSepLE and HTMLLE will display fields in the correct left-to-right order.
author:
   Jim Menard, jimm@io.com


Field Summary
protected  Comparatorcomp
    
protected  HashMapsectionFields
    

Constructor Summary
public  SortedLayoutEngine()
     Constructor.
public  SortedLayoutEngine(PrintWriter out)
     Constructor.

Method Summary
protected  Object[]buildSectionFields(Section sect)
     Creates, saves, and returns an array of fields sorted by their y and x coordinates (y first, then x).
protected  voiddoOutputSection(Section sect)
     This override iterates over a list of fields that have been sorted by their y and x coordinates.

Field Detail
comp
protected Comparator comp(Code)



sectionFields
protected HashMap sectionFields(Code)




Constructor Detail
SortedLayoutEngine
public SortedLayoutEngine()(Code)
Constructor.



SortedLayoutEngine
public SortedLayoutEngine(PrintWriter out)(Code)
Constructor.
Parameters:
  out - output print writer




Method Detail
buildSectionFields
protected Object[] buildSectionFields(Section sect)(Code)
Creates, saves, and returns an array of fields sorted by their y and x coordinates (y first, then x). Another way of putting it: the fields are sorted top to bottom, then left to right.
Parameters:
  sect - a report section a sorted array of fields



doOutputSection
protected void doOutputSection(Section sect)(Code)
This override iterates over a list of fields that have been sorted by their y and x coordinates. Put another way, the fields are output top to bottom, left to right.
Parameters:
  sect - a section



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.