|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.approximatrix.charting.model.DefaultDataSet
com.approximatrix.charting.model.EditableDataSet
public class EditableDataSet
This is an editable DataSet implementation.
| Field Summary |
|---|
| Fields inherited from class com.approximatrix.charting.model.DefaultDataSet |
|---|
axis, columns, data, title |
| Constructor Summary | |
|---|---|
EditableDataSet()
Creates a new empty EditableDataSet with default axis binding. |
|
EditableDataSet(int axis)
Creates a new empty EditableDataSet with the given Axis binding. |
|
EditableDataSet(java.lang.Object[] data,
java.lang.Object[] columns,
int axis)
Creates a new EditableDataSet with the given data and the Axis binding. |
|
EditableDataSet(java.lang.Object[] data,
java.lang.Object[] columns,
int axis,
java.lang.String title)
Creates a new EditableDataSet with the given data and the Axis binding. |
|
| Method Summary | |
|---|---|
void |
insertValue(java.lang.Object value,
java.lang.Object column)
Inserts the given column/value pair at the right position, which is determined through a binary search. |
void |
removeValue(int index)
Removes a given column/value pair at the specified index location with no regards for safety. |
| Methods inherited from class com.approximatrix.charting.model.DefaultDataSet |
|---|
getColumnValueAt, getDataSetLength, getTitle, getValueAt, getYAxis, setColumnValueAt, setTitle, setValueAt, setYAxis |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditableDataSet()
public EditableDataSet(int axis)
public EditableDataSet(java.lang.Object[] data,
java.lang.Object[] columns,
int axis)
data - the DataSet valuescolumns - the DataSet columns, the value and the column array should
have the same length. The column array has to be sorted.axis - the Axis binding
public EditableDataSet(java.lang.Object[] data,
java.lang.Object[] columns,
int axis,
java.lang.String title)
data - the DataSet valuescolumns - the DataSet columns, the value and the column array should
have the same length. The column array has to be sorted!axis - the Axis binding| Method Detail |
|---|
public void insertValue(java.lang.Object value,
java.lang.Object column)
value - the value to be storedcolumn - the column value corresponding to valuepublic void removeValue(int index)
index - the index of the pair to remove
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||