Java Doc for DefaultIntervalCategoryDataset.java in  » Chart » jfreechart » org » jfree » data » category » 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 » Chart » jfreechart » org.jfree.data.category 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jfree.data.general.AbstractSeriesDataset
   org.jfree.data.category.DefaultIntervalCategoryDataset

DefaultIntervalCategoryDataset
public class DefaultIntervalCategoryDataset extends AbstractSeriesDataset implements IntervalCategoryDataset(Code)
A convenience class that provides a default implementation of the IntervalCategoryDataset interface.

The standard constructor accepts data in a two dimensional array where the first dimension is the series, and the second dimension is the category.




Constructor Summary
public  DefaultIntervalCategoryDataset(double[][] starts, double[][] ends)
     Creates a new dataset.
public  DefaultIntervalCategoryDataset(Number[][] starts, Number[][] ends)
     Constructs a dataset and populates it with data from the array.

The arrays are indexed as data[series][category].

public  DefaultIntervalCategoryDataset(String[] seriesNames, Number[][] starts, Number[][] ends)
     Constructs a DefaultIntervalCategoryDataset, populates it with data from the arrays, and uses the supplied names for the series.
public  DefaultIntervalCategoryDataset(Comparable[] seriesKeys, Comparable[] categoryKeys, Number[][] starts, Number[][] ends)
     Constructs a DefaultIntervalCategoryDataset, populates it with data from the arrays, and uses the supplied names for the series and the supplied objects for the categories.

Method Summary
public  Objectclone()
     Returns a clone of this dataset.
public  booleanequals(Object obj)
     Tests this dataset for equality with an arbitrary object.
Parameters:
  obj - the object (null permitted).
public  ListgetCategories()
     Returns a list of the categories in the dataset.
public  intgetCategoryCount()
     Returns the number of categories in the dataset.
public  intgetCategoryIndex(Comparable category)
     Returns the index for the given category.
Parameters:
  category - the category (null not permitted).
public  intgetColumnCount()
     Returns the number of categories in the dataset.
public  intgetColumnIndex(Comparable columnKey)
     Returns a column index.
Parameters:
  columnKey - the column key (null not permitted).
public  ComparablegetColumnKey(int column)
     Returns a column key.
Parameters:
  column - the column index.
public  ListgetColumnKeys()
     Returns a list of the categories in the dataset.
public  NumbergetEndValue(Comparable series, Comparable category)
     Returns the end data value for one category in a series.
Parameters:
  series - the required series.
Parameters:
  category - the required category.
public  NumbergetEndValue(int series, int category)
     Returns the end data value for one category in a series.
Parameters:
  series - the required series (zero based index).
Parameters:
  category - the required category.
public  intgetItemCount()
     Returns the item count.
public  intgetRowCount()
     Returns the number of series in the dataset (possibly zero).
public  intgetRowIndex(Comparable rowKey)
     Returns a row index.
Parameters:
  rowKey - the row key.
public  ComparablegetRowKey(int row)
     Returns the name of the specified series.
Parameters:
  row - the index of the required row/series (zero-based).
public  ListgetRowKeys()
     Returns a list of the series in the dataset.
public  ListgetSeries()
     Returns a list of the series in the dataset.
public  intgetSeriesCount()
     Returns the number of series in the dataset (possibly zero).
public  intgetSeriesIndex(Comparable seriesKey)
     Returns a series index.
Parameters:
  seriesKey - the series key.
public  ComparablegetSeriesKey(int series)
     Returns the name of the specified series.
Parameters:
  series - the index of the required series (zero-based).
public  NumbergetStartValue(Comparable series, Comparable category)
     Returns the start data value for one category in a series.
Parameters:
  series - the required series.
Parameters:
  category - the required category.
public  NumbergetStartValue(int series, int category)
     Returns the start data value for one category in a series.
Parameters:
  series - the required series (zero based index).
Parameters:
  category - the required category.
public  NumbergetValue(Comparable series, Comparable category)
     Returns the data value for one category in a series.

This method is part of the CategoryDataset interface.

public  NumbergetValue(int series, int category)
     Returns the data value for one category in a series.

This method is part of the CategoryDataset interface.

public  voidsetCategoryKeys(Comparable[] categoryKeys)
     Sets the categories for the dataset.
public  voidsetEndValue(int series, Comparable category, Number value)
     Sets the end data value for one category in a series.
public  voidsetSeriesKeys(Comparable[] seriesKeys)
     Sets the names of the series in the dataset.
public  voidsetStartValue(int series, Comparable category, Number value)
     Sets the start data value for one category in a series.


Constructor Detail
DefaultIntervalCategoryDataset
public DefaultIntervalCategoryDataset(double[][] starts, double[][] ends)(Code)
Creates a new dataset.
Parameters:
  starts - the starting values for the intervals.
Parameters:
  ends - the ending values for the intervals.



DefaultIntervalCategoryDataset
public DefaultIntervalCategoryDataset(Number[][] starts, Number[][] ends)(Code)
Constructs a dataset and populates it with data from the array.

The arrays are indexed as data[series][category]. Series and category names are automatically generated - you can change them using the DefaultIntervalCategoryDataset.setSeriesKeys(Comparable[]) and DefaultIntervalCategoryDataset.setCategoryKeys(Comparable[]) methods.
Parameters:
  starts - the start values data.
Parameters:
  ends - the end values data.




DefaultIntervalCategoryDataset
public DefaultIntervalCategoryDataset(String[] seriesNames, Number[][] starts, Number[][] ends)(Code)
Constructs a DefaultIntervalCategoryDataset, populates it with data from the arrays, and uses the supplied names for the series.

Category names are generated automatically ("Category 1", "Category 2", etc).
Parameters:
  seriesNames - the series names.
Parameters:
  starts - the start values data, indexed as data[series][category].
Parameters:
  ends - the end values data, indexed as data[series][category].




DefaultIntervalCategoryDataset
public DefaultIntervalCategoryDataset(Comparable[] seriesKeys, Comparable[] categoryKeys, Number[][] starts, Number[][] ends)(Code)
Constructs a DefaultIntervalCategoryDataset, populates it with data from the arrays, and uses the supplied names for the series and the supplied objects for the categories.
Parameters:
  seriesKeys - the series keys.
Parameters:
  categoryKeys - the categories.
Parameters:
  starts - the start values data, indexed as data[series][category].
Parameters:
  ends - the end values data, indexed as data[series][category].




Method Detail
clone
public Object clone() throws CloneNotSupportedException(Code)
Returns a clone of this dataset. A clone.
throws:
  CloneNotSupportedException - if there is a problem cloning thedataset.



equals
public boolean equals(Object obj)(Code)
Tests this dataset for equality with an arbitrary object.
Parameters:
  obj - the object (null permitted). A boolean.



getCategories
public List getCategories()(Code)
Returns a list of the categories in the dataset. A list of the categories in the dataset.DefaultIntervalCategoryDataset.getColumnKeys()



getCategoryCount
public int getCategoryCount()(Code)
Returns the number of categories in the dataset. The number of categories in the dataset.
See Also:   DefaultIntervalCategoryDataset.getColumnCount()



getCategoryIndex
public int getCategoryIndex(Comparable category)(Code)
Returns the index for the given category.
Parameters:
  category - the category (null not permitted). The index.
See Also:   DefaultIntervalCategoryDataset.getColumnIndex(Comparable)



getColumnCount
public int getColumnCount()(Code)
Returns the number of categories in the dataset. This method is part of the CategoryDataset interface. The number of categories in the dataset.
See Also:   DefaultIntervalCategoryDataset.getCategoryCount()
See Also:   DefaultIntervalCategoryDataset.getRowCount()



getColumnIndex
public int getColumnIndex(Comparable columnKey)(Code)
Returns a column index.
Parameters:
  columnKey - the column key (null not permitted). The column index.
See Also:   DefaultIntervalCategoryDataset.getCategoryIndex(Comparable)



getColumnKey
public Comparable getColumnKey(int column)(Code)
Returns a column key.
Parameters:
  column - the column index. The column key.
See Also:   DefaultIntervalCategoryDataset.getRowKey(int)



getColumnKeys
public List getColumnKeys()(Code)
Returns a list of the categories in the dataset. This method supports the CategoryDataset interface. A list of the categories in the dataset.
See Also:   DefaultIntervalCategoryDataset.getRowKeys()



getEndValue
public Number getEndValue(Comparable series, Comparable category)(Code)
Returns the end data value for one category in a series.
Parameters:
  series - the required series.
Parameters:
  category - the required category. The end data value for one category in a series (null possible).
See Also:   DefaultIntervalCategoryDataset.getEndValue(int,int)



getEndValue
public Number getEndValue(int series, int category)(Code)
Returns the end data value for one category in a series.
Parameters:
  series - the required series (zero based index).
Parameters:
  category - the required category. The end data value for one category in a series (null possible).
See Also:   DefaultIntervalCategoryDataset.getEndValue(Comparable,Comparable)



getItemCount
public int getItemCount()(Code)
Returns the item count. The item count.DefaultIntervalCategoryDataset.getCategoryCount()



getRowCount
public int getRowCount()(Code)
Returns the number of series in the dataset (possibly zero). The number of series in the dataset.
See Also:   DefaultIntervalCategoryDataset.getSeriesCount()
See Also:   DefaultIntervalCategoryDataset.getColumnCount()



getRowIndex
public int getRowIndex(Comparable rowKey)(Code)
Returns a row index.
Parameters:
  rowKey - the row key. The row index.
See Also:   DefaultIntervalCategoryDataset.getSeriesIndex(Comparable)



getRowKey
public Comparable getRowKey(int row)(Code)
Returns the name of the specified series.
Parameters:
  row - the index of the required row/series (zero-based). The name of the specified series.
See Also:   DefaultIntervalCategoryDataset.getColumnKey(int)



getRowKeys
public List getRowKeys()(Code)
Returns a list of the series in the dataset. This method supports the CategoryDataset interface. A list of the series in the dataset.
See Also:   DefaultIntervalCategoryDataset.getColumnKeys()



getSeries
public List getSeries()(Code)
Returns a list of the series in the dataset. A list of the series in the dataset.DefaultIntervalCategoryDataset.getRowKeys()



getSeriesCount
public int getSeriesCount()(Code)
Returns the number of series in the dataset (possibly zero). The number of series in the dataset.
See Also:   DefaultIntervalCategoryDataset.getRowCount()
See Also:   DefaultIntervalCategoryDataset.getCategoryCount()



getSeriesIndex
public int getSeriesIndex(Comparable seriesKey)(Code)
Returns a series index.
Parameters:
  seriesKey - the series key. The series index.
See Also:   DefaultIntervalCategoryDataset.getRowIndex(Comparable)
See Also:   DefaultIntervalCategoryDataset.getSeriesKey(int)



getSeriesKey
public Comparable getSeriesKey(int series)(Code)
Returns the name of the specified series.
Parameters:
  series - the index of the required series (zero-based). The name of the specified series.
See Also:   DefaultIntervalCategoryDataset.getSeriesIndex(Comparable)



getStartValue
public Number getStartValue(Comparable series, Comparable category)(Code)
Returns the start data value for one category in a series.
Parameters:
  series - the required series.
Parameters:
  category - the required category. The start data value for one category in a series (possibly null).
See Also:   DefaultIntervalCategoryDataset.getStartValue(int,int)



getStartValue
public Number getStartValue(int series, int category)(Code)
Returns the start data value for one category in a series.
Parameters:
  series - the required series (zero based index).
Parameters:
  category - the required category. The start data value for one category in a series (possibly null).
See Also:   DefaultIntervalCategoryDataset.getStartValue(Comparable,Comparable)



getValue
public Number getValue(Comparable series, Comparable category)(Code)
Returns the data value for one category in a series.

This method is part of the CategoryDataset interface. Not particularly meaningful for this class...returns the end value.
Parameters:
  series - The required series (zero based index).
Parameters:
  category - The required category. The data value for one category in a series (null possible).
See Also:   DefaultIntervalCategoryDataset.getEndValue(Comparable,Comparable)




getValue
public Number getValue(int series, int category)(Code)
Returns the data value for one category in a series.

This method is part of the CategoryDataset interface. Not particularly meaningful for this class...returns the end value.
Parameters:
  series - the required series (zero based index).
Parameters:
  category - the required category. The data value for one category in a series (null possible).
See Also:   DefaultIntervalCategoryDataset.getEndValue(int,int)




setCategoryKeys
public void setCategoryKeys(Comparable[] categoryKeys)(Code)
Sets the categories for the dataset.
Parameters:
  categoryKeys - an array of objects representing the categories in the dataset.
See Also:   DefaultIntervalCategoryDataset.getRowKeys()
See Also:   DefaultIntervalCategoryDataset.setSeriesKeys(Comparable[])



setEndValue
public void setEndValue(int series, Comparable category, Number value)(Code)
Sets the end data value for one category in a series.
Parameters:
  series - the series (zero-based index).
Parameters:
  category - the category.
Parameters:
  value - the value.
See Also:   DefaultIntervalCategoryDataset.setStartValue(int,Comparable,Number)



setSeriesKeys
public void setSeriesKeys(Comparable[] seriesKeys)(Code)
Sets the names of the series in the dataset.
Parameters:
  seriesKeys - the new keys (null not permitted, the length of the array must match the number of series in the dataset).
See Also:   DefaultIntervalCategoryDataset.setCategoryKeys(Comparable[])



setStartValue
public void setStartValue(int series, Comparable category, Number value)(Code)
Sets the start data value for one category in a series.
Parameters:
  series - the series (zero-based index).
Parameters:
  category - the category.
Parameters:
  value - The value.
See Also:   DefaultIntervalCategoryDataset.setEndValue(int,Comparable,Number)



Methods inherited from org.jfree.data.general.AbstractSeriesDataset
abstract public int getSeriesCount()(Code)(Java Doc)
abstract public Comparable getSeriesKey(int series)(Code)(Java Doc)
public int indexOf(Comparable seriesKey)(Code)(Java Doc)
public void seriesChanged(SeriesChangeEvent event)(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.