java.lang.Object | |||||
↳ | org.jfree.data.general.AbstractDataset | ||||
↳ | org.jfree.data.general.AbstractSeriesDataset | ||||
↳ | org.jfree.data.xy.AbstractXYDataset | ||||
↳ | org.jfree.data.xy.AbstractIntervalXYDataset | ||||
↳ | org.jfree.data.xy.CategoryTableXYDataset |
An implementation variant of the TableXYDataset
where every series
shares the same x-values (required for generating stacked area charts).
This implementation uses a DefaultKeyedValues2D
Object as backend
implementation and is hence more "category oriented" than the DefaultTableXYDataset
implementation.
This implementation provides no means to remove data items yet. This is due to the lack of such facility in the DefaultKeyedValues2D class.
This class also implements the IntervalXYDataset
interface, but this
implementation is provisional.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new empty CategoryTableXYDataset.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a data item to this dataset and, if requested, sends a
DatasetChangeEvent to all registered listeners. | |||||||||||
Adds a data item to this dataset and sends a
DatasetChangeEvent
to all registered listeners. | |||||||||||
Returns an independent copy of this dataset.
| |||||||||||
Tests this dataset for equality with an arbitrary object.
| |||||||||||
Returns the range of the values in this dataset's domain.
| |||||||||||
Returns the minimum x-value in the dataset.
| |||||||||||
Returns the maximum x-value in the dataset.
| |||||||||||
Returns the ending X value for the specified series and item.
| |||||||||||
Returns the ending Y value for the specified series and item.
| |||||||||||
Returns the interval position factor.
| |||||||||||
Returns the full interval width.
| |||||||||||
Returns the number of items in the specified series.
| |||||||||||
Returns the number of x values in the dataset.
| |||||||||||
Returns the number of series in the collection.
| |||||||||||
Returns the key for a series.
| |||||||||||
Returns the starting X value for the specified series and item.
| |||||||||||
Returns the starting Y value for the specified series and item.
| |||||||||||
Returns the x-value for the specified series and item.
| |||||||||||
Returns the y-value for the specified series and item.
| |||||||||||
Returns whether the interval width is automatically calculated or not.
| |||||||||||
Removes an item from the dataset.
| |||||||||||
Removes a value from the dataset.
| |||||||||||
Sets the flag that indicates whether the interval width is automatically
calculated or not.
| |||||||||||
Sets the interval position factor.
| |||||||||||
Sets the interval width to a fixed value, and sends a
DatasetChangeEvent to all registered listeners. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new empty CategoryTableXYDataset.
Adds a data item to this dataset and, if requested, sends a
DatasetChangeEvent
to all registered listeners.
x | the x value. |
---|---|
y | the y value. |
seriesName | the name of the series to add the data item. |
notify | notify listeners? |
Adds a data item to this dataset and sends a DatasetChangeEvent
to all registered listeners.
x | the x value. |
---|---|
y | the y value. |
seriesName | the name of the series to add the data item. |
Returns an independent copy of this dataset.
CloneNotSupportedException | if there is some reason that cloning cannot be performed. |
---|
Tests this dataset for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Returns the range of the values in this dataset's domain.
includeInterval | a flag that determines whether or not the x-interval is taken into account. |
---|
Returns the minimum x-value in the dataset.
includeInterval | a flag that determines whether or not the x-interval is taken into account. |
---|
Returns the maximum x-value in the dataset.
includeInterval | a flag that determines whether or not the x-interval is taken into account. |
---|
Returns the ending X value for the specified series and item.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
Returns the ending Y value for the specified series and item.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
Returns the interval position factor.
Returns the full interval width.
Returns the number of items in the specified series.
Returns the same as getItemCount()
.
series | the series index (zero-based). |
---|
Returns the number of x values in the dataset.
Returns the number of series in the collection.
Returns the key for a series.
series | the series index (zero-based). |
---|
Returns the starting X value for the specified series and item.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
Returns the starting Y value for the specified series and item.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
Returns the x-value for the specified series and item.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
Returns the y-value for the specified series and item.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
null
).
Returns whether the interval width is automatically calculated or not.
Removes an item from the dataset.
x | the x-value. |
---|---|
seriesName | the series name. |
notify | notify listeners? |
Removes a value from the dataset.
x | the x-value. |
---|---|
seriesName | the series name. |
Sets the flag that indicates whether the interval width is automatically calculated or not.
b | the flag. |
---|
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.
d | the new interval position factor. |
---|
Sets the interval width to a fixed value, and sends a
DatasetChangeEvent
to all registered listeners.
d | the new interval width (must be > 0). |
---|