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


org.jfree.data.xy.AbstractXYDataset
   org.jfree.data.xy.DefaultXYDataset

DefaultXYDataset
public class DefaultXYDataset extends AbstractXYDataset implements XYDataset,PublicCloneable(Code)
A default implementation of the XYDataset interface that stores data values in arrays of double primitives.
since:
   1.0.2



Constructor Summary
public  DefaultXYDataset()
     Creates a new DefaultXYDataset instance, initially containing no data.

Method Summary
public  voidaddSeries(Comparable seriesKey, double[][] data)
     Adds a series or if a series with the same key already exists replaces the data for that series, then sends a DatasetChangeEvent to all registered listeners.
Parameters:
  seriesKey - the series key (null not permitted).
Parameters:
  data - the data (must be an array with length 2, containing two arrays of equal length, the first containing the x-values and thesecond containing the y-values).
public  Objectclone()
     Creates an independent copy of this dataset.
public  booleanequals(Object obj)
     Tests this DefaultXYDataset instance for equality with an arbitrary object.
public  DomainOrdergetDomainOrder()
     Returns the order of the domain (x-) values in the dataset.
public  intgetItemCount(int series)
     Returns the number of items in the specified series.
Parameters:
  series - the series index (in the range 0 to getSeriesCount() - 1).
public  intgetSeriesCount()
     Returns the number of series in the dataset.
public  ComparablegetSeriesKey(int series)
     Returns the key for a series.
public  NumbergetX(int series, int item)
     Returns the x-value for an item within a series.
Parameters:
  series - the series index (in the range 0 to getSeriesCount() - 1).
Parameters:
  item - the item index (in the range 0 to getItemCount(series)).
public  doublegetXValue(int series, int item)
     Returns the x-value for an item within a series.
Parameters:
  series - the series index (in the range 0 to getSeriesCount() - 1).
Parameters:
  item - the item index (in the range 0 to getItemCount(series)).
public  NumbergetY(int series, int item)
     Returns the y-value for an item within a series.
Parameters:
  series - the series index (in the range 0 to getSeriesCount() - 1).
Parameters:
  item - the item index (in the range 0 to getItemCount(series)).
public  doublegetYValue(int series, int item)
     Returns the y-value for an item within a series.
Parameters:
  series - the series index (in the range 0 to getSeriesCount() - 1).
Parameters:
  item - the item index (in the range 0 to getItemCount(series)).
public  inthashCode()
     Returns a hash code for this instance.
public  intindexOf(Comparable seriesKey)
     Returns the index of the series with the specified key, or -1 if there is no such series in the dataset.
Parameters:
  seriesKey - the series key (null permitted).
public  voidremoveSeries(Comparable seriesKey)
     Removes a series from the dataset, then sends a DatasetChangeEvent to all registered listeners.


Constructor Detail
DefaultXYDataset
public DefaultXYDataset()(Code)
Creates a new DefaultXYDataset instance, initially containing no data.




Method Detail
addSeries
public void addSeries(Comparable seriesKey, double[][] data)(Code)
Adds a series or if a series with the same key already exists replaces the data for that series, then sends a DatasetChangeEvent to all registered listeners.
Parameters:
  seriesKey - the series key (null not permitted).
Parameters:
  data - the data (must be an array with length 2, containing two arrays of equal length, the first containing the x-values and thesecond containing the y-values).



clone
public Object clone() throws CloneNotSupportedException(Code)
Creates an independent copy of this dataset. The cloned dataset.
throws:
  CloneNotSupportedException - if there is a problem cloning thedataset (for instance, if a non-cloneable object is used for aseries key).



equals
public boolean equals(Object obj)(Code)
Tests this DefaultXYDataset instance for equality with an arbitrary object. This method returns true if and only if:
  • obj is not null;
  • obj is an instance of DefaultXYDataset;
  • both datasets have the same number of series, each containing exactly the same values.

Parameters:
  obj - the object (null permitted). A boolean.



getDomainOrder
public DomainOrder getDomainOrder()(Code)
Returns the order of the domain (x-) values in the dataset. In this implementation, we cannot guarantee that the x-values are ordered, so this method returns DomainOrder.NONE. DomainOrder.NONE.



getItemCount
public int getItemCount(int series)(Code)
Returns the number of items in the specified series.
Parameters:
  series - the series index (in the range 0 to getSeriesCount() - 1). The item count.
throws:
  IllegalArgumentException - if series is not in the specified range.



getSeriesCount
public int getSeriesCount()(Code)
Returns the number of series in the dataset. The series count.



getSeriesKey
public Comparable getSeriesKey(int series)(Code)
Returns the key for a series.
Parameters:
  series - the series index (in the range 0 to getSeriesCount() - 1). The key for the series.
throws:
  IllegalArgumentException - if series is not in the specified range.



getX
public Number getX(int series, int item)(Code)
Returns the x-value for an item within a series.
Parameters:
  series - the series index (in the range 0 to getSeriesCount() - 1).
Parameters:
  item - the item index (in the range 0 to getItemCount(series)). The x-value.
throws:
  ArrayIndexOutOfBoundsException - if series is not within the specified range.
throws:
  ArrayIndexOutOfBoundsException - if item is not within the specified range.
See Also:   DefaultXYDataset.getXValue(int,int)



getXValue
public double getXValue(int series, int item)(Code)
Returns the x-value for an item within a series.
Parameters:
  series - the series index (in the range 0 to getSeriesCount() - 1).
Parameters:
  item - the item index (in the range 0 to getItemCount(series)). The x-value.
throws:
  ArrayIndexOutOfBoundsException - if series is not within the specified range.
throws:
  ArrayIndexOutOfBoundsException - if item is not within the specified range.
See Also:   DefaultXYDataset.getX(int,int)



getY
public Number getY(int series, int item)(Code)
Returns the y-value for an item within a series.
Parameters:
  series - the series index (in the range 0 to getSeriesCount() - 1).
Parameters:
  item - the item index (in the range 0 to getItemCount(series)). The y-value.
throws:
  ArrayIndexOutOfBoundsException - if series is not within the specified range.
throws:
  ArrayIndexOutOfBoundsException - if item is not within the specified range.
See Also:   DefaultXYDataset.getX(int,int)



getYValue
public double getYValue(int series, int item)(Code)
Returns the y-value for an item within a series.
Parameters:
  series - the series index (in the range 0 to getSeriesCount() - 1).
Parameters:
  item - the item index (in the range 0 to getItemCount(series)). The y-value.
throws:
  ArrayIndexOutOfBoundsException - if series is not within the specified range.
throws:
  ArrayIndexOutOfBoundsException - if item is not within the specified range.
See Also:   DefaultXYDataset.getY(int,int)



hashCode
public int hashCode()(Code)
Returns a hash code for this instance. A hash code.



indexOf
public int indexOf(Comparable seriesKey)(Code)
Returns the index of the series with the specified key, or -1 if there is no such series in the dataset.
Parameters:
  seriesKey - the series key (null permitted). The index, or -1.



removeSeries
public void removeSeries(Comparable seriesKey)(Code)
Removes a series from the dataset, then sends a DatasetChangeEvent to all registered listeners.
Parameters:
  seriesKey - the series key (null not permitted).



Methods inherited from org.jfree.data.xy.AbstractXYDataset
public DomainOrder getDomainOrder()(Code)(Java Doc)
public double getXValue(int series, int item)(Code)(Java Doc)
public double getYValue(int series, int item)(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.