|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.datatable.AbstractDataTable
public abstract class AbstractDataTable
This abstract data table implementation provides some default implementations for data
tables like listener handling. The method fireEvent() can be used to promote
changes to all listeners.
In addition, IO methods are also provided by this abstract implementation.
| Constructor Summary | |
|---|---|
AbstractDataTable()
This is a constructor that will not set any name. |
|
AbstractDataTable(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
addDataTableListener(DataTableListener dataTableListener)
Adds a table listener listening for data changes. |
boolean |
containsMissingValues()
Returns true if this data table contains missing values. |
void |
finishReporting()
|
protected void |
fireEvent()
|
java.lang.String |
getCell(int row,
int column)
|
java.lang.String[] |
getColumnNames()
Returns an array of all column names. |
int |
getColumnNumber()
|
java.lang.String |
getName()
Returns the name of this data table. |
int |
getRowNumber()
|
int |
getSelectionCount()
|
java.lang.String |
getValueAsString(DataTableRow row,
int column)
Must deliver the proper value as string, i.e. the mapped value for nominal columns. |
boolean |
isDeselected(java.lang.String id)
|
boolean |
isFirstColumnHeader()
|
boolean |
isFirstLineHeader()
|
void |
prepareReporting()
|
void |
removeDataTableListener(DataTableListener dataTableListener)
Removes the given listener from the list of data change listeners. |
void |
setName(java.lang.String name)
Sets the name of the data table. |
void |
setSelection(AbstractChartPanel.Selection selection)
|
void |
write(java.io.PrintWriter out)
Writes the table into the given writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.rapidminer.datatable.DataTable |
|---|
add, getColumnIndex, getColumnName, getColumnWeight, getNumberOfColumns, getNumberOfRows, getNumberOfSpecialColumns, getNumberOfValues, getRow, isDate, isDateTime, isNominal, isNumerical, isSpecial, isSupportingColumnWeights, isTime, iterator, mapIndex, mapString, sample |
| Constructor Detail |
|---|
public AbstractDataTable()
public AbstractDataTable(java.lang.String name)
| Method Detail |
|---|
public java.lang.String getName()
DataTable
getName in interface DataTablepublic void setName(java.lang.String name)
DataTable
setName in interface DataTablepublic java.lang.String[] getColumnNames()
DataTable
getColumnNames in interface DataTablepublic void addDataTableListener(DataTableListener dataTableListener)
DataTable
addDataTableListener in interface DataTablepublic void removeDataTableListener(DataTableListener dataTableListener)
DataTable
removeDataTableListener in interface DataTableprotected void fireEvent()
public java.lang.String getValueAsString(DataTableRow row,
int column)
DataTable
getValueAsString in interface DataTable
public void write(java.io.PrintWriter out)
throws java.io.IOException
DataTable
write in interface DataTablejava.io.IOExceptionpublic boolean containsMissingValues()
DataTable
containsMissingValues in interface DataTablepublic int getRowNumber()
getRowNumber in interface Tableablepublic int getColumnNumber()
getColumnNumber in interface Tableable
public java.lang.String getCell(int row,
int column)
getCell in interface Tableablepublic void prepareReporting()
prepareReporting in interface Tableablepublic void finishReporting()
finishReporting in interface Tableablepublic boolean isFirstLineHeader()
isFirstLineHeader in interface Tableablepublic boolean isFirstColumnHeader()
isFirstColumnHeader in interface Tableablepublic boolean isDeselected(java.lang.String id)
isDeselected in interface DataTablepublic void setSelection(AbstractChartPanel.Selection selection)
setSelection in interface DataTablepublic int getSelectionCount()
getSelectionCount in interface DataTable
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||