|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.charts.SSJCategorySeriesCollection umontreal.iro.lecuyer.charts.BoxSeriesCollection
public class BoxSeriesCollection
This class stores data used in a
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
String |
getName(int series)
Gets the current name of the selected series. |
double[] |
getRangeBounds()
Returns the range (y-coordinates) min and max values. |
String |
toLatex(double YScale,
double YShift,
double ymin,
double ymax)
NOT IMPLEMENTED: To do. |
String |
toString()
Returns in a String all data contained in the current object. |
Methods inherited from class umontreal.iro.lecuyer.charts.SSJCategorySeriesCollection |
---|
getCategory, getColor, getRenderer, getSeriesCollection, getValue, setColor, setRenderer |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public 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.Method Detail |
---|
public int add(double[] data)
data
- point sets.
public int add(double[] data, int numPoints)
data
- Point setnumPoints
- Number of points to add
public String getName(int series)
series
- series index.
public double[] getRangeBounds()
getRangeBounds
in class SSJCategorySeriesCollection
public String toString()
toString
in class SSJCategorySeriesCollection
String
.public String toLatex(double YScale, double YShift, double ymin, double ymax)
toLatex
in class SSJCategorySeriesCollection
ymin
- ymax
- YScale
- Range original data scale.YShift
- Range original data shift value.
|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |