|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfovis.utils.ChangeManager
infovis.column.AbstractColumn
infovis.column.ColumnProxy
infovis.table.TableProxy
infovis.table.FilteredTable
public class FilteredTable
Proxy Table filtering Columns.
| Field Summary |
|---|
| Fields inherited from class infovis.column.AbstractColumn |
|---|
MODIFIED_ALL, MODIFIED_NONE |
| Fields inherited from interface infovis.Table |
|---|
FILTER_COLUMN, INTERNAL_PREFIX, NIL, SELECTION_COLUMN |
| Fields inherited from interface infovis.metadata.Constants |
|---|
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
| Constructor Summary | |
|---|---|
FilteredTable(Table table)
Create a Filtered Table from a reference table. |
|
FilteredTable(Table table,
ColumnFilter filter)
Create a Filtered Table from a reference table and a column filter. |
|
FilteredTable(Table table,
ColumnFilter filter,
Comparator comp)
Create a Filtered Table from a reference table, a column filter and a comparator that specifies the order of columns in the table. |
|
| Method Summary | |
|---|---|
boolean |
filter(Column c)
Returns true if the Column
should be filtered out. |
Column |
getColumn(String name)
Returns the column of a specified name. |
Column |
getColumnAt(int index)
Returns the column at a specified index. |
int |
getColumnCount()
Returns the number of columns of the table. |
Comparator |
getComparator()
Returns the comparator. |
ColumnFilter |
getFilter()
Returns the filter. |
int |
indexOf(Column column)
Returns the index of a specified column. |
int |
indexOf(String name)
Returns the index of a column of a specified name. |
void |
setComparator(Comparator comparator)
Sets the comparator. |
void |
setFilter(ColumnFilter filter)
Sets the filter. |
void |
sortColumns(Comparator comp)
Sorts the column according the the specified Comparator. |
void |
stateChanged(ChangeEvent e)
|
| Methods inherited from class infovis.table.TableProxy |
|---|
addColumn, addTableModelListener, clear, getColumnClass, getColumnName, getLastRow, getRowCount, getTable, getValueAt, isCellEditable, isRowValid, removeColumn, removeTableModelListener, reverseIterator, setColumnAt, setValueAt, tableChanged |
| Methods inherited from class infovis.column.ColumnProxy |
|---|
addValue, addValueOrNull, capacity, compare, dispose, ensureCapacity, getClientProperty, getFormat, getMaxIndex, getMetadata, getMinIndex, getName, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, iterator, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size |
| Methods inherited from class infovis.column.AbstractColumn |
|---|
addChangeListener, compareValues, computeValueMap, computeValueMap, equalObj, equals, getLastModifiedRow, toString |
| Methods inherited from class infovis.utils.ChangeManager |
|---|
disableNotify, enableNotify, getModCount, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface infovis.Column |
|---|
addChangeListener, addValue, addValueOrNull, capacity, disableNotify, enableNotify, ensureCapacity, getFormat, getMaxIndex, getMinIndex, getName, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, iterator, removeChangeListener, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size |
| Methods inherited from interface infovis.Metadata |
|---|
getClientProperty, getMetadata |
| Methods inherited from interface cern.colt.function.IntComparator |
|---|
compare, equals |
| Constructor Detail |
|---|
public FilteredTable(Table table,
ColumnFilter filter,
Comparator comp)
table - the tablefilter - the filtercomp - the comparator for the order of the columns.
public FilteredTable(Table table,
ColumnFilter filter)
table - the tablefilter - the filterpublic FilteredTable(Table table)
table - the table| Method Detail |
|---|
public boolean filter(Column c)
true if the Column
should be filtered out.
filter in interface ColumnFilterc - the column
true if the Column
should be filtered out.public Column getColumn(String name)
TableProxy
getColumn in interface TablegetColumn in class TableProxyname - the name.
Table.getColumn(String)public int getColumnCount()
TableProxy
getColumnCount in interface TablegetColumnCount in interface TableModelgetColumnCount in class TableProxyTable.getColumnCount()public void sortColumns(Comparator comp)
Comparator.
comp - the Comparator.public Column getColumnAt(int index)
getColumnAt in interface TablegetColumnAt in class TableProxyindex - the index.
public int indexOf(String name)
indexOf in interface TableindexOf in class TableProxyname - the name.
public int indexOf(Column column)
indexOf in interface TableindexOf in class TableProxycolumn - the column
public Comparator getComparator()
public ColumnFilter getFilter()
public void setComparator(Comparator comparator)
comparator - The comparator to setpublic void setFilter(ColumnFilter filter)
filter - The filter to setpublic void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListenerstateChanged in class ColumnProxy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||