|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.gral.data.AbstractDataSource
de.erichseifert.gral.data.DataSeries
public class DataSeries
Class that represents a view on several columns of a DataSource.
DataSource
Constructor Summary | |
---|---|
DataSeries(DataSource data,
int... cols)
Constructor without name. |
|
DataSeries(String name,
DataSource data,
int... cols)
Constructor. |
Method Summary | |
---|---|
void |
dataChanged(DataSource data)
Method that is invoked by objects that provide support for DataListeners. |
Number |
get(int col,
int row)
Returns the row with the specified index. |
int |
getColumnCount()
Returns the number of columns of the data source. |
String |
getName()
Returns the name of this series. |
int |
getRowCount()
Returns the number of rows of the data source. |
void |
setName(String name)
Sets the name of this series. |
String |
toString()
|
Methods inherited from class de.erichseifert.gral.data.AbstractDataSource |
---|
addDataListener, getColumn, getRow, getStatistics, iterator, removeDataListener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataSeries(DataSource data, int... cols)
data
- Data sourcecols
- Column numberspublic DataSeries(String name, DataSource data, int... cols)
name
- Descriptive namedata
- Data sourcecols
- Column numbersMethod Detail |
---|
public String getName()
public void setName(String name)
name
- name to be setpublic Number get(int col, int row)
DataSource
get
in interface DataSource
col
- index of the column to returnrow
- index of the row to return
public int getColumnCount()
DataSource
getColumnCount
in interface DataSource
public int getRowCount()
DataSource
getRowCount
in interface DataSource
public void dataChanged(DataSource data)
DataListener
dataChanged
in interface DataListener
data
- data that has changedpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |