umontreal.iro.lecuyer.charts
Class SSJXYSeriesCollection
- java.lang.Object
-
- umontreal.iro.lecuyer.charts.SSJXYSeriesCollection
-
- Direct Known Subclasses:
- EmpiricalSeriesCollection, HistogramSeriesCollection, XYListSeriesCollection
public abstract class SSJXYSeriesCollection extends java.lang.ObjectStores 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.
-
-
Constructor Summary
Constructors Constructor and Description SSJXYSeriesCollection()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description java.awt.ColorgetColor(int series)Gets the current plotting color of the selected series.double[]getDomainBounds()Returns domain (x-coordinates) min and max values.double[]getRangeBounds()Returns range (y-coordinates) min and max values.XYItemRenderergetRenderer()Returns the XYItemRenderer object associated with the current object.XYDatasetgetSeriesCollection()Returns the XYDataset object associated with the current object.doublegetX(int series, int index)Returns the x-value at the specified index in the specified series.doublegetY(int series, int index)Returns the y-value at the specified index in the specified series.voidsetColor(int series, java.awt.Color color)Sets a new plotting color to the series series.voidsetRenderer(XYItemRenderer renderer)Sets the XYItemRenderer object associated with the current variable.abstract java.lang.StringtoLatex(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.java.lang.StringtoString()Returns in a String all data contained in the current object.
-
-
-
Method Detail
-
getX
public double getX(int series, int index)Returns the x-value at the specified index in the specified series.- Parameters:
series- required series value.index- value's index.- Returns:
- x-value at the specified index in the specified series.
-
getY
public double getY(int series, int index)Returns the y-value at the specified index in the specified series.- Parameters:
series- required series value.index- value's index.- Returns:
- y-value at the specified index in the specified series.
-
getSeriesCollection
public XYDataset getSeriesCollection()
Returns the XYDataset object associated with the current object.- Returns:
- XYDataset object associated with the current variable.
-
getDomainBounds
public double[] getDomainBounds()
Returns domain (x-coordinates) min and max values.- Returns:
- domain min and max values.
-
getRangeBounds
public double[] getRangeBounds()
Returns range (y-coordinates) min and max values.- Returns:
- range min and max values.
-
toString
public java.lang.String toString()
Returns in a String all data contained in the current object.- Overrides:
toStringin classjava.lang.Object- Returns:
- All data contained in the current object as a
String.
-
getRenderer
public XYItemRenderer getRenderer()
Returns the XYItemRenderer object associated with the current object.- Returns:
- XYItemRenderer object associated with the current variable.
-
setRenderer
public 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 classXYChart.- Parameters:
renderer- new XYItemRenderer object.
-
getColor
public java.awt.Color getColor(int series)
Gets the current plotting color of the selected series.- Returns:
- current plotting color.
-
setColor
public void setColor(int series, java.awt.Color color)Sets a new plotting color to the series series.- Parameters:
series- series index.color- plotting color.
-
toLatex
public abstract java.lang.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. The original datasets are shifted and scaled with the XShift, YShift, XScale and YScale parameters. xmin, xmax, ymin and ymax represent the chart bounds.- Parameters:
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.- Returns:
- TikZ code.
-
-
DMelt 3.0 © DataMelt by jWork.ORG