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


java.lang.Object
   org.jfree.data.general.Series
      org.jfree.data.time.TimePeriodValues

TimePeriodValues
public class TimePeriodValues extends Series implements Serializable(Code)
A structure containing zero, one or many TimePeriodValue instances. The time periods can overlap, and are maintained in the order that they are added to the collection.

This is similar to the TimeSeries class, except that the time periods can have irregular lengths.



Field Summary
final protected static  StringDEFAULT_DOMAIN_DESCRIPTION
     Default value for the domain description.
final protected static  StringDEFAULT_RANGE_DESCRIPTION
     Default value for the range description.
final static  longserialVersionUID
     For serialization.

Constructor Summary
public  TimePeriodValues(String name)
     Creates a new (empty) collection of time period values.
public  TimePeriodValues(String name, String domain, String range)
     Creates a new time series that contains no data.

Descriptions can be specified for the domain and range.


Method Summary
public  voidadd(TimePeriodValue item)
     Adds a data item to the series and sends a SeriesChangeEvent to all registered listeners.
public  voidadd(TimePeriod period, double value)
     Adds a new data item to the series and sends a SeriesChangeEvent to all registered listeners.
public  voidadd(TimePeriod period, Number value)
     Adds a new data item to the series and sends a SeriesChangeEvent to all registered listeners.
public  Objectclone()
     Returns a clone of the collection.
public  TimePeriodValuescreateCopy(int start, int end)
     Creates a new instance by copying a subset of the data in this collection.
Parameters:
  start - the index of the first item to copy.
Parameters:
  end - the index of the last item to copy.
public  voiddelete(int start, int end)
     Deletes data from start until end index (end inclusive) and sends a SeriesChangeEvent to all registered listeners.
public  booleanequals(Object obj)
     Tests the series for equality with another object.
Parameters:
  obj - the object (null permitted).
public  TimePeriodValuegetDataItem(int index)
     Returns one data item for the series.
Parameters:
  index - the item index (in the range 0 to getItemCount() - 1).
public  StringgetDomainDescription()
     Returns the domain description.
public  intgetItemCount()
     Returns the number of items in the series.
public  intgetMaxEndIndex()
     Returns the index of the time period with the maximum end milliseconds.
public  intgetMaxMiddleIndex()
     Returns the index of the time period with the maximum middle milliseconds.
public  intgetMaxStartIndex()
     Returns the index of the time period with the maximum start milliseconds.
public  intgetMinEndIndex()
     Returns the index of the time period with the minimum end milliseconds.
public  intgetMinMiddleIndex()
     Returns the index of the time period with the minimum middle milliseconds.
public  intgetMinStartIndex()
     Returns the index of the time period with the minimum start milliseconds.
public  StringgetRangeDescription()
     Returns the range description.
public  TimePeriodgetTimePeriod(int index)
     Returns the time period at the specified index.
Parameters:
  index - the item index (in the range 0 to getItemCount() - 1).
public  NumbergetValue(int index)
     Returns the value at the specified index.
Parameters:
  index - the item index (in the range 0 to getItemCount() - 1).
public  inthashCode()
     Returns a hash code value for the object.
public  voidsetDomainDescription(String description)
     Sets the domain description and fires a property change event (with the property name Domain if the description changes).
public  voidsetRangeDescription(String description)
     Sets the range description and fires a property change event with the name Range.
public  voidupdate(int index, Number value)
     Updates (changes) the value of a data item and sends a SeriesChangeEvent to all registered listeners.

Field Detail
DEFAULT_DOMAIN_DESCRIPTION
final protected static String DEFAULT_DOMAIN_DESCRIPTION(Code)
Default value for the domain description.



DEFAULT_RANGE_DESCRIPTION
final protected static String DEFAULT_RANGE_DESCRIPTION(Code)
Default value for the range description.



serialVersionUID
final static long serialVersionUID(Code)
For serialization.




Constructor Detail
TimePeriodValues
public TimePeriodValues(String name)(Code)
Creates a new (empty) collection of time period values.
Parameters:
  name - the name of the series (null not permitted).



TimePeriodValues
public TimePeriodValues(String name, String domain, String range)(Code)
Creates a new time series that contains no data.

Descriptions can be specified for the domain and range. One situation where this is helpful is when generating a chart for the time series - axis labels can be taken from the domain and range description.
Parameters:
  name - the name of the series (null not permitted).
Parameters:
  domain - the domain description.
Parameters:
  range - the range description.





Method Detail
add
public void add(TimePeriodValue item)(Code)
Adds a data item to the series and sends a SeriesChangeEvent to all registered listeners.
Parameters:
  item - the item (null not permitted).



add
public void add(TimePeriod period, double value)(Code)
Adds a new data item to the series and sends a SeriesChangeEvent to all registered listeners.
Parameters:
  period - the time period (null not permitted).
Parameters:
  value - the value.
See Also:   TimePeriodValues.add(TimePeriod,Number)



add
public void add(TimePeriod period, Number value)(Code)
Adds a new data item to the series and sends a SeriesChangeEvent to all registered listeners.
Parameters:
  period - the time period (null not permitted).
Parameters:
  value - the value (null permitted).



clone
public Object clone() throws CloneNotSupportedException(Code)
Returns a clone of the collection.

Notes:

  • no need to clone the domain and range descriptions, since String object is immutable;
  • we pass over to the more general method createCopy(start, end).
A clone of the time series.
throws:
  CloneNotSupportedException - if there is a cloning problem.



createCopy
public TimePeriodValues createCopy(int start, int end) throws CloneNotSupportedException(Code)
Creates a new instance by copying a subset of the data in this collection.
Parameters:
  start - the index of the first item to copy.
Parameters:
  end - the index of the last item to copy. A copy of a subset of the items.
throws:
  CloneNotSupportedException - if there is a cloning problem.



delete
public void delete(int start, int end)(Code)
Deletes data from start until end index (end inclusive) and sends a SeriesChangeEvent to all registered listeners.
Parameters:
  start - the index of the first period to delete.
Parameters:
  end - the index of the last period to delete.



equals
public boolean equals(Object obj)(Code)
Tests the series for equality with another object.
Parameters:
  obj - the object (null permitted). true or false.



getDataItem
public TimePeriodValue getDataItem(int index)(Code)
Returns one data item for the series.
Parameters:
  index - the item index (in the range 0 to getItemCount() - 1). One data item for the series.



getDomainDescription
public String getDomainDescription()(Code)
Returns the domain description. The domain description (possibly null).
See Also:   TimePeriodValues.getRangeDescription()
See Also:   TimePeriodValues.setDomainDescription(String)



getItemCount
public int getItemCount()(Code)
Returns the number of items in the series. The item count.



getMaxEndIndex
public int getMaxEndIndex()(Code)
Returns the index of the time period with the maximum end milliseconds. The index.



getMaxMiddleIndex
public int getMaxMiddleIndex()(Code)
Returns the index of the time period with the maximum middle milliseconds. The index.



getMaxStartIndex
public int getMaxStartIndex()(Code)
Returns the index of the time period with the maximum start milliseconds. The index.



getMinEndIndex
public int getMinEndIndex()(Code)
Returns the index of the time period with the minimum end milliseconds. The index.



getMinMiddleIndex
public int getMinMiddleIndex()(Code)
Returns the index of the time period with the minimum middle milliseconds. The index.



getMinStartIndex
public int getMinStartIndex()(Code)
Returns the index of the time period with the minimum start milliseconds. The index.



getRangeDescription
public String getRangeDescription()(Code)
Returns the range description. The range description (possibly null).
See Also:   TimePeriodValues.getDomainDescription()
See Also:   TimePeriodValues.setRangeDescription(String)



getTimePeriod
public TimePeriod getTimePeriod(int index)(Code)
Returns the time period at the specified index.
Parameters:
  index - the item index (in the range 0 to getItemCount() - 1). The time period at the specified index.
See Also:   TimePeriodValues.getDataItem(int)



getValue
public Number getValue(int index)(Code)
Returns the value at the specified index.
Parameters:
  index - the item index (in the range 0 to getItemCount() - 1). The value at the specified index (possibly null).
See Also:   TimePeriodValues.getDataItem(int)



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



setDomainDescription
public void setDomainDescription(String description)(Code)
Sets the domain description and fires a property change event (with the property name Domain if the description changes).
Parameters:
  description - the new description (null permitted).
See Also:   TimePeriodValues.getDomainDescription()



setRangeDescription
public void setRangeDescription(String description)(Code)
Sets the range description and fires a property change event with the name Range.
Parameters:
  description - the new description (null permitted).
See Also:   TimePeriodValues.getRangeDescription()



update
public void update(int index, Number value)(Code)
Updates (changes) the value of a data item and sends a SeriesChangeEvent to all registered listeners.
Parameters:
  index - the index of the data item to update.
Parameters:
  value - the new value (null not permitted).



Methods inherited from org.jfree.data.general.Series
public void addChangeListener(SeriesChangeListener listener)(Code)(Java Doc)
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void firePropertyChange(String property, Object oldValue, Object newValue)(Code)(Java Doc)
public void fireSeriesChanged()(Code)(Java Doc)
public String getDescription()(Code)(Java Doc)
public Comparable getKey()(Code)(Java Doc)
public boolean getNotify()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
protected void notifyListeners(SeriesChangeEvent event)(Code)(Java Doc)
public void removeChangeListener(SeriesChangeListener listener)(Code)(Java Doc)
public void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public void setDescription(String description)(Code)(Java Doc)
public void setKey(Comparable key)(Code)(Java Doc)
public void setNotify(boolean notify)(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.