This class stores data used in a umontreal.ssj.charts.CategoryChart. More...
Public Member Functions | |
| BoxSeriesCollection () | |
| Creates a new BoxSeriesCollection instance with an empty dataset. | |
| BoxSeriesCollection (double[] data, int numPoints) | |
| Creates a new BoxSeriesCollection instance with default parameters and input series data. | |
| BoxSeriesCollection (double[]... data) | |
| Creates a new BoxSeriesCollection instance with default parameters and given data series. | |
| BoxSeriesCollection (DefaultBoxAndWhiskerCategoryDataset data) | |
| Creates a new BoxSeriesCollection instance with default parameters and given data series. | |
Data control methods @{ | |
| 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 | toString () |
| Returns in a String all data contained in the current object. | |
| String | toLatex (double YScale, double YShift, double ymin, double ymax) |
| NOT IMPLEMENTED: To do. | |
| Public Member Functions inherited from umontreal.ssj.charts.SSJCategorySeriesCollection | |
| String | getCategory (int series) |
| Returns the category-value in the specified series. | |
| double | getValue (int series, int index) |
| Returns the \(y\)-value at the specified index in the specified series. | |
| CategoryDataset | getSeriesCollection () |
| Returns the CategoryDataset object associated with the current object. | |
| CategoryItemRenderer | getRenderer () |
| Returns the CategoryItemRenderer object associated with the current object. | |
| void | setRenderer (CategoryItemRenderer renderer) |
| Sets the CategoryItemRenderer object associated with the current variable. | |
| Color | getColor (int series) |
| Gets the current plotting color of the selected series. | |
| void | setColor (int series, Color color) |
| Sets a new plotting color to the series \(series\). | |
Additional Inherited Members | |
| static String | detectXColorClassic (Color color) |
| Converts a java Color object into a friendly and readable LaTeX/xcolor string. | |
| static Color | getDefaultColor (int index) |
| Gives the default color associated with a series. | |
This class stores data used in a umontreal.ssj.charts.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.
Definition at line 45 of file BoxSeriesCollection.java.
| umontreal.ssj.charts.BoxSeriesCollection.BoxSeriesCollection | ( | ) |
Creates a new BoxSeriesCollection instance with an empty dataset.
Definition at line 51 of file BoxSeriesCollection.java.
| umontreal.ssj.charts.BoxSeriesCollection.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.
| data | point sets. |
| numPoints | Number of points |
Definition at line 65 of file BoxSeriesCollection.java.
| umontreal.ssj.charts.BoxSeriesCollection.BoxSeriesCollection | ( | double...[] | data | ) |
Creates a new BoxSeriesCollection instance with default parameters and given data series.
The input parameter represents series of point sets.
| data | series of point sets. |
Definition at line 86 of file BoxSeriesCollection.java.
| umontreal.ssj.charts.BoxSeriesCollection.BoxSeriesCollection | ( | DefaultBoxAndWhiskerCategoryDataset | data | ) |
Creates a new BoxSeriesCollection instance with default parameters and given data series.
The input parameter represents a DefaultBoxAndWhiskerCategoryDataset.
| data | series of point sets. |
Definition at line 111 of file BoxSeriesCollection.java.
| int umontreal.ssj.charts.BoxSeriesCollection.add | ( | double[] | data | ) |
Adds a data series into the series collection.
Vector data represents a point set.
| data | point sets. |
Definition at line 130 of file BoxSeriesCollection.java.
| int umontreal.ssj.charts.BoxSeriesCollection.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.
| data | Point set |
| numPoints | Number of points to add |
Definition at line 144 of file BoxSeriesCollection.java.
| String umontreal.ssj.charts.BoxSeriesCollection.getName | ( | int | series | ) |
Gets the current name of the selected series.
| series | series index. |
Definition at line 162 of file BoxSeriesCollection.java.
| double[] umontreal.ssj.charts.BoxSeriesCollection.getRangeBounds | ( | ) |
Returns the range ( \(y\)-coordinates) min and max values.
Reimplemented from umontreal.ssj.charts.SSJCategorySeriesCollection.
Definition at line 171 of file BoxSeriesCollection.java.
| String umontreal.ssj.charts.BoxSeriesCollection.toLatex | ( | double | YScale, |
| double | YShift, | ||
| double | ymin, | ||
| double | ymax ) |
NOT IMPLEMENTED: To do.
| ymin | |
| ymax |
Reimplemented from umontreal.ssj.charts.SSJCategorySeriesCollection.
Definition at line 213 of file BoxSeriesCollection.java.
| String umontreal.ssj.charts.BoxSeriesCollection.toString | ( | ) |
Returns in a String all data contained in the current object.
Reimplemented from umontreal.ssj.charts.SSJCategorySeriesCollection.
Definition at line 196 of file BoxSeriesCollection.java.