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


java.lang.Object
   java.util.Observable
      jimm.datavision.Section

Section
public class Section extends Observable implements Writeable,Observer(Code)
A section of a report contains a group of fields and suppression information. Sections include page headers and footers, report headers and footers, group headers and footers, and details. Sections contain elements (fields and lines).
See Also:   Report
See Also:   Field
See Also:   Line
author:
   Jim Menard, jimm@io.com


Field Summary
final protected static  doubleDEFAULT_HEIGHT
    
protected  SectionAreaarea
    
protected  ArrayListfields
    
protected  ArrayListlines
    
protected  doubleminHeight
    
protected  booleanpageBreak
    
protected  Reportreport
    
protected  SuppressionProcsuppressionProc
    

Constructor Summary
public  Section(Report r)
     Constructor.

Method Summary
public  voidaddField(Field f)
     Adds a field to this section.
public  voidaddLine(Line l)
     Adds a line to this section.
public  booleancontains(Field f)
     Returns true if the specified field is inside this section.
public  booleancontainsReferenceTo(Field f)
     Returns true if the specified field exists within this section either directly (as a field) or indirectly (as a formula used by an aggregate, user column, or formula or by the suppression proc).
public  booleancontainsReferenceTo(Formula f)
     Returns true if the specified formula exists within this section either directly (as a formula field) or indirectly (as a formula used by an aggregate, user column, or formula or by the suppression proc).
public  booleancontainsReferenceTo(UserColumn uc)
     Returns true if the specified user column exists within this section either directly (as a user column field) or indirectly (as a user column used by an aggregate, a formula, or by the suppression proc).
public  booleancontainsReferenceTo(Parameter p)
     Returns true if the specified parameter exists within this section either directly (as a parameter field) or indirectly (as a parameter used by an aggregate, a formula, or by the suppression proc).
public  voidevaluateFormulas()
     Forces all of the formulas used in this section to be evaluated.
public  Iteratorfields()
     Returns an iterator over all fields in this section.
public  Object[]fieldsSortedBy(Comparator comp)
     Returns an array of this section's fields sorted by comp.
public  FieldfindField(Object id)
     Given an id, returns the field within this section that has that id.
public  SectionAreagetArea()
     Returns the area this section is contained within.
public  doublegetMinHeight()
     Returns the min height of this section.
public  StringgetName()
     Returns the name of this section.
public  doublegetOutputHeight()
     Returns the height of this section: not the minimum height defined when the report was designed but rather the height necessary to output this section.
public  ReportgetReport()
     Returns the report containing this section.
public  SuppressionProcgetSuppressionProc()
    
public  doublegetWidth()
     Returns the width of this section.
public  booleanhasPageBreak()
     Returns the boolean page break flag.
public  booleanisDetail()
     Returns true if this is a report detail section.
public  booleanisHidden()
    
public  booleanisVisibleForCurrentRow()
     Return true if this section should be printed, given this particular row of data and our supressed state and suppression proc.
public  Iteratorlines()
     Returns an iterator over all lines in this section.
public  intnumFields()
     Returns the number of fields in this section.
public  voidremoveField(Field f)
     Removes a field from this section.
public  voidremoveLine(Line f)
     Removes a line from this section.
public  voidsetArea(SectionArea area)
     Sets the area this section is contained within and notifies any observers of the change.
public  voidsetMinHeight(double newMinHeight)
     Sets the min height.
public  voidsetPageBreak(boolean flag)
     Sets the page break flag.
public  voidupdate(Observable o, Object arg)
    
public  voidwriteXML(XMLWriter out)
     Writes this section and all it contains as an XML tag.

Field Detail
DEFAULT_HEIGHT
final protected static double DEFAULT_HEIGHT(Code)



area
protected SectionArea area(Code)



fields
protected ArrayList fields(Code)



lines
protected ArrayList lines(Code)



minHeight
protected double minHeight(Code)



pageBreak
protected boolean pageBreak(Code)



report
protected Report report(Code)



suppressionProc
protected SuppressionProc suppressionProc(Code)




Constructor Detail
Section
public Section(Report r)(Code)
Constructor.
Parameters:
  r - the report containing this section




Method Detail
addField
public void addField(Field f)(Code)
Adds a field to this section.
Parameters:
  f - a field



addLine
public void addLine(Line l)(Code)
Adds a line to this section.
Parameters:
  l - a line



contains
public boolean contains(Field f)(Code)
Returns true if the specified field is inside this section.
Parameters:
  f - a field true if the field is within this section



containsReferenceTo
public boolean containsReferenceTo(Field f)(Code)
Returns true if the specified field exists within this section either directly (as a field) or indirectly (as a formula used by an aggregate, user column, or formula or by the suppression proc).
Parameters:
  f - a field true if the specified field is referenced withinthis section



containsReferenceTo
public boolean containsReferenceTo(Formula f)(Code)
Returns true if the specified formula exists within this section either directly (as a formula field) or indirectly (as a formula used by an aggregate, user column, or formula or by the suppression proc).
Parameters:
  f - a formula true if the specified formula is referenced withinthis section



containsReferenceTo
public boolean containsReferenceTo(UserColumn uc)(Code)
Returns true if the specified user column exists within this section either directly (as a user column field) or indirectly (as a user column used by an aggregate, a formula, or by the suppression proc).
Parameters:
  uc - a user column true if the specified formula is referenced withinthis section



containsReferenceTo
public boolean containsReferenceTo(Parameter p)(Code)
Returns true if the specified parameter exists within this section either directly (as a parameter field) or indirectly (as a parameter used by an aggregate, a formula, or by the suppression proc).
Parameters:
  p - a parameter true if the specified formula is referenced withinthis section



evaluateFormulas
public void evaluateFormulas()(Code)
Forces all of the formulas used in this section to be evaluated. See the comment for LayoutEngine.groupHeaders for why this method is necessary.
See Also:   jimm.datavision.layout.LayoutEngine.groupHeaders



fields
public Iterator fields()(Code)
Returns an iterator over all fields in this section. an iterator



fieldsSortedBy
public Object[] fieldsSortedBy(Comparator comp)(Code)
Returns an array of this section's fields sorted by comp.
Parameters:
  comp - the comparator to use for sorting an array of fields sorted by comp



findField
public Field findField(Object id)(Code)
Given an id, returns the field within this section that has that id. If no field with the specified id exists, returns null. a field, or null if no field with the specifiedid exists in this section



getArea
public SectionArea getArea()(Code)
Returns the area this section is contained within. the area this section is contained within



getMinHeight
public double getMinHeight()(Code)
Returns the min height of this section. the min height



getName
public String getName()(Code)
Returns the name of this section. the section name



getOutputHeight
public double getOutputHeight()(Code)
Returns the height of this section: not the minimum height defined when the report was designed but rather the height necessary to output this section. The height returned is the maximum of minHeight and the highest y coordinate of any field. the height this section will need to be output



getReport
public Report getReport()(Code)
Returns the report containing this section.



getSuppressionProc
public SuppressionProc getSuppressionProc()(Code)
Returns the supression proc this section uses a suppression proc



getWidth
public double getWidth()(Code)
Returns the width of this section. the width



hasPageBreak
public boolean hasPageBreak()(Code)
Returns the boolean page break flag. true if we should start a new page before thissection.



isDetail
public boolean isDetail()(Code)
Returns true if this is a report detail section. true if this is a report detail section



isHidden
public boolean isHidden()(Code)



isVisibleForCurrentRow
public boolean isVisibleForCurrentRow()(Code)
Return true if this section should be printed, given this particular row of data and our supressed state and suppression proc. true if the data should be displayed



lines
public Iterator lines()(Code)
Returns an iterator over all lines in this section. an iterator



numFields
public int numFields()(Code)
Returns the number of fields in this section. the number of fields in this section



removeField
public void removeField(Field f)(Code)
Removes a field from this section.
Parameters:
  f - field



removeLine
public void removeLine(Line f)(Code)
Removes a line from this section.
Parameters:
  f - line



setArea
public void setArea(SectionArea area)(Code)
Sets the area this section is contained within and notifies any observers of the change.
Parameters:
  area - a section area



setMinHeight
public void setMinHeight(double newMinHeight)(Code)
Sets the min height.
Parameters:
  newMinHeight - the new min height



setPageBreak
public void setPageBreak(boolean flag)(Code)
Sets the page break flag.
Parameters:
  flag - new value



update
public void update(Observable o, Object arg)(Code)



writeXML
public void writeXML(XMLWriter out)(Code)
Writes this section and all it contains as an XML tag.
Parameters:
  out - a writer that knows how to write XML



Methods inherited from java.util.Observable
public synchronized void addObserver(Observer o)(Code)(Java Doc)
protected synchronized void clearChanged()(Code)(Java Doc)
public synchronized int countObservers()(Code)(Java Doc)
public synchronized void deleteObserver(Observer o)(Code)(Java Doc)
public synchronized void deleteObservers()(Code)(Java Doc)
public synchronized boolean hasChanged()(Code)(Java Doc)
public void notifyObservers()(Code)(Java Doc)
public void notifyObservers(Object arg)(Code)(Java Doc)
protected synchronized void setChanged()(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.