|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.data.AbstractDataset
org.jfree.data.AbstractSeriesDataset
org.jfree.data.AbstractXYDataset
org.jfree.data.statistics.DefaultBoxAndWhiskerXYDataset
A simple implementation of the BoxAndWhiskerXYDataset.
| Constructor Summary | |
DefaultBoxAndWhiskerXYDataset(java.lang.String seriesName)
Constructs a new box and whisker dataset. |
|
| Method Summary | |
void |
add(java.util.Date date,
BoxAndWhiskerItem item)
Adds an item to the dataset. |
double |
getFaroutCoefficient()
Returns the value used as the farout coefficient. |
int |
getItemCount(int series)
Returns the number of items in the specified series. |
java.lang.Number |
getMaximumRangeValue()
Returns the maximum value in the dataset's range (or null if all the values in the range are null). |
java.lang.Number |
getMaxOutlier(int series,
int item)
Returns the maximum value which is not a farout, ie Q3 + (interquartile range * farout coefficient). |
java.lang.Number |
getMaxRegularValue(int series,
int item)
Returns the max-value for the specified series and item. |
java.lang.Number |
getMeanValue(int series,
int item)
Returns the mean for the specified series and item. |
java.lang.Number |
getMedianValue(int series,
int item)
Returns the median-value for the specified series and item. |
java.lang.Number |
getMinimumRangeValue()
Returns the minimum value in the dataset's range (or null if all the values in the range are null). |
java.lang.Number |
getMinOutlier(int series,
int item)
Returns the minimum value which is not a farout. |
java.lang.Number |
getMinRegularValue(int series,
int item)
Returns the min-value for the specified series and item. |
double |
getOutlierCoefficient()
Returns the value used as the outlier coefficient. |
java.util.List |
getOutliers(int series,
int item)
Returns an array of outliers for the specified series and item. |
java.lang.Number |
getQ1Value(int series,
int item)
Returns the Q1 median-value for the specified series and item. |
java.lang.Number |
getQ3Value(int series,
int item)
Returns the Q3 median-value for the specified series and item. |
int |
getSeriesCount()
Returns the number of series in the dataset. |
java.lang.String |
getSeriesName(int i)
Returns the name of the series stored in this dataset. |
Range |
getValueRange()
Returns the range of the values in this dataset's range. |
java.util.Date |
getXDate(int series,
int item)
Returns the x-value for one item in a series, as a Date. |
java.lang.Number |
getXValue(int series,
int item)
Returns the x-value for one item in a series. |
java.lang.Number |
getYValue(int series,
int item)
Returns the y-value for one item in a series. |
void |
setFaroutCoefficient(double faroutCoefficient)
Sets the value used as the farouts coefficient. |
void |
setOutlierCoefficient(double outlierCoefficient)
Sets the value used as the outlier coefficient |
| Methods inherited from class org.jfree.data.AbstractXYDataset |
getX, getY |
| Methods inherited from class org.jfree.data.AbstractSeriesDataset |
seriesChanged |
| Methods inherited from class org.jfree.data.AbstractDataset |
addChangeListener, clone, fireDatasetChanged, getGroup, notifyListeners, removeChangeListener, setGroup, validateObject |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jfree.data.XYDataset |
getX, getY |
| Methods inherited from interface org.jfree.data.Dataset |
addChangeListener, getGroup, removeChangeListener, setGroup |
| Constructor Detail |
public DefaultBoxAndWhiskerXYDataset(java.lang.String seriesName)
The current implementation allows only one series in the dataset. This may be extended in a future version.
seriesName - the name of the series.| Method Detail |
public void add(java.util.Date date,
BoxAndWhiskerItem item)
date - the date.item - the item.public java.lang.String getSeriesName(int i)
getSeriesName in interface SeriesDatasetgetSeriesName in class AbstractSeriesDataseti - the index of the series. Currently ignored.
public java.lang.Number getXValue(int series,
int item)
The value returned is a Long object generated from the underlying Date object.
getXValue in interface XYDatasetseries - the series (zero-based index).item - the item (zero-based index).
public java.util.Date getXDate(int series,
int item)
This method is provided for convenience only.
series - the series (zero-based index).item - the item (zero-based index).
public java.lang.Number getYValue(int series,
int item)
This method (from the XYDataset interface) is mapped to the getMaxNonOutlierValue(...) method.
getYValue in interface XYDatasetseries - the series (zero-based index).item - the item (zero-based index).
public java.lang.Number getMeanValue(int series,
int item)
getMeanValue in interface BoxAndWhiskerXYDatasetseries - the series (zero-based index).item - the item (zero-based index).
public java.lang.Number getMedianValue(int series,
int item)
getMedianValue in interface BoxAndWhiskerXYDatasetseries - the series (zero-based index).item - the item (zero-based index).
public java.lang.Number getQ1Value(int series,
int item)
getQ1Value in interface BoxAndWhiskerXYDatasetseries - the series (zero-based index).item - the item (zero-based index).
public java.lang.Number getQ3Value(int series,
int item)
getQ3Value in interface BoxAndWhiskerXYDatasetseries - the series (zero-based index).item - the item (zero-based index).
public java.lang.Number getMinRegularValue(int series,
int item)
getMinRegularValue in interface BoxAndWhiskerXYDatasetseries - the series (zero-based index).item - the item (zero-based index).
public java.lang.Number getMaxRegularValue(int series,
int item)
getMaxRegularValue in interface BoxAndWhiskerXYDatasetseries - the series (zero-based index).item - the item (zero-based index).
public java.lang.Number getMinOutlier(int series,
int item)
getMinOutlier in interface BoxAndWhiskerXYDatasetseries - the series (zero-based index).item - the item (zero-based index).
Number representing the maximum non-farout value.
public java.lang.Number getMaxOutlier(int series,
int item)
getMaxOutlier in interface BoxAndWhiskerXYDatasetseries - the series (zero-based index).item - the item (zero-based index).
Number representing the maximum non-farout value.
public java.util.List getOutliers(int series,
int item)
getOutliers in interface BoxAndWhiskerXYDatasetseries - the series (zero-based index).item - the item (zero-based index).
public double getOutlierCoefficient()
getOutlierCoefficient in interface BoxAndWhiskerXYDatasetdouble representing the value used to calculate outlierspublic double getFaroutCoefficient()
getFaroutCoefficient in interface BoxAndWhiskerXYDatasetdouble representing the value used to calculate faroutspublic int getSeriesCount()
This implementation only allows one series.
getSeriesCount in interface SeriesDatasetgetSeriesCount in class AbstractSeriesDatasetpublic int getItemCount(int series)
getItemCount in interface XYDatasetseries - the index (zero-based) of the series.
public void setOutlierCoefficient(double outlierCoefficient)
outlierCoefficient - being a double representing the value used to
calculate outlierspublic void setFaroutCoefficient(double faroutCoefficient)
faroutCoefficient - being a double representing the value used to
calculate faroutspublic java.lang.Number getMinimumRangeValue()
getMinimumRangeValue in interface RangeInfopublic java.lang.Number getMaximumRangeValue()
getMaximumRangeValue in interface RangeInfopublic Range getValueRange()
getValueRange in interface RangeInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||