prefuse.data.util
Class CascadedRowManager

java.lang.Object
  extended by prefuse.data.util.RowManager
      extended by prefuse.data.util.FilteredRowManager
          extended by prefuse.data.util.CascadedRowManager

public class CascadedRowManager
extends FilteredRowManager

RowManager instance that additionally takes into account tables which inherit from a parent table but can also have their own, dedicated columns.

Author:
jeffrey heer

Nested Class Summary
 
Nested classes/interfaces inherited from class prefuse.data.util.RowManager
RowManager.ColumnRowIterator, RowManager.RowIterator
 
Field Summary
 
Fields inherited from class prefuse.data.util.FilteredRowManager
m_childToParent, m_parentToChild
 
Fields inherited from class prefuse.data.util.RowManager
m_table
 
Constructor Summary
CascadedRowManager(Table table)
          Create a new CascadedRowManager.
 
Method Summary
 int getColumnRow(int row, int col)
          Given Table row and column indices, return the corresponding row in the underlying data column.
 int getTableRow(int columnRow, int col)
          Given a column row index and a table column index, return the table row corresponding to the column value.
 
Methods inherited from class prefuse.data.util.FilteredRowManager
addRow, clear, getChildRow, getParentRow, put, releaseRow, remove
 
Methods inherited from class prefuse.data.util.RowManager
addRow, columnRows, columnRows, columnRows, getMaximumRow, getMinimumRow, getRowCount, getTable, isValidRow, rows, rows
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CascadedRowManager

public CascadedRowManager(Table table)
Create a new CascadedRowManager.

Parameters:
table - the table to manage
Method Detail

getColumnRow

public int getColumnRow(int row,
                        int col)
Description copied from class: RowManager
Given Table row and column indices, return the corresponding row in the underlying data column. This is of use for CascadedTable instances, which may reveal only a limited set of a parent table's rows and so must map between table rows and the actual indices of the inherited data columns.

Overrides:
getColumnRow in class FilteredRowManager
Parameters:
row - the table row
col - the table column
Returns:
the row value for accessing the correct value of the referenced data column.
See Also:
RowManager.getColumnRow(int, int)

getTableRow

public int getTableRow(int columnRow,
                       int col)
Description copied from class: RowManager
Given a column row index and a table column index, return the table row corresponding to the column value. This is of use for CascadedTable instances, which may reveal only a limited set of a parent table's rows and so must map between table rows and the actual indices of the inherited data columns.

Overrides:
getTableRow in class FilteredRowManager
Parameters:
columnRow - the row of the underlying data column
col - the table column
Returns:
the row value for the Table that corresponds to the given column row
See Also:
RowManager.getTableRow(int, int)


Copyright © 2007 Regents of the University of California