| java.lang.Object de.progra.charting.model.AbstractChartDataModel de.progra.charting.model.DefaultChartDataModel de.progra.charting.model.EditableChartDataModel
EditableChartDataModel | public class EditableChartDataModel extends DefaultChartDataModel (Code) | | Implements an editable ChartModel. It uses a vector of DataSets and the columns
are numeric.
author: mueller version: 1.0 |
Constructor Summary | |
public | EditableChartDataModel() Creates a new empty EditableChartDataModel. | public | EditableChartDataModel(Number[][] data, double[] columns, String[] rows) Creates new EditableChartDataModel with the default axis binding.
Parameters: data - the array of values. | public | EditableChartDataModel(int[][] data, double[] columns, String[] rows) Creates new EditableChartDataModel.
Parameters: data - the array of values. | public | EditableChartDataModel(double[][] data, double[] columns, String[] rows) Creates new EditableChartDataModel.
Parameters: data - the array of values. | public | EditableChartDataModel(EditableDataSet[] ds) Creates a new EditableChartDataModel using the
given array of EditableDataSets, effectively enabling the creation
of DataModels with differently sized DataSets. |
EditableChartDataModel | public EditableChartDataModel()(Code) | | Creates a new empty EditableChartDataModel.
|
EditableChartDataModel | public EditableChartDataModel(Number[][] data, double[] columns, String[] rows)(Code) | | Creates new EditableChartDataModel with the default axis binding.
Parameters: data - the array of values. The first index specifies thedatasets, the last one is the value index. Parameters: columns - the array of x-axis values. The length of thedatasets and the length of the column should be equal and the columns shouldbe ordered. Parameters: rows - the array of DataSet titles. It has to have the samelength as the number of DataSets. |
EditableChartDataModel | public EditableChartDataModel(int[][] data, double[] columns, String[] rows)(Code) | | Creates new EditableChartDataModel.
Parameters: data - the array of values. The first index specifies thedatasets, the last one is the value index. Parameters: columns - the array of x-axis values. The length of thedatasets and the length of the column should be equal andthe columns should be ordered. Parameters: rows - the array of DataSet titles. It has to have the samelength as the number of DataSets. |
EditableChartDataModel | public EditableChartDataModel(double[][] data, double[] columns, String[] rows)(Code) | | Creates new EditableChartDataModel.
Parameters: data - the array of values. The first index specifies thedatasets, the last one is the value index. Parameters: columns - the array of x-axis values. The length of thedatasets and the length of the column should be equal andthe columns should be ordered. Parameters: rows - the array of DataSet titles. It has to have the samelength as the number of DataSets. |
EditableChartDataModel | public EditableChartDataModel(EditableDataSet[] ds)(Code) | | Creates a new EditableChartDataModel using the
given array of EditableDataSets, effectively enabling the creation
of DataModels with differently sized DataSets.
Parameters: ds - the array of DataSets to be used. |
insertValue | public void insertValue(int set, Object value, Object column)(Code) | | Inserts a value together with its column value at the right position. The
right index is determined by performing a binary search on the columns in the
DataSet. Fires a ChartDataModelChangedEvent.
Parameters: set - the DataSet in which the value should be set Parameters: value - the value object Parameters: column - the column value object |
removeDataSet | public void removeDataSet(int set)(Code) | | |
removeValueAt | public void removeValueAt(int set, int index)(Code) | | Removes the value in a given DataSet.
Parameters: set - the DataSet in which the value should be set Parameters: index - the index in the DataSet where the value should be stored |
setAxisBinding | public void setAxisBinding(int set, int axis)(Code) | | Sets the axis binding for a given DataSet.
Parameters: set - the DataSet Parameters: axis - the Axis binding |
setValueAt | public void setValueAt(int set, int index, Object value)(Code) | | Sets the value in a given DataSet.
Parameters: set - the DataSet in which the value should be set Parameters: index - the index in the DataSet where the value should be stored Parameters: value - the value object |
|
|