com.panayotis.gnuplot.dataset
Interface DataSet

All Known Implementing Classes:
ArrayDataSet, FileDataSet, GenericDataSet, PointDataSet

public interface DataSet

This is the generic interface which every data set object should provide. By implementing this interface the author can create his own data objects which can be used in JavaPlot


Method Summary
 int getDimensions()
          Retrieve how many dimensions this dataset refers to.
 java.lang.String getPointValue(int point, int dimension)
          Retrieve data information from a point.
 int size()
          Retrieve how many points this data set has.
 

Method Detail

size

int size()
Retrieve how many points this data set has.

Returns:
the number of points

getDimensions

int getDimensions()
Retrieve how many dimensions this dataset refers to. Typically, for every point, this method informs JavaPlot how many "columns" of data this point has. Make sure that every point has at least as many dimensions as what is reported here .

Returns:
the number of dimensions

getPointValue

java.lang.String getPointValue(int point,
                               int dimension)
Retrieve data information from a point. To retrieve information for each point, a continious call to this method will be executed, keeping the item number constant and increasing the dimension.

Parameters:
point - The point number
dimension - The point dimension (or "column") to request data from
Returns:
the point data for this dimension