1 package prefuse.data.util; 2 3 import prefuse.data.CascadedTable; 4 import prefuse.data.Table; 5 6 13 public class CascadedRowManager extends FilteredRowManager { 14 15 19 public CascadedRowManager(Table table) { 20 super(table); 21 } 22 23 26 public int getColumnRow(int row, int col) { 27 if ( !isValidRow(row) ) 28 return -1; 29 else if ( col >= ((CascadedTable)getTable()).getLocalColumnCount() ) 30 return ((CascadedTable)m_table).getParentTable() 31 .getColumnRow(getParentRow(row), col); 32 else 33 return row; 34 } 35 36 39 public int getTableRow(int columnRow, int col) { 40 int row; 41 if ( col < ((CascadedTable)getTable()).getLocalColumnCount() ) { 42 row = columnRow; 43 } else { 44 row = getChildRow(columnRow); 45 } 46 return isValidRow(row) ? row : -1; 47 } 48 49 } | Popular Tags |