java.lang.Object | ||
↳ | org.jfree.data.general.Series | |
↳ | org.jfree.data.time.TimePeriodValues |
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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | DEFAULT_DOMAIN_DESCRIPTION | Default value for the domain description. | |||||||||
String | DEFAULT_RANGE_DESCRIPTION | Default value for the range description. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new (empty) collection of time period values.
| |||||||||||
Creates a new time series that contains no data.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a new data item to the series and sends a
SeriesChangeEvent
to all registered listeners. | |||||||||||
Adds a new data item to the series and sends a
SeriesChangeEvent
to all registered listeners. | |||||||||||
Adds a data item to the series and sends a
SeriesChangeEvent to
all registered listeners. | |||||||||||
Returns a clone of the collection.
| |||||||||||
Creates a new instance by copying a subset of the data in this
collection.
| |||||||||||
Deletes data from start until end index (end inclusive) and sends a
SeriesChangeEvent to all registered listeners. | |||||||||||
Tests the series for equality with another object.
| |||||||||||
Returns one data item for the series.
| |||||||||||
Returns the domain description.
| |||||||||||
Returns the number of items in the series.
| |||||||||||
Returns the index of the time period with the maximum end milliseconds.
| |||||||||||
Returns the index of the time period with the maximum middle
milliseconds.
| |||||||||||
Returns the index of the time period with the maximum start milliseconds.
| |||||||||||
Returns the index of the time period with the minimum end milliseconds.
| |||||||||||
Returns the index of the time period with the minimum middle
milliseconds.
| |||||||||||
Returns the index of the time period with the minimum start milliseconds.
| |||||||||||
Returns the range description.
| |||||||||||
Returns the time period at the specified index.
| |||||||||||
Returns the value at the specified index.
| |||||||||||
Returns a hash code value for the object.
| |||||||||||
Sets the domain description and fires a property change event (with the
property name
Domain if the description changes). | |||||||||||
Sets the range description and fires a property change event with the
name
Range . | |||||||||||
Updates (changes) the value of a data item and sends a
SeriesChangeEvent to all registered listeners. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Default value for the domain description.
Default value for the range description.
Creates a new (empty) collection of time period values.
name | the name of the series (null not permitted).
|
---|
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.
name | the name of the series (null not permitted). |
---|---|
domain | the domain description. |
range | the range description. |
Adds a new data item to the series and sends a SeriesChangeEvent
to all registered listeners.
period | the time period (null not permitted). |
---|---|
value | the value (null permitted).
|
Adds a new data item to the series and sends a SeriesChangeEvent
to all registered listeners.
period | the time period (null not permitted). |
---|---|
value | the value. |
Adds a data item to the series and sends a SeriesChangeEvent
to
all registered listeners.
item | the item (null not permitted).
|
---|
Returns a clone of the collection.
Notes:
CloneNotSupportedException | if there is a cloning problem. |
---|
Creates a new instance by copying a subset of the data in this collection.
start | the index of the first item to copy. |
---|---|
end | the index of the last item to copy. |
CloneNotSupportedException | if there is a cloning problem. |
---|
Deletes data from start until end index (end inclusive) and sends a
SeriesChangeEvent
to all registered listeners.
start | the index of the first period to delete. |
---|---|
end | the index of the last period to delete. |
Tests the series for equality with another object.
obj | the object (null permitted). |
---|
true
or false
.
Returns one data item for the series.
index | the item index (in the range 0 to
getItemCount() - 1 ). |
---|
Returns the domain description.
null
).Returns the number of items in the series.
Returns the index of the time period with the maximum end milliseconds.
Returns the index of the time period with the maximum middle milliseconds.
Returns the index of the time period with the maximum start milliseconds.
Returns the index of the time period with the minimum end milliseconds.
Returns the index of the time period with the minimum middle milliseconds.
Returns the index of the time period with the minimum start milliseconds.
Returns the range description.
null
).Returns the time period at the specified index.
index | the item index (in the range 0 to
getItemCount() - 1 ). |
---|
Returns the value at the specified index.
index | the item index (in the range 0 to
getItemCount() - 1 ). |
---|
null
).Returns a hash code value for the object.
Sets the domain description and fires a property change event (with the
property name Domain
if the description changes).
description | the new description (null permitted). |
---|
Sets the range description and fires a property change event with the
name Range
.
description | the new description (null permitted). |
---|
Updates (changes) the value of a data item and sends a
SeriesChangeEvent
to all registered listeners.
index | the index of the data item to update. |
---|---|
value | the new value (null not permitted).
|