Stores data used in a CategoryChart. More...
Public Member Functions | |
Data control methods @{ | |
| 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. | |
| abstract double[] | getRangeBounds () |
| Returns range ( \(y\)-coordinates) min and max values. | |
| abstract String | toString () |
| Returns in a String all data contained in the current object. | |
Rendering methods @{ | |
| 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\). | |
| abstract String | toLatex (double YScale, double YShift, double ymin, double ymax) |
| Formats and returns a string containing a LaTeX-compatible source code which represents this data series collection. | |
| 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. | |
Stores data used in a CategoryChart.
This class provides tools to manage data sets and rendering options, and modify plot color, plot style, and marks on points for each series.
Definition at line 41 of file SSJCategorySeriesCollection.java.
|
staticprotected |
Converts a java Color object into a friendly and readable LaTeX/xcolor string.
| color | in color. |
Definition at line 161 of file SSJCategorySeriesCollection.java.
| String umontreal.ssj.charts.SSJCategorySeriesCollection.getCategory | ( | int | series | ) |
Returns the category-value in the specified series.
| series | required series value. |
Definition at line 55 of file SSJCategorySeriesCollection.java.
| Color umontreal.ssj.charts.SSJCategorySeriesCollection.getColor | ( | int | series | ) |
Gets the current plotting color of the selected series.
Definition at line 126 of file SSJCategorySeriesCollection.java.
|
staticprotected |
Gives the default color associated with a series.
| index | Index of the series in the CategoryDataset object. |
Definition at line 217 of file SSJCategorySeriesCollection.java.
|
abstract |
Returns range ( \(y\)-coordinates) min and max values.
Reimplemented in umontreal.ssj.charts.BoxSeriesCollection.
| CategoryItemRenderer umontreal.ssj.charts.SSJCategorySeriesCollection.getRenderer | ( | ) |
Returns the CategoryItemRenderer object associated with the current object.
Definition at line 106 of file SSJCategorySeriesCollection.java.
| CategoryDataset umontreal.ssj.charts.SSJCategorySeriesCollection.getSeriesCollection | ( | ) |
Returns the CategoryDataset object associated with the current object.
Definition at line 75 of file SSJCategorySeriesCollection.java.
| double umontreal.ssj.charts.SSJCategorySeriesCollection.getValue | ( | int | series, |
| int | index ) |
Returns the \(y\)-value at the specified index in the specified series.
| series | required series value. |
| index | value’s index. |
Definition at line 66 of file SSJCategorySeriesCollection.java.
| void umontreal.ssj.charts.SSJCategorySeriesCollection.setColor | ( | int | series, |
| Color | color ) |
Sets a new plotting color to the series \(series\).
| series | series index. |
| color | plotting color. |
Definition at line 136 of file SSJCategorySeriesCollection.java.
| void umontreal.ssj.charts.SSJCategorySeriesCollection.setRenderer | ( | CategoryItemRenderer | renderer | ) |
Sets the CategoryItemRenderer object associated with the current variable.
This object determines the chart JFreeChart look, produced by method view in class umontreal.ssj.charts.XYChart.
| renderer | new CategoryItemRenderer object. |
Definition at line 117 of file SSJCategorySeriesCollection.java.
|
abstract |
Formats and returns a string containing a LaTeX-compatible source code which represents this data series collection.
The original datasets are shifted and scaled with the YShift and YScale parameters. ymin and ymax represent the chart bounds.
| YScale | Range original data scale. |
| YShift | Range original data shift value. |
| ymin | Range min bound. |
| ymax | Range max bound. |
Reimplemented in umontreal.ssj.charts.BoxSeriesCollection.
|
abstract |
Returns in a String all data contained in the current object.
Reimplemented in umontreal.ssj.charts.BoxSeriesCollection.