All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class MSBChart.DataSerie

java.lang.Object
   |
   +----MSBChart.DataSerie

public class DataSerie
extends Object

 

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 ...).


Constructor Index

 o DataSerie()
 o DataSerie(double[])
 o DataSerie(double[], double[])

Method Index

 o addData(Object, Object)
 o getElementX(int)
 o getElementY(int)
 o getSize()

Constructors

 o DataSerie
 public DataSerie()
creates an empty data serie.
 o DataSerie
 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,..).

 o DataSerie
 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.

 

Methods

 o addData
 public void addData(Object x,
                     Object y)
Adds data to the data serie. Must be used if an empty data serie was created.
 
 o getElementX
 public Object getElementX(int i)
returns x value of the element i.
 o getElementY
 public Object getElementY(int i)
returns y value of the element i.
 o getSize
 public int getSize()
returns the size of the data serie.

All Packages  Class Hierarchy  This Package  Previous  Next  Index