|
SSJ
3.3.1
Stochastic Simulation in Java
|
Stores data used in a XYChart.
More...
Public Member Functions | |
Data control methods | |
| double | getX (int series, int index) |
| Returns the \(x\)-value at the specified index in the specified series. More... | |
| double | getY (int series, int index) |
| Returns the \(y\)-value at the specified index in the specified series. More... | |
| XYDataset | getSeriesCollection () |
Returns the XYDataset object associated with the current object. More... | |
| double [] | getDomainBounds () |
| Returns domain ( \(x\)-coordinates) min and max values. More... | |
| double [] | getRangeBounds () |
| Returns range ( \(y\)-coordinates) min and max values. More... | |
| String | toString () |
Returns in a String all data contained in the current object. More... | |
Protected Attributes | |
| XYItemRenderer | renderer |
| XYDataset | seriesCollection |
Rendering methods | |
| XYItemRenderer | getRenderer () |
Returns the XYItemRenderer object associated with the current object. More... | |
| void | setRenderer (XYItemRenderer renderer) |
Sets the XYItemRenderer object associated with the current variable. More... | |
| Color | getColor (int series) |
| Gets the current plotting color of the selected series. More... | |
| void | setColor (int series, Color color) |
| Sets a new plotting color to the series \(series\). More... | |
| abstract String | toLatex (double XScale, double YScale, double XShift, double YShift, double xmin, double xmax, double ymin, double ymax) |
| Formats and returns a string containing a LaTeX-compatible source code which represents this data series collection. More... | |
| static String | detectXColorClassic (Color color) |
| Converts a java Color object into a friendly and readable LaTeX/xcolor string. More... | |
| static Color | getDefaultColor (int index) |
| Gives the default color associated with a series. More... | |
| static double | max (double[] t) |
| static double | min (double[] t) |
Stores data used in a XYChart.
This class provides tools to manage data sets and rendering options, and modify plot color, plot style, and marks on points for each series.
|
staticprotected |
Converts a java Color object into a friendly and readable LaTeX/xcolor string.
| color | in color. |
| Color getColor | ( | int | series | ) |
Gets the current plotting color of the selected series.
|
staticprotected |
Gives the default color associated with a series.
| index | Index of the series in the XYDataset object. |
| double [] getDomainBounds | ( | ) |
Returns domain ( \(x\)-coordinates) min and max values.
| double [] getRangeBounds | ( | ) |
Returns range ( \(y\)-coordinates) min and max values.
| XYItemRenderer getRenderer | ( | ) |
Returns the XYItemRenderer object associated with the current object.
XYItemRenderer object associated with the current variable. | XYDataset getSeriesCollection | ( | ) |
Returns the XYDataset object associated with the current object.
XYDataset object associated with the current variable. | double getX | ( | int | series, |
| int | index | ||
| ) |
Returns the \(x\)-value at the specified index in the specified series.
| series | required series value. |
| index | value’s index. |
| double getY | ( | int | series, |
| int | index | ||
| ) |
Returns the \(y\)-value at the specified index in the specified series.
| series | required series value. |
| index | value’s index. |
| void setColor | ( | int | series, |
| Color | color | ||
| ) |
Sets a new plotting color to the series \(series\).
| series | series index. |
| color | plotting color. |
| void setRenderer | ( | XYItemRenderer | renderer | ) |
Sets the XYItemRenderer 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 XYItemRenderer object. |
|
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 XShift, YShift, XScale and YScale parameters. xmin, xmax, ymin and ymax represent the chart bounds.
| XScale | Domain original data scale. |
| YScale | Range original data scale. |
| XShift | Domain original data shift value. |
| YShift | Range original data shift value. |
| xmin | Domain min bound. |
| xmax | Domain nax bound. |
| ymin | Range min bound. |
| ymax | Range nax bound. |
| String toString | ( | ) |
Returns in a String all data contained in the current object.
1.8.14