The amount to increment the data array when the append method is being
used.

previousPointLines

protected int previousPointLines

previousPointMarkers

protected int previousPointMarkers

stride

protected int stride

The stride of the data. For data pairs (x,y) the stride is 2

DataSet

public DataSet()

Instantiate an empty data set.

DataSet

public DataSet(int stride) throws Exception

Instantiate an empty data set.

Parameters:

stride - the stride of the data set. The default stride is 2.

DataSet

public DataSet(double d[],
int n) throws Exception

Instantiate a DataSet with the parsed data. Default stride is 2.
The double array contains the data. The X data is expected in
the even indices, the y data in the odd. The integer n is the
number of data Points. This means that the length of the data
array is 2*n.

Parameters:

d - Array containing the (x,y) data pairs.

n - Number of (x,y) data pairs in the array.

Throws: Exception

A Generic exception if it fails to load the
parsed array into the class.

DataSet

public DataSet(double d[],
int n,
int s) throws Exception

Instantiate a DataSet with the parsed data.
The double array contains the data. The X data is expected to be in
indices i*stride where i=0,1,... The Y data is expected to be found
in indices i*stride+1 where i=0,1,2...
The integer n is the
number of data Points. This means that the length of the data
array is 2*stride.

Parameters:

d - Array containing the (x,y) data pairs.

n - Number of (x,y) data pairs in the array.

s - The stride of the data.

Throws: Exception

A Generic exception if it fails to load the
parsed array into the class.

Draw the straight line segments and/or the markers at the
data points.
If this data has been attached to an Axis then scale the data
based on the axis maximum/minimum otherwise scale using
the data's maximum/minimum