infovis
Interface DynamicTable

All Superinterfaces:
Column, Constants, IntComparator, Metadata, RowComparator, Serializable, Table, TableModel
All Known Subinterfaces:
Tree
All Known Implementing Classes:
DefaultDynamicTable, DefaultTree, DynamicTableProxy, IcicleTreeVisualization, NodeLinkTreeVisualization, TreeAsGraph, TreemapVisualization, TreeProxy, TreeVisualization

public interface DynamicTable
extends Table

A Dynamic Table is a Table that can have elements removed.

When a row is removed from a table, its index is considered free and can be reused when creating a new row. The isValid(int row) can be used to test whether a row is free.

Version:
$Revision: 1.4 $
Author:
Jean-Daniel Fekete

Field Summary
 
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
 
Method Summary
 int addRow()
          Creates a new row and returns it.
 void removeRow(int row)
          Removes a specified row.
 
Methods inherited from interface infovis.Table
addColumn, clear, getColumn, getColumnAt, getColumnCount, getLastRow, getRowCount, getTable, indexOf, indexOf, isRowValid, removeColumn, reverseIterator, setColumnAt
 
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
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnName, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

addRow

int addRow()
Creates a new row and returns it.

Returns:
the new created row.

removeRow

void removeRow(int row)
Removes a specified row.

Parameters:
row - the row to remove.


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.