|
||||||||||
| 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.BasicColumn
infovis.column.BasicObjectColumn
infovis.column.ColumnColumn
infovis.table.DefaultTable
infovis.table.DefaultDynamicTable
public class DefaultDynamicTable
Default implementatio for dynamic tables.
| 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 | |
|---|---|
DefaultDynamicTable()
Constructor. |
|
DefaultDynamicTable(int size)
Constructor with a given allocated rowCount. |
|
| Method Summary | |
|---|---|
int |
addRow()
Creates a new row and returns it. |
void |
clear()
Removes all of the elements from this column. The Column will be empty after this call returns. WARNING: if there is an associated format that maintains a status, such as a CategoricalFormat, it
is not cleared so results may not be what you expected. The
CategoricalFormat can be cleared explicitely if
needed. |
int |
getLastRow()
Returns the index of the last row in the table. |
int |
getRowCount()
Returns the number of rows in the table. |
boolean |
isRowValid(int row)
Checks whether a specified row is valid. |
RowIterator |
iterator()
Returns a RowIterator over all the valid rows of this column. |
void |
removeRow(int row)
Removes a specified row. |
RowIterator |
reverseIterator()
Returns an iterator over the columns of this table in reverse order. |
| Methods inherited from class infovis.column.ColumnColumn |
|---|
add, compare, compare, definedValue, fill, findColumn, get, getColumn, getColumn, getValueClass, set, setExtend |
| Methods inherited from class infovis.column.BasicObjectColumn |
|---|
add, capacity, compare, compareValues, ensureCapacity, fill, format, getObjectAt, getOrder, getValueAt, getValueReference, hasUndefinedValue, indexOf, isValueUndefined, parse, remove, remove, setExtend, setObjectAt, setOrder, setSize, setValueAt, setValueUndefined, size |
| Methods inherited from class infovis.column.BasicColumn |
|---|
addValue, addValueOrNull, firstValidRow, getClientProperty, getFormat, getMaxIndex, getMetadata, getMinIndex, getName, isEmpty, isInternal, lastValidRow, setFormat, setName, setValueOrNullAt, toString |
| Methods inherited from class infovis.column.AbstractColumn |
|---|
addChangeListener, computeValueMap, computeValueMap, equalObj, equals, getLastModifiedRow |
| Methods inherited from class infovis.utils.ChangeManager |
|---|
getModCount, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface infovis.Table |
|---|
addColumn, getColumn, getColumnAt, getColumnCount, getTable, indexOf, indexOf, removeColumn, setColumnAt |
| Methods inherited from interface infovis.Column |
|---|
addChangeListener, addValue, addValueOrNull, capacity, disableNotify, enableNotify, ensureCapacity, getFormat, getMaxIndex, getMinIndex, getName, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, 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 |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
addTableModelListener, getColumnClass, getColumnName, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
| Constructor Detail |
|---|
public DefaultDynamicTable()
public DefaultDynamicTable(int size)
size - the number of rows already allocated.| Method Detail |
|---|
public void clear()
CategoricalFormat, it
is not cleared so results may not be what you expected. The
CategoricalFormat can be cleared explicitely if
needed.
clear in interface Columnclear in interface Tableclear in class DefaultTablepublic int getRowCount()
getRowCount in interface TablegetRowCount in interface TableModelgetRowCount in class DefaultTablepublic int getLastRow()
getLastRow in interface TablegetLastRow in class DefaultTablepublic RowIterator iterator()
iterator in interface Columniterator in class DefaultTablepublic RowIterator reverseIterator()
reverseIterator in interface TablereverseIterator in class DefaultTablepublic boolean isRowValid(int row)
isRowValid in interface TableisRowValid in class DefaultTablerow - the row.
true if it is.public int addRow()
addRow in interface DynamicTablepublic void removeRow(int row)
removeRow in interface DynamicTablerow - the row to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||