All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----MSBChart.DataSerie
A data serie contains the values that must be plotted on the chart. It is nothing more than a list of values an a description of the values must be plotted (color, line style ...).
public DataSerie()
creates an empty data serie.
public DataSerie(double y[])
creates a data serie for the array y. The data for the other axis will be created automatically starting by 0 (i.e. 0,1,2,3,..).
public DataSerie(double x[], double y[])
creates a data serie for the array y. The data of the array x will be used for the axis x.
public void addData(Object x, Object y)
Adds data to the data serie. Must be used if an empty data serie was created.
public Object getElementX(int i)
returns x value of the element i.
public Object getElementY(int i)
returns y value of the element i.
public int getSize()
returns the size of the data serie.
All Packages Class Hierarchy This Package Previous Next Index