umontreal.iro.lecuyer.charts
Class BoxSeriesCollection
- java.lang.Object
-
- umontreal.iro.lecuyer.charts.SSJCategorySeriesCollection
-
- umontreal.iro.lecuyer.charts.BoxSeriesCollection
-
public class BoxSeriesCollection extends SSJCategorySeriesCollection
This class stores data used in aCategoryChart. 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
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intadd(double[] data)Adds a data series into the series collection.intadd(double[] data, int numPoints)Adds a data series into the series collection.java.lang.StringgetName(int series)Gets the current name of the selected series.double[]getRangeBounds()Returns the range (y-coordinates) min and max values.java.lang.StringtoLatex(double YScale, double YShift, double ymin, double ymax)NOT IMPLEMENTED: To do.java.lang.StringtoString()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
-
-
-
-
Constructor Detail
-
BoxSeriesCollection
public BoxSeriesCollection()
Creates a new BoxSeriesCollection instance with an empty dataset.
-
BoxSeriesCollection
public BoxSeriesCollection(double[] data, int numPoints)Creates a new BoxSeriesCollection instance with default parameters and input series data. Only the first numPoints of data will taken into account.- Parameters:
data- point sets.numPoints- Number of points
-
BoxSeriesCollection
public BoxSeriesCollection(double[]... data)
Creates a new BoxSeriesCollection instance with default parameters and given data series. The input parameter represents series of point sets.- Parameters:
data- series of point sets.
-
BoxSeriesCollection
public BoxSeriesCollection(DefaultBoxAndWhiskerCategoryDataset data)
Creates a new BoxSeriesCollection instance with default parameters and given data series. The input parameter represents a DefaultBoxAndWhiskerCategoryDataset.- Parameters:
data- series of point sets.
-
-
Method Detail
-
add
public int add(double[] data)
Adds a data series into the series collection. Vector data represents a point set.- Parameters:
data- point sets.- Returns:
- Integer that represent the new point set's position in the JFreeChart DefaultBoxAndWhiskerXYDataset object.
-
add
public int add(double[] data, int numPoints)Adds a data series into the series collection. Vector data represents a point set. Only the first numPoints of data will be added to the new series.- Parameters:
data- Point setnumPoints- Number of points to add- Returns:
- Integer that represent the new point set's position in the JFreeChart DefaultBoxAndWhiskerXYDataset object.
-
getName
public java.lang.String getName(int series)
Gets the current name of the selected series.- Parameters:
series- series index.- Returns:
- current name of the series.
-
getRangeBounds
public double[] getRangeBounds()
Returns the range (y-coordinates) min and max values.- Specified by:
getRangeBoundsin classSSJCategorySeriesCollection- Returns:
- range min and max values.
-
toString
public java.lang.String toString()
Returns in a String all data contained in the current object.- Specified by:
toStringin classSSJCategorySeriesCollection- Returns:
- All data contained in the current object as a
String.
-
toLatex
public java.lang.String toLatex(double YScale, double YShift, double ymin, double ymax)NOT IMPLEMENTED: To do.- Specified by:
toLatexin classSSJCategorySeriesCollection- Parameters:
ymin-ymax-YScale- Range original data scale.YShift- Range original data shift value.- Returns:
- LaTeX source code
-
-
DMelt 3.0 © DataMelt by jWork.ORG