| java.lang.Object de.progra.charting.model.DefaultDataSet
All known Subclasses: de.progra.charting.model.EditableDataSet,
DefaultDataSet | public class DefaultDataSet implements DataSet(Code) | | This is a default DataSet implementation.
author: mueller version: 1.0 |
Constructor Summary | |
public | DefaultDataSet() Creates a new empty DefaultDataSet with default axis binding. | public | DefaultDataSet(int axis) Creates a new empty DefaultDataSet with the given
Axis binding. | public | DefaultDataSet(Object[] data, Object[] columns, int axis) Creates a new DefaultDataSet with the given data and
the Axis binding.
Parameters: data - the DataSet values Parameters: columns - the DataSet columns, the value and the column array should have the same length. | public | DefaultDataSet(Object[] data, Object[] columns, int axis, String title) Creates a new DefaultDataSet with the given data and
the Axis binding.
Parameters: data - the DataSet values Parameters: columns - the DataSet columns, the value and the column array should have the same length. |
DefaultDataSet | public DefaultDataSet()(Code) | | Creates a new empty DefaultDataSet with default axis binding.
|
DefaultDataSet | public DefaultDataSet(int axis)(Code) | | Creates a new empty DefaultDataSet with the given
Axis binding.
|
DefaultDataSet | public DefaultDataSet(Object[] data, Object[] columns, int axis)(Code) | | Creates a new DefaultDataSet with the given data and
the Axis binding.
Parameters: data - the DataSet values Parameters: columns - the DataSet columns, the value and the column array should have the same length. The columns have to be sorted. Parameters: axis - the Axis binding |
DefaultDataSet | public DefaultDataSet(Object[] data, Object[] columns, int axis, String title)(Code) | | Creates a new DefaultDataSet with the given data and
the Axis binding.
Parameters: data - the DataSet values Parameters: columns - the DataSet columns, the value and the column array should have the same length. The columns have to be sorted. Parameters: axis - the Axis binding |
getColumnValueAt | public Object getColumnValueAt(int index)(Code) | | Returns the column value.
Parameters: index - the column index the column value |
getDataSetLength | public int getDataSetLength()(Code) | | Returns the length of this data set, ie the minimum of the columns and the
data array length.
the length of the DataSet |
getTitle | public String getTitle()(Code) | | Returns the title of this DataSet.
the String title |
getValueAt | public Object getValueAt(int index)(Code) | | Returns the data at the specified index.
Parameters: index - the data index the Object value |
getYAxis | public int getYAxis()(Code) | | Returns the Axis binding.
the axis binding constant |
setColumnValueAt | public void setColumnValueAt(int index, Object col)(Code) | | Sets a column value.
Parameters: index - the column index Parameters: col - the column value |
setTitle | public void setTitle(String title)(Code) | | Sets the title of this DataSet.
Parameters: title - the String title |
setValueAt | public void setValueAt(int index, Object val)(Code) | | Sets the given value at the specified index.
Parameters: index - the value index Parameters: val - the Object value |
setYAxis | public void setYAxis(int yaxis)(Code) | | Sets the Axis binding.
Parameters: yaxis - the axis binding constant |
|
|