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.statistics.HistogramDataset |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new (empty) dataset with a default type of
HistogramType .FREQUENCY. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a series to the dataset, using the specified number of bins.
| |||||||||||
Adds a series to the dataset.
| |||||||||||
Returns a clone of the dataset.
| |||||||||||
Tests this dataset for equality with an arbitrary object.
| |||||||||||
Returns the end value for a bin.
| |||||||||||
Returns the end y-value for a bin (which is the same as the y-value,
this method exists only to support the general form of the
IntervalXYDataset interface). | |||||||||||
Returns the number of data items for a series.
| |||||||||||
Returns the number of series in the dataset.
| |||||||||||
Returns the key for a series.
| |||||||||||
Returns the start value for a bin.
| |||||||||||
Returns the start y-value for a bin (which is the same as the y-value,
this method exists only to support the general form of the
IntervalXYDataset interface). | |||||||||||
Returns the histogram type.
| |||||||||||
Returns the X value for a bin.
| |||||||||||
Returns the y-value for a bin (calculated to take into account the
histogram type).
| |||||||||||
Sets the histogram type and sends a
DatasetChangeEvent to all
registered listeners. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new (empty) dataset with a default type of
HistogramType
.FREQUENCY.
Adds a series to the dataset, using the specified number of bins.
key | the series key (null not permitted). |
---|---|
values | the values (null not permitted). |
bins | the number of bins (must be at least 1). |
Adds a series to the dataset. Any data value less than minimum will be assigned to the first bin, and any data value greater than maximum will be assigned to the last bin. Values falling on the boundary of adjacent bins will be assigned to the higher indexed bin.
key | the series key (null not permitted). |
---|---|
values | the raw observations. |
bins | the number of bins (must be at least 1). |
minimum | the lower bound of the bin range. |
maximum | the upper bound of the bin range. |
Returns a clone of the dataset.
CloneNotSupportedException | if the object cannot be cloned. |
---|
Tests this dataset for equality with an arbitrary object.
obj | the object to test against (null permitted). |
---|
Returns the end value for a bin.
series | the series index (in the range 0 to
getSeriesCount() - 1 ). |
---|---|
item | the item index (zero based). |
IndexOutOfBoundsException | if series is outside the
specified range.
|
---|
Returns the end y-value for a bin (which is the same as the y-value,
this method exists only to support the general form of the
IntervalXYDataset
interface).
series | the series index (in the range 0 to
getSeriesCount() - 1 ). |
---|---|
item | the item index (zero based). |
IndexOutOfBoundsException | if series is outside the
specified range.
|
---|
Returns the number of data items for a series.
series | the series index (in the range 0 to
getSeriesCount() - 1 ). |
---|
IndexOutOfBoundsException | if series is outside the
specified range.
|
---|
Returns the number of series in the dataset.
Returns the key for a series.
series | the series index (in the range 0 to
getSeriesCount() - 1 ). |
---|
IndexOutOfBoundsException | if series is outside the
specified range.
|
---|
Returns the start value for a bin.
series | the series index (in the range 0 to
getSeriesCount() - 1 ). |
---|---|
item | the item index (zero based). |
IndexOutOfBoundsException | if series is outside the
specified range.
|
---|
Returns the start y-value for a bin (which is the same as the y-value,
this method exists only to support the general form of the
IntervalXYDataset
interface).
series | the series index (in the range 0 to
getSeriesCount() - 1 ). |
---|---|
item | the item index (zero based). |
IndexOutOfBoundsException | if series is outside the
specified range.
|
---|
Returns the X value for a bin. This value won't be used for plotting histograms, since the renderer will ignore it. But other renderers can use it (for example, you could use the dataset to create a line chart).
series | the series index (in the range 0 to
getSeriesCount() - 1 ). |
---|---|
item | the item index (zero based). |
IndexOutOfBoundsException | if series is outside the
specified range.
|
---|
Returns the y-value for a bin (calculated to take into account the histogram type).
series | the series index (in the range 0 to
getSeriesCount() - 1 ). |
---|---|
item | the item index (zero based). |
IndexOutOfBoundsException | if series is outside the
specified range.
|
---|
Sets the histogram type and sends a DatasetChangeEvent
to all
registered listeners.
type | the type (null not permitted).
|
---|