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.SimpleHistogramDataset |
A dataset used for creating simple histograms with custom defined bins.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new histogram dataset.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a bin to the dataset.
| |||||||||||
Adds an observation to the dataset (by incrementing the item count for
the appropriate bin).
| |||||||||||
Adds an observation to the dataset (by incrementing the item count for
the appropriate bin).
| |||||||||||
Adds a set of values to the dataset and sends a
DatasetChangeEvent to all registered listeners. | |||||||||||
Removes all current observation data and sends a
DatasetChangeEvent to all registered listeners. | |||||||||||
Returns a clone of the dataset.
| |||||||||||
Compares the dataset for equality with an arbitrary object.
| |||||||||||
Returns a flag that controls whether or not the bin count is divided by
the bin size in the
getXValue(int, int) method. | |||||||||||
Returns the order of the domain (or X) values returned by the dataset.
| |||||||||||
Returns the ending X value for the specified series and item.
| |||||||||||
Returns the end x-value (as a double primitive) for an item within a
series.
| |||||||||||
Returns the ending Y value for the specified series and item.
| |||||||||||
Returns the end y-value (as a double primitive) for an item within a
series.
| |||||||||||
Returns the number of items in a series.
| |||||||||||
Returns the number of series in the dataset (always 1 for this dataset).
| |||||||||||
Returns the key for a series.
| |||||||||||
Returns the starting X value for the specified series and item.
| |||||||||||
Returns the start x-value (as a double primitive) for an item within a
series.
| |||||||||||
Returns the starting Y value for the specified series and item.
| |||||||||||
Returns the start y-value (as a double primitive) for an item within a
series.
| |||||||||||
Returns the x-value for an item within a series.
| |||||||||||
Returns the x-value (as a double primitive) for an item within a series.
| |||||||||||
Returns the y-value for an item within a series.
| |||||||||||
Returns the y-value (as a double primitive) for an item within a series.
| |||||||||||
Removes all bins and sends a
DatasetChangeEvent to all
registered listeners. | |||||||||||
Sets the flag that controls whether or not the bin count is divided by
the bin size in the
getYValue(int, int) method, and sends a
DatasetChangeEvent to all registered listeners. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new histogram dataset. Note that the
adjustForBinSize
flag defaults to true
.
key | the series key (null not permitted).
|
---|
Adds a bin to the dataset. An exception is thrown if the bin overlaps with any existing bin in the dataset.
bin | the bin (null not permitted). |
---|
Adds an observation to the dataset (by incrementing the item count for the appropriate bin). A runtime exception is thrown if the value does not fit into any bin.
value | the value. |
---|---|
notify | send DatasetChangeEvent to listeners?
|
Adds an observation to the dataset (by incrementing the item count for the appropriate bin). A runtime exception is thrown if the value does not fit into any bin.
value | the value. |
---|
Adds a set of values to the dataset and sends a
DatasetChangeEvent
to all registered listeners.
values | the values (null not permitted). |
---|
Removes all current observation data and sends a
DatasetChangeEvent
to all registered listeners.
Returns a clone of the dataset.
CloneNotSupportedException | not thrown by this class, but maybe by subclasses (if any). |
---|
Compares the dataset for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Returns a flag that controls whether or not the bin count is divided by
the bin size in the getXValue(int, int)
method.
Returns the order of the domain (or X) values returned by the dataset.
null
).
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 end x-value (as a double primitive) for an item within a series.
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 end y-value (as a double primitive) for an item within a series.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
Returns the number of items in a series. Since this dataset only stores
a single series, the series
argument is ignored.
series | the series index (zero-based, ignored in this dataset). |
---|
Returns the number of series in the dataset (always 1 for this dataset).
Returns the key for a series. Since this dataset only stores a single
series, the series
argument is ignored.
series | the series (zero-based index, ignored in this dataset). |
---|
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 start x-value (as a double primitive) for an item within a series.
series | the series (zero-based index). |
---|---|
item | the item (zero-based index). |
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 start y-value (as a double primitive) for an item within a series.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
Returns the x-value for an item within a series. The x-values may or may not be returned in ascending order, that is up to the class implementing the interface.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
null
).
Returns the x-value (as a double primitive) for an item within a series.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
Returns the y-value for an item within a series.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
null
).
Returns the y-value (as a double primitive) for an item within a series.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
Removes all bins and sends a DatasetChangeEvent
to all
registered listeners.
Sets the flag that controls whether or not the bin count is divided by
the bin size in the getYValue(int, int)
method, and sends a
DatasetChangeEvent
to all registered listeners.
adjust | the flag. |
---|