|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.pf.data.Dataset
public final class Dataset
A Dataset
contains a set of Datacell
s
which are arranged in a tabular scheme, i.e., in rows and columns.
Field Summary | |
---|---|
static MimeType |
MIME_TYPE
|
Constructor Summary | |
---|---|
Dataset()
|
Method Summary | |
---|---|
Dataseries |
addColumn()
Adds a new column to this dataset and returns it as a dataseries. |
Dataseries |
addColumn(java.lang.Comparable key)
Adds a new column to this dataset and returns it as a dataseries. |
void |
addReference(SharedObjectReference ref)
|
Dataseries |
addRow()
Adds a new row to this dataset and returns it as a dataseries. |
Dataseries |
addRow(java.lang.Comparable key)
Adds a new row to this dataset and returns it as a dataseries. |
void |
appendReferencesTo(java.util.List out)
|
DatasetAdapter |
asDatasetAdapter()
Returns a view of this dataset as an instance of DatasetAdapter . |
javax.swing.table.TableModel |
asTableModel()
Returns a view of this dataset as an instance of TableModel . |
Dataset |
clear()
Clears this dataset. |
static void |
export(Item item,
java.lang.Object info,
Context context)
|
java.lang.String |
getCategoryLabel()
|
Datacell |
getCell(int row,
int col)
Returns the datacell at row and column . |
Dataseries |
getColumn(int column)
Returns column as a dataseries. |
int |
getColumnCount()
Returns the number of columns of this dataset. |
int |
getColumnCount(int row)
Returns the number of columns which are defined in row . |
java.lang.Comparable |
getColumnKey(int column)
Returns the key for the column with index column . |
org.jfree.data.DomainOrder |
getDomainOrder()
|
org.jfree.data.general.DatasetGroup |
getGroup()
|
SharedObjectProvider |
getProvider()
|
Dataseries |
getRow(int row)
Returns row as a dataseries. |
int |
getRowCount()
Returns the number of rows of this dataset. |
int |
getRowCount(int column)
|
java.lang.Comparable |
getRowKey(int row)
Returns the key for the row with index row . |
java.lang.String |
getTitle()
|
java.lang.String |
getValueLabel()
|
boolean |
hasCell(int row,
int col)
|
boolean |
hasSeriesInRows()
|
void |
initProvider(SharedObjectProvider provider)
|
Dataseries |
operator$shl(double[] v)
|
Dataseries |
operator$shl(java.lang.Number v)
|
void |
removeReference(SharedObjectReference ref)
|
Dataset |
setCategoryLabel(java.lang.String s)
|
Dataset |
setColumnKey(int col,
java.lang.Comparable key)
Sets the key for column with index column to key |
void |
setDomainOrder(org.jfree.data.DomainOrder order)
|
void |
setGroup(org.jfree.data.general.DatasetGroup group)
|
Dataset |
setHistogramBins(int col,
double min,
double max,
int count)
|
Dataset |
setHistogramBins(int col,
java.util.List<org.jfree.data.statistics.HistogramBin> bins)
|
Dataset |
setRowKey(int row,
java.lang.Comparable key)
Sets the key for row with index row to key |
Dataset |
setSeriesInRows(boolean value)
|
Dataset |
setTitle(java.lang.String s)
|
Dataset |
setValueLabel(java.lang.String s)
|
void |
show(Context ctx)
|
void |
showInPanel(Panel panel)
|
HistogramAdapter |
toHistogram()
Returns a histogram of this dataset. |
StatisticsAdapter |
toStatistics()
Returns a statistics view of this dataset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final MimeType MIME_TYPE
Constructor Detail |
---|
public Dataset()
Method Detail |
---|
public Dataseries addColumn()
public Dataseries addColumn(java.lang.Comparable key)
key
- column key to use
public void addReference(SharedObjectReference ref)
addReference
in interface Shareable
public Dataseries addRow()
public Dataseries addRow(java.lang.Comparable key)
key
- row key to use
public void appendReferencesTo(java.util.List out)
appendReferencesTo
in interface Shareable
public DatasetAdapter asDatasetAdapter()
DatasetAdapter
. Note that the meanings of rows
and columns are exchanged.
DatasetAdapter
public javax.swing.table.TableModel asTableModel()
TableModel
.
TableModel
public Dataset clear()
public static void export(Item item, java.lang.Object info, Context context)
public java.lang.String getCategoryLabel()
public Datacell getCell(int row, int col)
row
and column
.
The rows and columns are extended if necessary.
row
- row index of cellcol
- column index of cell
public Dataseries getColumn(int column)
column
as a dataseries.
column
- column index
public int getColumnCount()
getColumnCount(int)
public int getColumnCount(int row)
row
.
The returned value does not exceed getColumnCount()
.
row
- row index
row
public java.lang.Comparable getColumnKey(int column)
column
.
If such a key has not been set explicitly by
setColumnKey(int, Comparable)
, an instance of
Character
is returned, its value being column + 'A'
.
column
- column index
public org.jfree.data.DomainOrder getDomainOrder()
public org.jfree.data.general.DatasetGroup getGroup()
public SharedObjectProvider getProvider()
getProvider
in interface Shareable
public Dataseries getRow(int row)
row
as a dataseries.
row
- row index
public int getRowCount()
public int getRowCount(int column)
public java.lang.Comparable getRowKey(int row)
row
.
If such a key has not been set explicitly by
setRowKey(int, Comparable)
, an instance of
Integer
is returned, its value being row + 1
.
row
- row index
public java.lang.String getTitle()
public java.lang.String getValueLabel()
public boolean hasCell(int row, int col)
public boolean hasSeriesInRows()
public void initProvider(SharedObjectProvider provider)
initProvider
in interface Shareable
public Dataseries operator$shl(double[] v)
public Dataseries operator$shl(java.lang.Number v)
public void removeReference(SharedObjectReference ref)
removeReference
in interface Shareable
public Dataset setCategoryLabel(java.lang.String s)
public Dataset setColumnKey(int col, java.lang.Comparable key)
column
to key
col
- column indexkey
- key for column
getColumnKey(int)
public void setDomainOrder(org.jfree.data.DomainOrder order)
public void setGroup(org.jfree.data.general.DatasetGroup group)
public Dataset setHistogramBins(int col, double min, double max, int count)
public Dataset setHistogramBins(int col, java.util.List<org.jfree.data.statistics.HistogramBin> bins)
public Dataset setRowKey(int row, java.lang.Comparable key)
row
to key
row
- row indexkey
- key for row
getRowKey(int)
public Dataset setSeriesInRows(boolean value)
public Dataset setTitle(java.lang.String s)
public Dataset setValueLabel(java.lang.String s)
public void show(Context ctx)
show
in interface Showable
public void showInPanel(Panel panel)
public HistogramAdapter toHistogram()
DatasetAdapter
public StatisticsAdapter toStatistics()
StatisticsAdapter
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |