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


org.jfree.data.xy.AbstractIntervalXYDataset
   org.jfree.data.time.TimeSeriesCollection

TimeSeriesCollection
public class TimeSeriesCollection extends AbstractIntervalXYDataset implements XYDataset,IntervalXYDataset,DomainInfo,Serializable(Code)
A collection of time series objects. This class implements the org.jfree.data.xy.XYDataset interface, as well as the extended IntervalXYDataset interface. This makes it a convenient dataset for use with the org.jfree.chart.plot.XYPlot class.



Constructor Summary
public  TimeSeriesCollection()
     Constructs an empty dataset, tied to the default timezone.
public  TimeSeriesCollection(TimeZone zone)
     Constructs an empty dataset, tied to a specific timezone.
public  TimeSeriesCollection(TimeSeries series)
     Constructs a dataset containing a single series (more can be added), tied to the default timezone.
public  TimeSeriesCollection(TimeSeries series, TimeZone zone)
     Constructs a dataset containing a single series (more can be added), tied to a specific timezone.

Method Summary
public  voidaddSeries(TimeSeries series)
     Adds a series to the collection and sends a DatasetChangeEvent to all registered listeners.
public  booleanequals(Object obj)
     Tests this time series collection for equality with another object.
Parameters:
  obj - the other object.
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  booleangetDomainIsPointsInTime()
     Returns a flag that controls whether the domain is treated as 'points in time'.
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  DomainOrdergetDomainOrder()
     Returns the order of the domain values in this dataset.
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 synchronized  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 - te series (zero-based index).
Parameters:
  item - the item (zero-based index).
public  intgetItemCount(int series)
     Returns the number of items in the specified series.
public  ListgetSeries()
     Returns a list of all the series in the collection.
public  TimeSeriesgetSeries(int series)
     Returns a series.
Parameters:
  series - the index of the series (zero-based).
public  TimeSeriesgetSeries(String key)
     Returns the series with the specified key, or null if there is no such series.
Parameters:
  key - the series key (null permitted).
public  intgetSeriesCount()
     Returns the number of series in the collection.
public  ComparablegetSeriesKey(int series)
     Returns the key for a series.
public synchronized  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  int[]getSurroundingItems(int series, long milliseconds)
     Returns the indices of the two data items surrounding a particular millisecond value.
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).
protected synchronized  longgetX(RegularTimePeriod period)
     Returns the x-value for a time period.
Parameters:
  period - the time period (null not permitted).
public  TimePeriodAnchorgetXPosition()
     Returns the position within each time period that is used for the X value when the collection is used as an org.jfree.data.xy.XYDataset .
public  doublegetXValue(int series, int item)
     Returns the x-value (as a double primitive) for an item within a series.
Parameters:
  series - the series (zero-based index).
Parameters:
  item - the item (zero-based index).
public  NumbergetY(int series, int item)
     Returns the y-value for the specified series and item.
Parameters:
  series - the series (zero-based index).
Parameters:
  item - the item (zero-based index).
public  inthashCode()
     Returns a hash code value for the object.
public  intindexOf(TimeSeries series)
     Returns the index of the specified series, or -1 if that series is not present in the dataset.
Parameters:
  series - the series (null not permitted).
public  voidremoveAllSeries()
     Removes all the series from the collection and sends a DatasetChangeEvent to all registered listeners.
public  voidremoveSeries(TimeSeries series)
     Removes the specified series from the collection and sends a DatasetChangeEvent to all registered listeners.
public  voidremoveSeries(int index)
     Removes a series from the collection.
public  voidsetDomainIsPointsInTime(boolean flag)
     Sets a flag that controls whether the domain is treated as 'points in time', or time periods.
public  voidsetXPosition(TimePeriodAnchor anchor)
     Sets the position within each time period that is used for the X values when the collection is used as an XYDataset , then sends a DatasetChangeEvent is sent to all registered listeners.


Constructor Detail
TimeSeriesCollection
public TimeSeriesCollection()(Code)
Constructs an empty dataset, tied to the default timezone.



TimeSeriesCollection
public TimeSeriesCollection(TimeZone zone)(Code)
Constructs an empty dataset, tied to a specific timezone.
Parameters:
  zone - the timezone (null permitted, will use TimeZone.getDefault() in that case).



TimeSeriesCollection
public TimeSeriesCollection(TimeSeries series)(Code)
Constructs a dataset containing a single series (more can be added), tied to the default timezone.
Parameters:
  series - the series (null permitted).



TimeSeriesCollection
public TimeSeriesCollection(TimeSeries series, TimeZone zone)(Code)
Constructs a dataset containing a single series (more can be added), tied to a specific timezone.
Parameters:
  series - a series to add to the collection (null permitted).
Parameters:
  zone - the timezone (null permitted, will use TimeZone.getDefault() in that case).




Method Detail
addSeries
public void addSeries(TimeSeries series)(Code)
Adds a series to the collection and sends a DatasetChangeEvent to all registered listeners.
Parameters:
  series - the series (null not permitted).



equals
public boolean equals(Object obj)(Code)
Tests this time series collection for equality with another object.
Parameters:
  obj - the other object. 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.



getDomainIsPointsInTime
public boolean getDomainIsPointsInTime()(Code)
Returns a flag that controls whether the domain is treated as 'points in time'. This flag is used when determining the max and min values for the domain. If true, then only the x-values are considered for the max and min values. If false, then the start and end x-values will also be taken into consideration. The flag.



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.



getDomainOrder
public DomainOrder getDomainOrder()(Code)
Returns the order of the domain values in this dataset. DomainOrder.ASCENDING



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 synchronized 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 value.



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



getItemCount
public int getItemCount(int series)(Code)
Returns the number of items in the specified series. This method is provided for convenience.
Parameters:
  series - the series index (zero-based). The item count.



getSeries
public List getSeries()(Code)
Returns a list of all the series in the collection. The list (which is unmodifiable).



getSeries
public TimeSeries getSeries(int series)(Code)
Returns a series.
Parameters:
  series - the index of the series (zero-based). The series.



getSeries
public TimeSeries getSeries(String key)(Code)
Returns the series with the specified key, or null if there is no such series.
Parameters:
  key - the series key (null permitted). The series with the given key.



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 index of the series (zero-based). The key for a series.



getStartX
public synchronized 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 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 value (possibly null).



getSurroundingItems
public int[] getSurroundingItems(int series, long milliseconds)(Code)
Returns the indices of the two data items surrounding a particular millisecond value.
Parameters:
  series - the series index.
Parameters:
  milliseconds - the time. An array containing the (two) indices of the items surrounding the time.



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 value.



getX
protected synchronized long getX(RegularTimePeriod period)(Code)
Returns the x-value for a time period.
Parameters:
  period - the time period (null not permitted). The x-value.



getXPosition
public TimePeriodAnchor getXPosition()(Code)
Returns the position within each time period that is used for the X value when the collection is used as an org.jfree.data.xy.XYDataset . The anchor position (never null).



getXValue
public double getXValue(int series, int item)(Code)
Returns the x-value (as a double primitive) for an item within a series.
Parameters:
  series - the series (zero-based index).
Parameters:
  item - the item (zero-based index). The x-value.



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



hashCode
public int hashCode()(Code)
Returns a hash code value for the object. The hashcode



indexOf
public int indexOf(TimeSeries series)(Code)
Returns the index of the specified series, or -1 if that series is not present in the dataset.
Parameters:
  series - the series (null not permitted). The series index.
since:
   1.0.6



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



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



removeSeries
public void removeSeries(int index)(Code)
Removes a series from the collection.
Parameters:
  index - the series index (zero-based).



setDomainIsPointsInTime
public void setDomainIsPointsInTime(boolean flag)(Code)
Sets a flag that controls whether the domain is treated as 'points in time', or time periods.
Parameters:
  flag - the flag.TimeSeriesCollection.getDomainBounds(boolean)



setXPosition
public void setXPosition(TimePeriodAnchor anchor)(Code)
Sets the position within each time period that is used for the X values when the collection is used as an XYDataset , then sends a DatasetChangeEvent is sent to all registered listeners.
Parameters:
  anchor - the anchor position (null not permitted).



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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.