|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.approximatrix.charting.model.AbstractChartDataModel
com.approximatrix.charting.model.DefaultChartDataModel
com.approximatrix.charting.model.EditableChartDataModel
public class EditableChartDataModel
Implements an editable ChartModel. It uses a vector of DataSets and the columns are numeric.
| Field Summary |
|---|
| Fields inherited from class com.approximatrix.charting.model.DefaultChartDataModel |
|---|
columnSet, constraints1, constraints2, data, valuesbyaxis |
| Fields inherited from class com.approximatrix.charting.model.AbstractChartDataModel |
|---|
autoscale, listener, manualscale, maxcolumn, maxvalue, mincolumn, minvalue |
| Constructor Summary | |
|---|---|
EditableChartDataModel()
Creates a new empty EditableChartDataModel. |
|
EditableChartDataModel(double[][] data,
double[] columns,
java.lang.String[] rows)
Creates new EditableChartDataModel. |
|
EditableChartDataModel(EditableDataSet[] ds)
Creates a new EditableChartDataModel using the given array of EditableDataSets, effectively enabling the creation of DataModels with differently sized DataSets. |
|
EditableChartDataModel(int[][] data,
double[] columns,
java.lang.String[] rows)
Creates new EditableChartDataModel. |
|
EditableChartDataModel(java.lang.Number[][] data,
double[] columns,
java.lang.String[] rows)
Creates new EditableChartDataModel with the default axis binding. |
|
| Method Summary | |
|---|---|
void |
insertValue(int set,
java.lang.Object value,
java.lang.Object column)
Inserts a value together with its column value at the right position. |
void |
removeValueAt(int set,
int index)
Removes the value in a given DataSet. |
void |
setAxisBinding(int set,
int axis)
Sets the axis binding for a given DataSet. |
void |
setValueAt(int set,
int index,
java.lang.Object value)
Sets the value in a given DataSet. |
| Methods inherited from class com.approximatrix.charting.model.DefaultChartDataModel |
|---|
getAxisBinding, getChartDataModelConstraints, getColumnClass, getColumnValueAt, getColumnValueAt, getDataSetLength, getDataSetName, getDataSetNumber, getFirstColumnValue, getLastColumnValue, getOrderedValues, getValueAt, isColumnNumeric, setChartDataModelConstraints, trimSet |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditableChartDataModel()
public EditableChartDataModel(java.lang.Number[][] data,
double[] columns,
java.lang.String[] rows)
data - the array of values. The first index specifies the
datasets, the last one is the value index.columns - the array of x-axis values. The length of the
datasets and the length of the column should be equal and the columns should
be ordered.rows - the array of DataSet titles. It has to have the same
length as the number of DataSets.
public EditableChartDataModel(int[][] data,
double[] columns,
java.lang.String[] rows)
data - the array of values. The first index specifies the
datasets, the last one is the value index.columns - the array of x-axis values. The length of the
datasets and the length of the column should be equal and
the columns should be ordered.rows - the array of DataSet titles. It has to have the same
length as the number of DataSets.
public EditableChartDataModel(double[][] data,
double[] columns,
java.lang.String[] rows)
data - the array of values. The first index specifies the
datasets, the last one is the value index.columns - the array of x-axis values. The length of the
datasets and the length of the column should be equal and
the columns should be ordered.rows - the array of DataSet titles. It has to have the same
length as the number of DataSets.public EditableChartDataModel(EditableDataSet[] ds)
ds - the array of DataSets to be used.| Method Detail |
|---|
public void setAxisBinding(int set,
int axis)
setAxisBinding in interface ChartDataModelsetAxisBinding in class AbstractChartDataModelset - the DataSetaxis - the Axis binding
public void setValueAt(int set,
int index,
java.lang.Object value)
setValueAt in interface ChartDataModelsetValueAt in class AbstractChartDataModelset - the DataSet in which the value should be setindex - the index in the DataSet where the value should be storedvalue - the value object
public void insertValue(int set,
java.lang.Object value,
java.lang.Object column)
set - the DataSet in which the value should be setvalue - the value objectcolumn - the column value object
public void removeValueAt(int set,
int index)
set - the DataSet in which the value should be setindex - the index in the DataSet where the value should be stored
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||