Java Doc for DefaultTableXYDataset.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.AbstractIntervalXYDataset
      org.jfree.data.xy.DefaultTableXYDataset

DefaultTableXYDataset
public class DefaultTableXYDataset extends AbstractIntervalXYDataset implements TableXYDataset,IntervalXYDataset,DomainInfo(Code)
An XYDataset where every series shares the same x-values (required for generating stacked area charts).



Constructor Summary
public  DefaultTableXYDataset()
     Creates a new empty dataset.
public  DefaultTableXYDataset(boolean autoPrune)
     Creates a new empty dataset.

Method Summary
public  voidaddSeries(XYSeries series)
     Adds a series to the collection and sends a DatasetChangeEvent to all registered listeners.
protected  booleancanPrune(Number x)
     Returns true if all the y-values for the specified x-value are null and false otherwise.
Parameters:
  x - the x-value.
public  booleanequals(Object obj)
     Tests this collection for equality with an arbitrary object.
Parameters:
  obj - the object (null permitted).
public  RangegetDomainBounds(boolean includeInterval)
     Returns the range of the values in this dataset's domain.
Parameters:
  includeInterval - a flag that determines whether or not thex-interval is taken into account.
public  doublegetDomainLowerBound(boolean includeInterval)
     Returns the minimum x-value in the dataset.
Parameters:
  includeInterval - a flag that determines whether or not thex-interval is taken into account.
public  doublegetDomainUpperBound(boolean includeInterval)
     Returns the maximum x-value in the dataset.
Parameters:
  includeInterval - a flag that determines whether or not thex-interval is taken into account.
public  NumbergetEndX(int series, int item)
     Returns the ending X value for the specified series and item.
Parameters:
  series - the series (zero-based index).
Parameters:
  item - the item (zero-based index).
public  NumbergetEndY(int series, int item)
     Returns the ending Y value for the specified series and item.
Parameters:
  series - the series (zero-based index).
Parameters:
  item - the item (zero-based index).
public  doublegetIntervalPositionFactor()
     Returns the interval position factor.
public  doublegetIntervalWidth()
     returns the full interval width.
public  intgetItemCount()
     Returns the number of x values in the dataset.
public  intgetItemCount(int series)
     Returns the number of items in the specified series.
Parameters:
  series - the series (zero-based index).
public  XYSeriesgetSeries(int series)
     Returns a series.
Parameters:
  series - the series (zero-based index).
public  intgetSeriesCount()
     Returns the number of series in the collection.
public  ComparablegetSeriesKey(int series)
     Returns the key for a series.
Parameters:
  series - the series (zero-based index).
public  NumbergetStartX(int series, int item)
     Returns the starting X value for the specified series and item.
Parameters:
  series - the series (zero-based index).
Parameters:
  item - the item (zero-based index).
public  NumbergetStartY(int series, int item)
     Returns the starting Y value for the specified series and item.
Parameters:
  series - the series (zero-based index).
Parameters:
  item - the item (zero-based index).
public  NumbergetX(int series, int item)
     Returns the x-value for the specified series and item.
Parameters:
  series - the series (zero-based index).
Parameters:
  item - the item (zero-based index).
public  NumbergetY(int series, int index)
     Returns the y-value for the specified series and item.
Parameters:
  series - the series (zero-based index).
Parameters:
  index - the index of the item of interest (zero-based).
public  inthashCode()
     Returns a hash code.
public  booleanisAutoPrune()
     Returns the flag that controls whether or not x-values are removed from the dataset when the corresponding y-values are all null.
public  booleanisAutoWidth()
     Returns whether the interval width is automatically calculated or not.
public  voidprune()
     Removes all x-values for which all the y-values are null.
public  voidremoveAllSeries()
     Removes all the series from the collection and sends a DatasetChangeEvent to all registered listeners.
public  voidremoveAllValuesForX(Number x)
     Removes the items from all series for a given x value.
public  voidremoveSeries(XYSeries series)
     Removes a series from the collection and sends a DatasetChangeEvent to all registered listeners.
public  voidremoveSeries(int series)
     Removes a series from the collection and sends a DatasetChangeEvent to all registered listeners.
public  voidseriesChanged(SeriesChangeEvent event)
     This method receives notification when a series belonging to the dataset changes.
public  voidsetAutoWidth(boolean b)
     Sets the flag that indicates whether the interval width is automatically calculated or not.
public  voidsetIntervalPositionFactor(double d)
     Sets the interval position factor.
public  voidsetIntervalWidth(double d)
     Sets the interval width to a fixed value, and sends a DatasetChangeEvent to all registered listeners.
public  voidupdateXPoints()
     Updates the x-values for all the series in the dataset.


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



DefaultTableXYDataset
public DefaultTableXYDataset(boolean autoPrune)(Code)
Creates a new empty dataset.
Parameters:
  autoPrune - a flag that controls whether or not x-values are removed whenever the corresponding y-values are all null.




Method Detail
addSeries
public void addSeries(XYSeries series)(Code)
Adds a series to the collection and sends a DatasetChangeEvent to all registered listeners. The series should be configured to NOT allow duplicate x-values.
Parameters:
  series - the series (null not permitted).



canPrune
protected boolean canPrune(Number x)(Code)
Returns true if all the y-values for the specified x-value are null and false otherwise.
Parameters:
  x - the x-value. A boolean.



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



getDomainBounds
public Range getDomainBounds(boolean includeInterval)(Code)
Returns the range of the values in this dataset's domain.
Parameters:
  includeInterval - a flag that determines whether or not thex-interval is taken into account. The range.



getDomainLowerBound
public double getDomainLowerBound(boolean includeInterval)(Code)
Returns the minimum x-value in the dataset.
Parameters:
  includeInterval - a flag that determines whether or not thex-interval is taken into account. The minimum value.



getDomainUpperBound
public double getDomainUpperBound(boolean includeInterval)(Code)
Returns the maximum x-value in the dataset.
Parameters:
  includeInterval - a flag that determines whether or not thex-interval is taken into account. The maximum value.



getEndX
public Number getEndX(int series, int item)(Code)
Returns the ending X value for the specified series and item.
Parameters:
  series - the series (zero-based index).
Parameters:
  item - the item (zero-based index). The ending X value.



getEndY
public Number getEndY(int series, int item)(Code)
Returns the ending Y value for the specified series and item.
Parameters:
  series - the series (zero-based index).
Parameters:
  item - the item (zero-based index). The ending Y value.



getIntervalPositionFactor
public double getIntervalPositionFactor()(Code)
Returns the interval position factor. The interval position factor.



getIntervalWidth
public double getIntervalWidth()(Code)
returns the full interval width. The interval width to use.



getItemCount
public int getItemCount()(Code)
Returns the number of x values in the dataset. The number of x values in the dataset.



getItemCount
public int getItemCount(int series)(Code)
Returns the number of items in the specified series.
Parameters:
  series - the series (zero-based index). The number of items in the specified series.



getSeries
public XYSeries getSeries(int series)(Code)
Returns a series.
Parameters:
  series - the series (zero-based index). The series (never null).



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



getSeriesKey
public Comparable getSeriesKey(int series)(Code)
Returns the key for a series.
Parameters:
  series - the series (zero-based index). The key for a series.



getStartX
public Number getStartX(int series, int item)(Code)
Returns the starting X value for the specified series and item.
Parameters:
  series - the series (zero-based index).
Parameters:
  item - the item (zero-based index). The starting X value.



getStartY
public Number getStartY(int series, int item)(Code)
Returns the starting Y value for the specified series and item.
Parameters:
  series - the series (zero-based index).
Parameters:
  item - the item (zero-based index). The starting Y value.



getX
public Number getX(int series, int item)(Code)
Returns the x-value for the specified series and item.
Parameters:
  series - the series (zero-based index).
Parameters:
  item - the item (zero-based index). The x-value for the specified series and item.



getY
public Number getY(int series, int index)(Code)
Returns the y-value for the specified series and item.
Parameters:
  series - the series (zero-based index).
Parameters:
  index - the index of the item of interest (zero-based). The y-value for the specified series and item (possibly null).



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



isAutoPrune
public boolean isAutoPrune()(Code)
Returns the flag that controls whether or not x-values are removed from the dataset when the corresponding y-values are all null. A boolean.



isAutoWidth
public boolean isAutoWidth()(Code)
Returns whether the interval width is automatically calculated or not. A flag that determines whether or not the interval width is automatically calculated.



prune
public void prune()(Code)
Removes all x-values for which all the y-values are null.



removeAllSeries
public void removeAllSeries()(Code)
Removes all the series from the collection and sends a DatasetChangeEvent to all registered listeners.



removeAllValuesForX
public void removeAllValuesForX(Number x)(Code)
Removes the items from all series for a given x value.
Parameters:
  x - the x-value.



removeSeries
public void removeSeries(XYSeries series)(Code)
Removes a series from the collection and sends a DatasetChangeEvent to all registered listeners.
Parameters:
  series - the series (null not permitted).



removeSeries
public void removeSeries(int series)(Code)
Removes a series from the collection and sends a DatasetChangeEvent to all registered listeners.
Parameters:
  series - the series (zero based index).



seriesChanged
public void seriesChanged(SeriesChangeEvent event)(Code)
This method receives notification when a series belonging to the dataset changes. It responds by updating the x-points for the entire dataset and sending a DatasetChangeEvent to all registered listeners.
Parameters:
  event - information about the change.



setAutoWidth
public void setAutoWidth(boolean b)(Code)
Sets the flag that indicates whether the interval width is automatically calculated or not.
Parameters:
  b - a boolean.



setIntervalPositionFactor
public void setIntervalPositionFactor(double d)(Code)
Sets the interval position factor. Must be between 0.0 and 1.0 inclusive. If the factor is 0.5, the gap is in the middle of the x values. If it is lesser than 0.5, the gap is farther to the left and if greater than 0.5 it gets farther to the right.
Parameters:
  d - the new interval position factor.



setIntervalWidth
public void setIntervalWidth(double d)(Code)
Sets the interval width to a fixed value, and sends a DatasetChangeEvent to all registered listeners.
Parameters:
  d - the new interval width (must be > 0).



updateXPoints
public void updateXPoints()(Code)
Updates the x-values for all the series in the dataset.



Methods inherited from org.jfree.data.xy.AbstractIntervalXYDataset
public double getEndXValue(int series, int item)(Code)(Java Doc)
public double getEndYValue(int series, int item)(Code)(Java Doc)
public double getStartXValue(int series, int item)(Code)(Java Doc)
public double getStartYValue(int series, int item)(Code)(Java Doc)

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.