|
||||||||||
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.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 |
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 |
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. |
Range |
getRangeBounds(boolean includeInterval)
Returns the range of the values in this dataset's range. |
double |
getRangeLowerBound(boolean includeInterval)
Returns the minimum y-value in the dataset. |
double |
getRangeUpperBound(boolean includeInterval)
Returns the maximum y-value in the dataset. |
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. |
java.lang.Number |
getX(int series,
int item)
Returns the x-value for one item in a series. |
java.util.Date |
getXDate(int series,
int item)
Returns the x-value for one item in a series, as a Date. |
java.lang.Number |
getY(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.xy.AbstractXYDataset |
getDomainOrder, getXValue, getYValue |
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset |
seriesChanged |
Methods inherited from class org.jfree.data.general.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.xy.XYDataset |
getDomainOrder, getXValue, getYValue |
Methods inherited from interface org.jfree.data.general.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 SeriesDataset
getSeriesName
in class AbstractSeriesDataset
i
- the index of the series. Currently ignored.
public java.lang.Number getX(int series, int item)
The value returned is a Long object generated from the underlying Date object.
getX
in interface XYDataset
series
- 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 getY(int series, int item)
This method (from the XYDataset interface) is mapped to the getMaxNonOutlierValue(...) method.
getY
in interface XYDataset
series
- the series (zero-based index).item
- the item (zero-based index).
public java.lang.Number getMeanValue(int series, int item)
getMeanValue
in interface BoxAndWhiskerXYDataset
series
- the series (zero-based index).item
- the item (zero-based index).
public java.lang.Number getMedianValue(int series, int item)
getMedianValue
in interface BoxAndWhiskerXYDataset
series
- the series (zero-based index).item
- the item (zero-based index).
public java.lang.Number getQ1Value(int series, int item)
getQ1Value
in interface BoxAndWhiskerXYDataset
series
- the series (zero-based index).item
- the item (zero-based index).
public java.lang.Number getQ3Value(int series, int item)
getQ3Value
in interface BoxAndWhiskerXYDataset
series
- the series (zero-based index).item
- the item (zero-based index).
public java.lang.Number getMinRegularValue(int series, int item)
getMinRegularValue
in interface BoxAndWhiskerXYDataset
series
- the series (zero-based index).item
- the item (zero-based index).
public java.lang.Number getMaxRegularValue(int series, int item)
getMaxRegularValue
in interface BoxAndWhiskerXYDataset
series
- the series (zero-based index).item
- the item (zero-based index).
public java.lang.Number getMinOutlier(int series, int item)
getMinOutlier
in interface BoxAndWhiskerXYDataset
series
- 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 BoxAndWhiskerXYDataset
series
- 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 BoxAndWhiskerXYDataset
series
- the series (zero-based index).item
- the item (zero-based index).
public double getOutlierCoefficient()
getOutlierCoefficient
in interface BoxAndWhiskerXYDataset
double
representing the value used to calculate outlierspublic double getFaroutCoefficient()
getFaroutCoefficient
in interface BoxAndWhiskerXYDataset
double
representing the value used to calculate faroutspublic int getSeriesCount()
This implementation only allows one series.
getSeriesCount
in interface SeriesDataset
getSeriesCount
in class AbstractSeriesDataset
public int getItemCount(int series)
getItemCount
in interface XYDataset
series
- 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 double getRangeLowerBound(boolean includeInterval)
getRangeLowerBound
in interface RangeInfo
includeInterval
- a flag that determines whether or not the
y-interval is taken into account.
public double getRangeUpperBound(boolean includeInterval)
getRangeUpperBound
in interface RangeInfo
includeInterval
- a flag that determines whether or not the
y-interval is taken into account.
public Range getRangeBounds(boolean includeInterval)
getRangeBounds
in interface RangeInfo
includeInterval
- a flag that determines whether or not the
y-interval is taken into account.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |