org.jfree.data.statistics
public class SimpleHistogramDataset extends AbstractIntervalXYDataset implements IntervalXYDataset, Cloneable, PublicCloneable, Serializable
See Also: HistogramDataset
Constructor Summary | |
---|---|
SimpleHistogramDataset(Comparable key)
Creates a new histogram dataset. |
Method Summary | |
---|---|
void | addBin(SimpleHistogramBin bin)
Adds a bin to the dataset. |
void | addObservation(double value)
Adds an observation to the dataset (by incrementing the item count for
the appropriate bin). |
void | addObservation(double value, boolean notify)
Adds an observation to the dataset (by incrementing the item count for
the appropriate bin). |
void | addObservations(double[] values)
Adds a set of values to the dataset and sends a
DatasetChangeEvent to all registered listeners.
|
void | clearObservations()
Removes all current observation data and sends a
DatasetChangeEvent to all registered listeners.
|
Object | clone()
Returns a clone of the dataset.
|
boolean | equals(Object obj)
Compares the dataset for equality with an arbitrary object.
|
boolean | getAdjustForBinSize()
Returns a flag that controls whether or not the bin count is divided by
the bin size in the SimpleHistogramDataset method.
|
DomainOrder | getDomainOrder()
Returns the order of the domain (or X) values returned by the dataset.
|
Number | getEndX(int series, int item)
Returns the ending X value for the specified series and item.
|
double | getEndXValue(int series, int item)
Returns the end x-value (as a double primitive) for an item within a
series.
|
Number | getEndY(int series, int item)
Returns the ending Y value for the specified series and item.
|
double | getEndYValue(int series, int item)
Returns the end y-value (as a double primitive) for an item within a
series.
|
int | getItemCount(int series)
Returns the number of items in a series. |
int | getSeriesCount()
Returns the number of series in the dataset (always 1 for this dataset).
|
Comparable | getSeriesKey(int series)
Returns the key for a series. |
Number | getStartX(int series, int item)
Returns the starting X value for the specified series and item.
|
double | getStartXValue(int series, int item)
Returns the start x-value (as a double primitive) for an item within a
series.
|
Number | getStartY(int series, int item)
Returns the starting Y value for the specified series and item.
|
double | getStartYValue(int series, int item)
Returns the start y-value (as a double primitive) for an item within a
series.
|
Number | getX(int series, int item)
Returns the x-value for an item within a series. |
double | getXValue(int series, int item)
Returns the x-value (as a double primitive) for an item within a series.
|
Number | getY(int series, int item)
Returns the y-value for an item within a series.
|
double | getYValue(int series, int item)
Returns the y-value (as a double primitive) for an item within a series.
|
void | removeAllBins()
Removes all bins and sends a DatasetChangeEvent to all
registered listeners.
|
void | setAdjustForBinSize(boolean adjust)
Sets the flag that controls whether or not the bin count is divided by
the bin size in the SimpleHistogramDataset method, and sends a
DatasetChangeEvent to all registered listeners.
|
adjustForBinSize
flag defaults to true
.
Parameters: key the series key (null
not permitted).
Parameters: bin the bin (null
not permitted).
See Also: removeAllBins
Parameters: value the value.
Parameters: value the value. notify send DatasetChangeEvent to listeners?
Parameters: values the values (null
not permitted).
See Also: clearObservations
Since: 1.0.6
See Also: (double[])
removeAllBins
Returns: A clone.
Throws: CloneNotSupportedException not thrown by this class, but maybe by subclasses (if any).
Parameters: obj the object (null
permitted).
Returns: A boolean.
Returns: A boolean.
See Also: SimpleHistogramDataset
Returns: The order (never null
).
Parameters: series the series index (zero-based). item the item index (zero-based).
Returns: The value.
Parameters: series the series index (zero-based). item the item index (zero-based).
Returns: The end x-value.
Parameters: series the series index (zero-based). item the item index (zero-based).
Returns: The value.
Parameters: series the series index (zero-based). item the item index (zero-based).
Returns: The end y-value.
series
argument is ignored.
Parameters: series the series index (zero-based, ignored in this dataset).
Returns: The item count.
Returns: The series count.
series
argument is ignored.
Parameters: series the series (zero-based index, ignored in this dataset).
Returns: The key for the series.
Parameters: series the series index (zero-based). item the item index (zero-based).
Returns: The value.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The start x-value.
Parameters: series the series index (zero-based). item the item index (zero-based).
Returns: The value.
Parameters: series the series index (zero-based). item the item index (zero-based).
Returns: The start y-value.
Parameters: series the series index (zero-based). item the item index (zero-based).
Returns: The x-value (never null
).
Parameters: series the series index (zero-based). item the item index (zero-based).
Returns: The x-value.
Parameters: series the series index (zero-based). item the item index (zero-based).
Returns: The y-value (possibly null
).
Parameters: series the series index (zero-based). item the item index (zero-based).
Returns: The y-value.
See Also: getAdjustForBinSize
Since: 1.0.6
See Also: addBin
Parameters: adjust the flag.
See Also: getAdjustForBinSize