|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.approximatrix.charting.model.DefaultDataSet
public class DefaultDataSet
This is a default DataSet implementation.
| Field Summary | |
|---|---|
protected int |
axis
|
protected java.util.ArrayList |
columns
|
protected java.util.ArrayList |
data
|
protected java.lang.String |
title
|
| Constructor Summary | |
|---|---|
DefaultDataSet()
Creates a new empty DefaultDataSet with default axis binding. |
|
DefaultDataSet(int axis)
Creates a new empty DefaultDataSet with the given Axis binding. |
|
DefaultDataSet(java.lang.Object[] data,
java.lang.Object[] columns,
int axis)
Creates a new DefaultDataSet with the given data and the Axis binding. |
|
DefaultDataSet(java.lang.Object[] data,
java.lang.Object[] columns,
int axis,
java.lang.String title)
Creates a new DefaultDataSet with the given data and the Axis binding. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getColumnValueAt(int index)
Returns the column value. |
int |
getDataSetLength()
Returns the length of this data set, ie the minimum of the columns and the data array length. |
java.lang.String |
getTitle()
Returns the title of this DataSet. |
java.lang.Object |
getValueAt(int index)
Returns the data at the specified index. |
int |
getYAxis()
Returns the Axis binding. |
void |
setColumnValueAt(int index,
java.lang.Object col)
Sets a column value. |
void |
setTitle(java.lang.String title)
Sets the title of this DataSet. |
void |
setValueAt(int index,
java.lang.Object val)
Sets the given value at the specified index. |
void |
setYAxis(int yaxis)
Sets the Axis binding. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList data
protected java.util.ArrayList columns
protected int axis
protected java.lang.String title
| Constructor Detail |
|---|
public DefaultDataSet()
public DefaultDataSet(int axis)
public DefaultDataSet(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 columns have to be sorted.axis - the Axis binding
public DefaultDataSet(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 columns have to be sorted.axis - the Axis binding| Method Detail |
|---|
public int getDataSetLength()
getDataSetLength in interface DataSetpublic java.lang.Object getValueAt(int index)
getValueAt in interface DataSetindex - the data index
public int getYAxis()
getYAxis in interface DataSet
public void setValueAt(int index,
java.lang.Object val)
setValueAt in interface DataSetindex - the value indexval - the Object valuepublic void setYAxis(int yaxis)
setYAxis in interface DataSetyaxis - the axis binding constantpublic java.lang.Object getColumnValueAt(int index)
getColumnValueAt in interface DataSetindex - the column index
public void setColumnValueAt(int index,
java.lang.Object col)
setColumnValueAt in interface DataSetindex - the column indexcol - the column valuepublic void setTitle(java.lang.String title)
setTitle in interface DataSettitle - the String titlepublic java.lang.String getTitle()
getTitle in interface DataSet
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||