public class BoxSeriesCollection extends SSJCategorySeriesCollection
CategoryChart.
It also provides complementary tools to draw
box-and-whisker plots; for example, one may
add or remove plots series and modify plot style. This class is linked with
the JFreeChart DefaultBoxAndWhiskerCategoryDataset class to store
data plots, and linked with the JFreeChart
BoxAndWhiskerRenderer to render the plots.| Constructor and Description |
|---|
BoxSeriesCollection()
Creates a new BoxSeriesCollection instance with an empty dataset.
|
BoxSeriesCollection(DefaultBoxAndWhiskerCategoryDataset data)
Creates a new BoxSeriesCollection instance with default parameters and given data series.
|
BoxSeriesCollection(double[]... data)
Creates a new BoxSeriesCollection instance with default
parameters and given data series.
|
BoxSeriesCollection(double[] data,
int numPoints)
Creates a new BoxSeriesCollection instance with default parameters
and input series data.
|
| Modifier and Type | Method and Description |
|---|---|
int |
add(double[] data)
Adds a data series into the series collection.
|
int |
add(double[] data,
int numPoints)
Adds a data series into the series collection.
|
java.lang.String |
getName(int series)
Gets the current name of the selected series.
|
double[] |
getRangeBounds()
Returns the range (y-coordinates) min and max values.
|
java.lang.String |
toLatex(double YScale,
double YShift,
double ymin,
double ymax)
NOT IMPLEMENTED: To do.
|
java.lang.String |
toString()
Returns in a String all data contained in the current object.
|
getCategory, getColor, getRenderer, getSeriesCollection, getValue, setColor, setRendererpublic BoxSeriesCollection()
public BoxSeriesCollection(double[] data,
int numPoints)
data - point sets.numPoints - Number of pointspublic BoxSeriesCollection(double[]... data)
data - series of point sets.public BoxSeriesCollection(DefaultBoxAndWhiskerCategoryDataset data)
data - series of point sets.public int add(double[] data)
data - point sets.public int add(double[] data,
int numPoints)
data - Point setnumPoints - Number of points to addpublic java.lang.String getName(int series)
series - series index.public double[] getRangeBounds()
getRangeBounds in class SSJCategorySeriesCollectionpublic java.lang.String toString()
toString in class SSJCategorySeriesCollectionString.public java.lang.String toLatex(double YScale,
double YShift,
double ymin,
double ymax)
toLatex in class SSJCategorySeriesCollectionymin - ymax - YScale - Range original data scale.YShift - Range original data shift value.To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.