com.approximatrix.charting.model
Interface DataSet

All Known Implementing Classes:
DefaultDataSet, EditableDataSet

public interface DataSet

An interface used to encapsulate the DataSets in a ChartDataModel. It's main objective is to store a DataSet to Axis binding.

Version:
1.0
Author:
mueller

Method Summary
 java.lang.Object getColumnValueAt(int index)
          Determines the column value at a specific DataSet index.
 int getDataSetLength()
          Determines the length of the DataSet
 java.lang.String getTitle()
          Returns the Title of the DataSet.
 java.lang.Object getValueAt(int index)
          Returns a value in the DataSet
 int getYAxis()
          Returns the axis to which this DataSet is attached.
 void setColumnValueAt(int index, java.lang.Object col)
          Sets the column value
 void setTitle(java.lang.String title)
          Sets the DataSet's title.
 void setValueAt(int index, java.lang.Object val)
          Stores a value in the DataSet.
 void setYAxis(int yaxis)
          Sets the axis this DataSet is attached to.
 

Method Detail

getDataSetLength

int getDataSetLength()
Determines the length of the DataSet

Returns:
an int equal to the length

getColumnValueAt

java.lang.Object getColumnValueAt(int index)
Determines the column value at a specific DataSet index.

Parameters:
index - the column index
Returns:
an Object with the column value

setColumnValueAt

void setColumnValueAt(int index,
                      java.lang.Object col)
Sets the column value

Parameters:
index - the column index
col - the column value

getValueAt

java.lang.Object getValueAt(int index)
Returns a value in the DataSet

Parameters:
index - the DataSet index
Returns:
an Object with the value.

setValueAt

void setValueAt(int index,
                java.lang.Object val)
Stores a value in the DataSet.

Parameters:
index - the DataSet index
val - the value to be stored

setYAxis

void setYAxis(int yaxis)
Sets the axis this DataSet is attached to.

Parameters:
yaxis - the axis constant.

getYAxis

int getYAxis()
Returns the axis to which this DataSet is attached.

Returns:
the axis constant

getTitle

java.lang.String getTitle()
Returns the Title of the DataSet.

Returns:
a String containing the DataSet's title.

setTitle

void setTitle(java.lang.String title)
Sets the DataSet's title.

Parameters:
title - the String title for the DataSet