Java Doc for DefaultCategoryDataset.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) 


java.lang.Object
   org.jfree.data.general.AbstractDataset
      org.jfree.data.category.DefaultCategoryDataset

All known Subclasses:   org.jfree.data.general.DefaultKeyedValues2DDataset,  org.jfree.data.jdbc.JDBCCategoryDataset,
DefaultCategoryDataset
public class DefaultCategoryDataset extends AbstractDataset implements CategoryDataset,Serializable(Code)
A default implementation of the CategoryDataset interface.



Constructor Summary
public  DefaultCategoryDataset()
     Creates a new (empty) dataset.

Method Summary
public  voidaddValue(Number value, Comparable rowKey, Comparable columnKey)
     Adds a value to the table.
public  voidaddValue(double value, Comparable rowKey, Comparable columnKey)
     Adds a value to the table.
public  voidclear()
     Clears all data from the dataset and sends a DatasetChangeEvent to all registered listeners.
public  Objectclone()
     Returns a clone of the dataset.
public  booleanequals(Object obj)
     Tests this dataset for equality with an arbitrary object.
Parameters:
  obj - the object (null permitted).
public  intgetColumnCount()
     Returns the number of columns in the table.
public  intgetColumnIndex(Comparable key)
     Returns the column index for a given key.
Parameters:
  key - the column key.
public  ComparablegetColumnKey(int column)
     Returns a column key.
Parameters:
  column - the column index (zero-based).
public  ListgetColumnKeys()
     Returns the column keys.
public  intgetRowCount()
     Returns the number of rows in the table.
public  intgetRowIndex(Comparable key)
     Returns the row index for a given key.
Parameters:
  key - the row key.
public  ComparablegetRowKey(int row)
     Returns a row key.
Parameters:
  row - the row index (zero-based).
public  ListgetRowKeys()
     Returns the row keys.
public  NumbergetValue(int row, int column)
     Returns a value from the table.
Parameters:
  row - the row index (zero-based).
Parameters:
  column - the column index (zero-based).
public  NumbergetValue(Comparable rowKey, Comparable columnKey)
     Returns the value for a pair of keys.
Parameters:
  rowKey - the row key (null not permitted).
Parameters:
  columnKey - the column key (null not permitted).
public  inthashCode()
     Returns a hash code for the dataset.
public  voidincrementValue(double value, Comparable rowKey, Comparable columnKey)
     Adds the specified value to an existing value in the dataset (if the existing value is null, it is treated as if it were 0.0).
public  voidremoveColumn(int columnIndex)
     Removes a column from the dataset and sends a DatasetChangeEvent to all registered listeners.
public  voidremoveColumn(Comparable columnKey)
     Removes a column from the dataset and sends a DatasetChangeEvent to all registered listeners.
public  voidremoveRow(int rowIndex)
     Removes a row from the dataset and sends a DatasetChangeEvent to all registered listeners.
public  voidremoveRow(Comparable rowKey)
     Removes a row from the dataset and sends a DatasetChangeEvent to all registered listeners.
public  voidremoveValue(Comparable rowKey, Comparable columnKey)
     Removes a value from the dataset and sends a DatasetChangeEvent to all registered listeners.
public  voidsetValue(Number value, Comparable rowKey, Comparable columnKey)
     Adds or updates a value in the table and sends a DatasetChangeEvent to all registered listeners.
public  voidsetValue(double value, Comparable rowKey, Comparable columnKey)
     Adds or updates a value in the table and sends a DatasetChangeEvent to all registered listeners.


Constructor Detail
DefaultCategoryDataset
public DefaultCategoryDataset()(Code)
Creates a new (empty) dataset.




Method Detail
addValue
public void addValue(Number value, Comparable rowKey, Comparable columnKey)(Code)
Adds a value to the table. Performs the same function as setValue().
Parameters:
  value - the value.
Parameters:
  rowKey - the row key.
Parameters:
  columnKey - the column key.
See Also:   DefaultCategoryDataset.getValue(Comparable,Comparable)
See Also:   DefaultCategoryDataset.removeValue(Comparable,Comparable)



addValue
public void addValue(double value, Comparable rowKey, Comparable columnKey)(Code)
Adds a value to the table.
Parameters:
  value - the value.
Parameters:
  rowKey - the row key.
Parameters:
  columnKey - the column key.
See Also:   DefaultCategoryDataset.getValue(Comparable,Comparable)



clear
public void clear()(Code)
Clears all data from the dataset and sends a DatasetChangeEvent to all registered listeners.



clone
public Object clone() throws CloneNotSupportedException(Code)
Returns a clone of the 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.



getColumnCount
public int getColumnCount()(Code)
Returns the number of columns in the table. The column count.
See Also:   DefaultCategoryDataset.getRowCount()



getColumnIndex
public int getColumnIndex(Comparable key)(Code)
Returns the column index for a given key.
Parameters:
  key - the column key. The column index.
See Also:   DefaultCategoryDataset.getColumnKey(int)



getColumnKey
public Comparable getColumnKey(int column)(Code)
Returns a column key.
Parameters:
  column - the column index (zero-based). The column key.
See Also:   DefaultCategoryDataset.getColumnIndex(Comparable)



getColumnKeys
public List getColumnKeys()(Code)
Returns the column keys. The keys.
See Also:   DefaultCategoryDataset.getColumnKey(int)



getRowCount
public int getRowCount()(Code)
Returns the number of rows in the table. The row count.
See Also:   DefaultCategoryDataset.getColumnCount()



getRowIndex
public int getRowIndex(Comparable key)(Code)
Returns the row index for a given key.
Parameters:
  key - the row key. The row index.
See Also:   DefaultCategoryDataset.getRowKey(int)



getRowKey
public Comparable getRowKey(int row)(Code)
Returns a row key.
Parameters:
  row - the row index (zero-based). The row key.
See Also:   DefaultCategoryDataset.getRowIndex(Comparable)
See Also:   DefaultCategoryDataset.getRowKeys()



getRowKeys
public List getRowKeys()(Code)
Returns the row keys. The keys.
See Also:   DefaultCategoryDataset.getRowKey(int)



getValue
public Number getValue(int row, int column)(Code)
Returns a value from the table.
Parameters:
  row - the row index (zero-based).
Parameters:
  column - the column index (zero-based). The value (possibly null).
See Also:   DefaultCategoryDataset.addValue(Number,Comparable,Comparable)



getValue
public Number getValue(Comparable rowKey, Comparable columnKey)(Code)
Returns the value for a pair of keys.
Parameters:
  rowKey - the row key (null not permitted).
Parameters:
  columnKey - the column key (null not permitted). The value (possibly null).
throws:
  UnknownKeyException - if either key is not defined in the dataset.
See Also:   DefaultCategoryDataset.addValue(Number,Comparable,Comparable)



hashCode
public int hashCode()(Code)
Returns a hash code for the dataset. A hash code.



incrementValue
public void incrementValue(double value, Comparable rowKey, Comparable columnKey)(Code)
Adds the specified value to an existing value in the dataset (if the existing value is null, it is treated as if it were 0.0).
Parameters:
  value - the value.
Parameters:
  rowKey - the row key (null not permitted).
Parameters:
  columnKey - the column key (null not permitted).
throws:
  UnknownKeyException - if either key is not defined in the dataset.



removeColumn
public void removeColumn(int columnIndex)(Code)
Removes a column from the dataset and sends a DatasetChangeEvent to all registered listeners.
Parameters:
  columnIndex - the column index.
See Also:   DefaultCategoryDataset.removeRow(int)



removeColumn
public void removeColumn(Comparable columnKey)(Code)
Removes a column from the dataset and sends a DatasetChangeEvent to all registered listeners.
Parameters:
  columnKey - the column key.
See Also:   DefaultCategoryDataset.removeRow(Comparable)



removeRow
public void removeRow(int rowIndex)(Code)
Removes a row from the dataset and sends a DatasetChangeEvent to all registered listeners.
Parameters:
  rowIndex - the row index.
See Also:   DefaultCategoryDataset.removeColumn(int)



removeRow
public void removeRow(Comparable rowKey)(Code)
Removes a row from the dataset and sends a DatasetChangeEvent to all registered listeners.
Parameters:
  rowKey - the row key.
See Also:   DefaultCategoryDataset.removeColumn(Comparable)



removeValue
public void removeValue(Comparable rowKey, Comparable columnKey)(Code)
Removes a value from the dataset and sends a DatasetChangeEvent to all registered listeners.
Parameters:
  rowKey - the row key.
Parameters:
  columnKey - the column key.
See Also:   DefaultCategoryDataset.addValue(Number,Comparable,Comparable)



setValue
public void setValue(Number value, Comparable rowKey, Comparable columnKey)(Code)
Adds or updates a value in the table and sends a DatasetChangeEvent to all registered listeners.
Parameters:
  value - the value (null permitted).
Parameters:
  rowKey - the row key (null not permitted).
Parameters:
  columnKey - the column key (null not permitted).
See Also:   DefaultCategoryDataset.getValue(Comparable,Comparable)



setValue
public void setValue(double value, Comparable rowKey, Comparable columnKey)(Code)
Adds or updates a value in the table and sends a DatasetChangeEvent to all registered listeners.
Parameters:
  value - the value.
Parameters:
  rowKey - the row key (null not permitted).
Parameters:
  columnKey - the column key (null not permitted).
See Also:   DefaultCategoryDataset.getValue(Comparable,Comparable)



Methods inherited from org.jfree.data.general.AbstractDataset
public void addChangeListener(DatasetChangeListener listener)(Code)(Java Doc)
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
protected void fireDatasetChanged()(Code)(Java Doc)
public DatasetGroup getGroup()(Code)(Java Doc)
public boolean hasListener(EventListener listener)(Code)(Java Doc)
protected void notifyListeners(DatasetChangeEvent event)(Code)(Java Doc)
public void removeChangeListener(DatasetChangeListener listener)(Code)(Java Doc)
public void setGroup(DatasetGroup group)(Code)(Java Doc)
public void validateObject() throws InvalidObjectException(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.