|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.
Constructor Summary | |
SimpleHistogramDataset(java.lang.String name)
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. |
java.lang.Object |
clone()
Returns a clone of the dataset. |
boolean |
equals(java.lang.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 getXValue(int, int) method. |
DomainOrder |
getDomainOrder()
Returns the order of the domain (or X) values returned by the dataset. |
java.lang.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. |
java.lang.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). |
java.lang.String |
getSeriesName(int series)
Returns the name of a series. |
java.lang.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. |
java.lang.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. |
java.lang.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. |
java.lang.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 |
setAdjustForBinSize(boolean adjust)
Sets the flag that controls whether or not the bin count is divided by the bin size in the getXValue(int, int) method. |
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset |
seriesChanged |
Methods inherited from class org.jfree.data.general.AbstractDataset |
addChangeListener, fireDatasetChanged, getGroup, notifyListeners, removeChangeListener, setGroup, validateObject |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.data.general.Dataset |
addChangeListener, getGroup, removeChangeListener, setGroup |
Constructor Detail |
public SimpleHistogramDataset(java.lang.String name)
name
- the series name.Method Detail |
public boolean getAdjustForBinSize()
getXValue(int, int)
method.
public void setAdjustForBinSize(boolean adjust)
getXValue(int, int)
method.
adjust
- the flag.public int getSeriesCount()
getSeriesCount
in interface SeriesDataset
getSeriesCount
in class AbstractSeriesDataset
public java.lang.String getSeriesName(int series)
getSeriesName
in interface SeriesDataset
getSeriesName
in class AbstractSeriesDataset
series
- the series (zero-based index, ignored in this dataset).
public DomainOrder getDomainOrder()
getDomainOrder
in interface XYDataset
getDomainOrder
in class AbstractXYDataset
null
).public int getItemCount(int series)
getItemCount
in interface XYDataset
series
- the series index (zero-based, ignored in this dataset).
public void addBin(SimpleHistogramBin bin)
bin
- the bin (null
not permitted).public void addObservation(double value)
value
- the value.public void addObservation(double value, boolean notify)
value
- the value.notify
- send DatasetChangeEvent
to listeners?public void addObservations(double[] values)
values
- the values.public java.lang.Number getX(int series, int item)
getX
in interface XYDataset
series
- the series index (zero-based).item
- the item index (zero-based).
null
).public double getXValue(int series, int item)
getXValue
in interface XYDataset
getXValue
in class AbstractXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).
public java.lang.Number getY(int series, int item)
getY
in interface XYDataset
series
- the series index (zero-based).item
- the item index (zero-based).
null
).public double getYValue(int series, int item)
getYValue
in interface XYDataset
getYValue
in class AbstractXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).
public java.lang.Number getStartX(int series, int item)
getStartX
in interface IntervalXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).
public double getStartXValue(int series, int item)
getStartXValue
in interface IntervalXYDataset
getStartXValue
in class AbstractIntervalXYDataset
series
- the series (zero-based index).item
- the item (zero-based index).
public java.lang.Number getEndX(int series, int item)
getEndX
in interface IntervalXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).
public double getEndXValue(int series, int item)
getEndXValue
in interface IntervalXYDataset
getEndXValue
in class AbstractIntervalXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).
public java.lang.Number getStartY(int series, int item)
getStartY
in interface IntervalXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).
public double getStartYValue(int series, int item)
getStartYValue
in interface IntervalXYDataset
getStartYValue
in class AbstractIntervalXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).
public java.lang.Number getEndY(int series, int item)
getEndY
in interface IntervalXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).
public double getEndYValue(int series, int item)
getEndYValue
in interface IntervalXYDataset
getEndYValue
in class AbstractIntervalXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).
public boolean equals(java.lang.Object obj)
obj
- the object (null
permitted).
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractDataset
java.lang.CloneNotSupportedException
- not thrown by this class, but maybe by
subclasses (if any).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |