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


net.sf.jasperreports.engine.design.JRDesignElement
   net.sf.jasperreports.crosstabs.design.JRDesignCrosstab

JRDesignCrosstab
public class JRDesignCrosstab extends JRDesignElement implements JRCrosstab(Code)
Design-time net.sf.jasperreports.crosstabs.JRCrosstab crosstab implementation.
author:
   Lucian Chirita (lucianc@users.sourceforge.net)
version:
   $Id: JRDesignCrosstab.java 1741 2007-06-08 10:53:33Z lucianc $


Field Summary
protected  ListcellsList
    
protected  MapcellsMap
    
protected  intcolumnBreakOffset
    
protected  ListcolumnGroups
    
protected  MapcolumnGroupsMap
    
protected  JRDesignCrosstabCell[][]crossCells
    
protected  JRDesignCrosstabDatasetdataset
    
protected  JRDesignCellContentsheaderCell
    
protected  Listmeasures
    
protected  MapmeasuresMap
    
protected  ListparametersList
    
protected  MapparametersMap
    
protected  JRExpressionparametersMapExpression
    
protected  booleanrepeatColumnHeaders
    
protected  booleanrepeatRowHeaders
    
protected  ListrowGroups
    
protected  MaprowGroupsMap
    
protected  byterunDirection
    
protected  MapvariablesList
    
protected  JRDesignCellContentswhenNoDataCell
    

Constructor Summary
public  JRDesignCrosstab(JRDefaultStyleProvider defaultStyleProvider)
     Creates a new crosstab.
public  JRDesignCrosstab()
     Creates a new crosstab.

Method Summary
public  voidaddCell(JRDesignCrosstabCell cell)
     Adds a data cell to the crosstab.
protected  voidaddColGroupVars(JRDesignCrosstabColumnGroup colGroup)
    
public  voidaddColumnGroup(JRDesignCrosstabColumnGroup group)
     Adds a column group.
public  voidaddMeasure(JRDesignCrosstabMeasure measure)
     Adds a measure to the crosstab.
protected  voidaddMeasureVars(JRDesignCrosstabMeasure measure)
    
public  voidaddParameter(JRCrosstabParameter parameter)
     Adds a parameter to the crosstab.
public  voidaddRowGroup(JRDesignCrosstabRowGroup group)
     Adds a row group.
protected  voidaddRowGroupVars(JRDesignCrosstabRowGroup rowGroup)
    
protected  voidaddTotalVar(JRCrosstabMeasure measure, JRCrosstabRowGroup rowGroup, JRCrosstabColumnGroup colGroup)
    
protected  intcalculateColumnHeadersSizes()
    
protected  intcalculateRowHeadersSizes()
    
protected  voidcalculateSizes()
    
public  voidcollectExpressions(JRExpressionCollector collector)
    
protected  voidcreateCellMatrix()
    
public  JRCrosstabCell[][]getCells()
    
public  ListgetCellsList()
     Returns the data cells list.
public  intgetColumnBreakOffset()
    
protected  JRDesignCrosstabColumnGroupgetColumnGroup(int columnGroupIndex)
    
public  JRCrosstabColumnGroup[]getColumnGroups()
    
public  JRChildgetCopy(JRAbstractObjectFactory factory)
    
public  JRCrosstabDatasetgetDataset()
    
public  JRDesignCrosstabDatasetgetDesignDataset()
     Returns the crosstab dataset object to be used for report designing.
public  JRElementgetElementByKey(String elementKey)
    
public  JRCellContentsgetHeaderCell()
    
public  intgetId()
     The ID of the crosstab is only generated at compile time.
public  JRCrosstabMeasure[]getMeasures()
    
public  bytegetMode()
    
public  JRCrosstabParameter[]getParameters()
    
public  ListgetParametersList()
     Returns the paremeters list.
public  MapgetParametersMap()
     Returns the parameters indexed by names.
public  JRExpressiongetParametersMapExpression()
    
protected  JRDesignCrosstabRowGroupgetRowGroup(int rowGroupIndex)
    
public  JRCrosstabRowGroup[]getRowGroups()
    
public  bytegetRunDirection()
    
public static  StringgetTotalVariableName(JRCrosstabMeasure measure, JRCrosstabRowGroup rowGroup, JRCrosstabColumnGroup colGroup)
    
public  JRVariable[]getVariables()
     Returns the list of variables created for this crosstab.
public  MapgetVariablesMap()
     Returns the variables of this crosstab indexed by name.
public  JRCellContentsgetWhenNoDataCell()
    
protected  voidinheritCell(int i, int j)
    
protected  voidinheritCellSize(int i, int j)
    
protected  voidinheritCells()
    
public  booleanisRepeatColumnHeaders()
    
public  booleanisRepeatRowHeaders()
    
protected  voidmeasureClassChanged(JRDesignCrosstabMeasure measure, String valueClassName)
    
public  voidpreprocess()
     Performs all the calculations required for report compilation.
public  JRCrosstabCellremoveCell(String rowTotalGroup, String columnTotalGroup)
     Removes a data cell.
public  JRCrosstabCellremoveCell(JRCrosstabCell cell)
     Removes a data cell.
protected  voidremoveColGroupVars(JRCrosstabColumnGroup colGroup)
    
public  JRCrosstabColumnGroupremoveColumnGroup(String groupName)
     Removes a column group.
public  JRCrosstabColumnGroupremoveColumnGroup(JRCrosstabColumnGroup group)
     Removes a column group.
public  JRCrosstabMeasureremoveMeasure(String measureName)
     Removes a measure.
public  JRCrosstabMeasureremoveMeasure(JRCrosstabMeasure measure)
     Removes a measure.
protected  voidremoveMeasureVars(JRDesignCrosstabMeasure measure)
    
public  JRCrosstabParameterremoveParameter(String parameterName)
     Removes a parameter.
public  JRCrosstabParameterremoveParameter(JRCrosstabParameter parameter)
     Removes a parameter.
public  JRCrosstabRowGroupremoveRowGroup(String groupName)
     Removes a row group.
public  JRCrosstabRowGroupremoveRowGroup(JRCrosstabRowGroup group)
     Removes a row group.
protected  voidremoveRowGroupVars(JRCrosstabRowGroup rowGroup)
    
protected  voidremoveTotalVar(JRCrosstabMeasure measure, JRCrosstabRowGroup rowGroup, JRCrosstabColumnGroup colGroup)
    
public  voidsetColumnBreakOffset(int columnBreakOffset)
     Sets the column break offset.
public  voidsetDataset(JRDesignCrosstabDataset dataset)
     Sets the crosstab input dataset.
protected  voidsetGroupVariablesClass(List groups)
    
public  voidsetHeaderCell(JRDesignCellContents headerCell)
     Sets the crosstab header cell (this cell will be rendered at the upper-left corder of the crosstab).
public  voidsetParametersMapExpression(JRExpression expression)
     Sets the parameters map expression.
public  voidsetRepeatColumnHeaders(boolean repeatColumnHeaders)
     Sets the repeat column headers flag.
public  voidsetRepeatRowHeaders(boolean repeatRowHeaders)
     Sets the repeat row headers flag.
public  voidsetRunDirection(byte runDirection)
    
protected  voidsetTotalVarClass(JRCrosstabMeasure measure, JRCrosstabRowGroup rowGroup, JRCrosstabColumnGroup colGroup, String valueClassName)
    
public  voidsetWhenNoDataCell(JRDesignCellContents whenNoDataCell)
     Sets the "No data" cell.
protected  voidsetWhenNoDataCellSize()
    
public  voidwriteXml(JRXmlWriter writer)
    

Field Detail
cellsList
protected List cellsList(Code)



cellsMap
protected Map cellsMap(Code)



columnBreakOffset
protected int columnBreakOffset(Code)



columnGroups
protected List columnGroups(Code)



columnGroupsMap
protected Map columnGroupsMap(Code)



crossCells
protected JRDesignCrosstabCell[][] crossCells(Code)



dataset
protected JRDesignCrosstabDataset dataset(Code)



headerCell
protected JRDesignCellContents headerCell(Code)



measures
protected List measures(Code)



measuresMap
protected Map measuresMap(Code)



parametersList
protected List parametersList(Code)



parametersMap
protected Map parametersMap(Code)



parametersMapExpression
protected JRExpression parametersMapExpression(Code)



repeatColumnHeaders
protected boolean repeatColumnHeaders(Code)



repeatRowHeaders
protected boolean repeatRowHeaders(Code)



rowGroups
protected List rowGroups(Code)



rowGroupsMap
protected Map rowGroupsMap(Code)



runDirection
protected byte runDirection(Code)



variablesList
protected Map variablesList(Code)



whenNoDataCell
protected JRDesignCellContents whenNoDataCell(Code)




Constructor Detail
JRDesignCrosstab
public JRDesignCrosstab(JRDefaultStyleProvider defaultStyleProvider)(Code)
Creates a new crosstab.
Parameters:
  defaultStyleProvider - default style provider



JRDesignCrosstab
public JRDesignCrosstab()(Code)
Creates a new crosstab.




Method Detail
addCell
public void addCell(JRDesignCrosstabCell cell) throws JRException(Code)
Adds a data cell to the crosstab.
Parameters:
  cell - the cell
throws:
  JRException -
See Also:   JRCrosstab.getCells



addColGroupVars
protected void addColGroupVars(JRDesignCrosstabColumnGroup colGroup)(Code)



addColumnGroup
public void addColumnGroup(JRDesignCrosstabColumnGroup group) throws JRException(Code)
Adds a column group.

This group will be a sub group of the last column group, if any.
Parameters:
  group - the group
throws:
  JRException -
See Also:   JRCrosstab.getColumnGroups




addMeasure
public void addMeasure(JRDesignCrosstabMeasure measure) throws JRException(Code)
Adds a measure to the crosstab.
Parameters:
  measure - the measure
throws:
  JRException -
See Also:   JRCrosstab.getMeasures



addMeasureVars
protected void addMeasureVars(JRDesignCrosstabMeasure measure)(Code)



addParameter
public void addParameter(JRCrosstabParameter parameter) throws JRException(Code)
Adds a parameter to the crosstab.
Parameters:
  parameter - the parameter
throws:
  JRException -
See Also:   JRCrosstab.getMeasures



addRowGroup
public void addRowGroup(JRDesignCrosstabRowGroup group) throws JRException(Code)
Adds a row group.

This group will be a sub group of the last row group, if any.
Parameters:
  group - the group
throws:
  JRException -
See Also:   JRCrosstab.getRowGroups




addRowGroupVars
protected void addRowGroupVars(JRDesignCrosstabRowGroup rowGroup)(Code)



addTotalVar
protected void addTotalVar(JRCrosstabMeasure measure, JRCrosstabRowGroup rowGroup, JRCrosstabColumnGroup colGroup)(Code)



calculateColumnHeadersSizes
protected int calculateColumnHeadersSizes()(Code)



calculateRowHeadersSizes
protected int calculateRowHeadersSizes()(Code)



calculateSizes
protected void calculateSizes()(Code)



collectExpressions
public void collectExpressions(JRExpressionCollector collector)(Code)



createCellMatrix
protected void createCellMatrix()(Code)



getCells
public JRCrosstabCell[][] getCells()(Code)



getCellsList
public List getCellsList()(Code)
Returns the data cells list. the data cells list
See Also:   JRDesignCrosstab.addCell(JRDesignCrosstabCell)



getColumnBreakOffset
public int getColumnBreakOffset()(Code)



getColumnGroup
protected JRDesignCrosstabColumnGroup getColumnGroup(int columnGroupIndex)(Code)



getColumnGroups
public JRCrosstabColumnGroup[] getColumnGroups()(Code)



getCopy
public JRChild getCopy(JRAbstractObjectFactory factory)(Code)



getDataset
public JRCrosstabDataset getDataset()(Code)



getDesignDataset
public JRDesignCrosstabDataset getDesignDataset()(Code)
Returns the crosstab dataset object to be used for report designing. the crosstab dataset design object



getElementByKey
public JRElement getElementByKey(String elementKey)(Code)



getHeaderCell
public JRCellContents getHeaderCell()(Code)



getId
public int getId()(Code)
The ID of the crosstab is only generated at compile time.



getMeasures
public JRCrosstabMeasure[] getMeasures()(Code)



getMode
public byte getMode()(Code)



getParameters
public JRCrosstabParameter[] getParameters()(Code)



getParametersList
public List getParametersList()(Code)
Returns the paremeters list. the paremeters list



getParametersMap
public Map getParametersMap()(Code)
Returns the parameters indexed by names. the parameters indexed by names



getParametersMapExpression
public JRExpression getParametersMapExpression()(Code)



getRowGroup
protected JRDesignCrosstabRowGroup getRowGroup(int rowGroupIndex)(Code)



getRowGroups
public JRCrosstabRowGroup[] getRowGroups()(Code)



getRunDirection
public byte getRunDirection()(Code)



getTotalVariableName
public static String getTotalVariableName(JRCrosstabMeasure measure, JRCrosstabRowGroup rowGroup, JRCrosstabColumnGroup colGroup)(Code)



getVariables
public JRVariable[] getVariables()(Code)
Returns the list of variables created for this crosstab. the list of variables created for this crosstab
See Also:   JRCrosstabGroup.getVariable
See Also:   JRCrosstabMeasure.getVariable
See Also:   JRCrosstab.VARIABLE_ROW_COUNT
See Also:   JRCrosstab.VARIABLE_COLUMN_COUNT



getVariablesMap
public Map getVariablesMap()(Code)
Returns the variables of this crosstab indexed by name. the variables of this crosstab indexed by name



getWhenNoDataCell
public JRCellContents getWhenNoDataCell()(Code)



inheritCell
protected void inheritCell(int i, int j)(Code)



inheritCellSize
protected void inheritCellSize(int i, int j)(Code)



inheritCells
protected void inheritCells()(Code)



isRepeatColumnHeaders
public boolean isRepeatColumnHeaders()(Code)



isRepeatRowHeaders
public boolean isRepeatRowHeaders()(Code)



measureClassChanged
protected void measureClassChanged(JRDesignCrosstabMeasure measure, String valueClassName)(Code)



preprocess
public void preprocess()(Code)
Performs all the calculations required for report compilation.



removeCell
public JRCrosstabCell removeCell(String rowTotalGroup, String columnTotalGroup)(Code)
Removes a data cell.
Parameters:
  rowTotalGroup - the cell's total row group
Parameters:
  columnTotalGroup - the cell's total column group the removed cell



removeCell
public JRCrosstabCell removeCell(JRCrosstabCell cell)(Code)
Removes a data cell.
Parameters:
  cell - the cell to be removed the removed cell



removeColGroupVars
protected void removeColGroupVars(JRCrosstabColumnGroup colGroup)(Code)



removeColumnGroup
public JRCrosstabColumnGroup removeColumnGroup(String groupName)(Code)
Removes a column group.
Parameters:
  groupName - the group name the removed group



removeColumnGroup
public JRCrosstabColumnGroup removeColumnGroup(JRCrosstabColumnGroup group)(Code)
Removes a column group.
Parameters:
  group - the group the removed group



removeMeasure
public JRCrosstabMeasure removeMeasure(String measureName)(Code)
Removes a measure.
Parameters:
  measureName - the measure name the removed measure



removeMeasure
public JRCrosstabMeasure removeMeasure(JRCrosstabMeasure measure)(Code)
Removes a measure.
Parameters:
  measure - the measure the removed measure



removeMeasureVars
protected void removeMeasureVars(JRDesignCrosstabMeasure measure)(Code)



removeParameter
public JRCrosstabParameter removeParameter(String parameterName)(Code)
Removes a parameter.
Parameters:
  parameterName - the name of the parameter to be removed the removed parameter



removeParameter
public JRCrosstabParameter removeParameter(JRCrosstabParameter parameter)(Code)
Removes a parameter.
Parameters:
  parameter - the parameter to be removed the removed parameter



removeRowGroup
public JRCrosstabRowGroup removeRowGroup(String groupName)(Code)
Removes a row group.
Parameters:
  groupName - the group name the removed group



removeRowGroup
public JRCrosstabRowGroup removeRowGroup(JRCrosstabRowGroup group)(Code)
Removes a row group.
Parameters:
  group - the group to be removed the removed group



removeRowGroupVars
protected void removeRowGroupVars(JRCrosstabRowGroup rowGroup)(Code)



removeTotalVar
protected void removeTotalVar(JRCrosstabMeasure measure, JRCrosstabRowGroup rowGroup, JRCrosstabColumnGroup colGroup)(Code)



setColumnBreakOffset
public void setColumnBreakOffset(int columnBreakOffset)(Code)
Sets the column break offset.
Parameters:
  columnBreakOffset - the offset
See Also:   JRCrosstab.getColumnBreakOffset



setDataset
public void setDataset(JRDesignCrosstabDataset dataset)(Code)
Sets the crosstab input dataset.
Parameters:
  dataset - the dataset
See Also:   JRCrosstab.getDataset



setGroupVariablesClass
protected void setGroupVariablesClass(List groups)(Code)



setHeaderCell
public void setHeaderCell(JRDesignCellContents headerCell)(Code)
Sets the crosstab header cell (this cell will be rendered at the upper-left corder of the crosstab).
Parameters:
  headerCell - the cell
See Also:   JRCrosstab.getHeaderCell



setParametersMapExpression
public void setParametersMapExpression(JRExpression expression)(Code)
Sets the parameters map expression.
Parameters:
  expression - the parameters map expression
See Also:   JRCrosstab.getParametersMapExpression



setRepeatColumnHeaders
public void setRepeatColumnHeaders(boolean repeatColumnHeaders)(Code)
Sets the repeat column headers flag.
Parameters:
  repeatColumnHeaders - whether to repeat the column headers on row breaks
See Also:   JRCrosstab.isRepeatColumnHeaders



setRepeatRowHeaders
public void setRepeatRowHeaders(boolean repeatRowHeaders)(Code)
Sets the repeat row headers flag.
Parameters:
  repeatRowHeaders - whether to repeat the row headers on column breaks
See Also:   JRCrosstab.isRepeatRowHeaders



setRunDirection
public void setRunDirection(byte runDirection)(Code)



setTotalVarClass
protected void setTotalVarClass(JRCrosstabMeasure measure, JRCrosstabRowGroup rowGroup, JRCrosstabColumnGroup colGroup, String valueClassName)(Code)



setWhenNoDataCell
public void setWhenNoDataCell(JRDesignCellContents whenNoDataCell)(Code)
Sets the "No data" cell.
Parameters:
  whenNoDataCell - the cell
See Also:   JRCrosstab.getWhenNoDataCell



setWhenNoDataCellSize
protected void setWhenNoDataCellSize()(Code)



writeXml
public void writeXml(JRXmlWriter writer) throws IOException(Code)



Methods inherited from net.sf.jasperreports.engine.design.JRDesignElement
public void setElementGroup(JRElementGroup elementGroup)(Code)(Java Doc)
public void setHeight(int height)(Code)(Java Doc)
public void setKey(String key)(Code)(Java Doc)
public void setPrintWhenExpression(JRExpression expression)(Code)(Java Doc)
public void setPrintWhenGroupChanges(JRGroup group)(Code)(Java Doc)
public void setStyle(JRStyle style)(Code)(Java Doc)
public void setStyleNameReference(String styleName)(Code)(Java Doc)
public void setY(int y)(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.