Class XYDataset
- java.lang.Object
-
- adams.gui.visualization.xchart.dataset.Dataset
-
- adams.gui.visualization.xchart.dataset.XYDataset
-
- All Implemented Interfaces:
Serializable
public class XYDataset extends Dataset
Container for XY data.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(double x, double y)Adds the data point to the dataset.double[]getX()Returns the X data.double[]getY()Returns the Y data.
-
-
-
Constructor Detail
-
XYDataset
public XYDataset(String name)
Initializes the container with no data.- Parameters:
name- the name of the dataset
-
XYDataset
public XYDataset(String name, double[] x, double[] y)
Initializes the container with the specified x/y values.- Parameters:
name- the name of the datasetx- the x datay- the y data
-
-