|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.data.util.RowManager prefuse.data.util.FilteredRowManager
public class FilteredRowManager
RowManager that additionally manages mappings between the managed rows and those of a parent table.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class prefuse.data.util.RowManager |
---|
RowManager.ColumnRowIterator, RowManager.RowIterator |
Field Summary | |
---|---|
protected IntColumn |
m_childToParent
|
protected IntIntSortedMap |
m_parentToChild
|
Fields inherited from class prefuse.data.util.RowManager |
---|
m_table |
Constructor Summary | |
---|---|
FilteredRowManager(Table table)
Create a new FilteredRowManager. |
Method Summary | |
---|---|
int |
addRow(int parentRow)
Add a new row backed by the given parent row. |
void |
clear()
Clear the row manager status, marking all rows as available. |
int |
getChildRow(int parentRow)
Given a row in the parent table, return the corresponding row managed by this manager. |
int |
getColumnRow(int row,
int col)
Given Table row and column indices, return the corresponding row in the underlying data column. |
int |
getParentRow(int childRow)
Given a row managed by this manager, return the corresponding row in the parent table. |
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. |
void |
put(int childRow,
int parentRow)
Add a mapping between the given managed row and parent row. |
boolean |
releaseRow(int row)
Release a row and mark it as free. |
void |
remove(int childRow)
Remove a mapping between the given managed row and the corresponding parent row. |
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 |
Field Detail |
---|
protected IntColumn m_childToParent
protected IntIntSortedMap m_parentToChild
Constructor Detail |
---|
public FilteredRowManager(Table table)
table
- the table to manageMethod Detail |
---|
public void clear()
RowManager
clear
in class RowManager
RowManager.clear()
public int addRow(int parentRow)
parentRow
- the backing parent row
public boolean releaseRow(int row)
RowManager
releaseRow
in class RowManager
row
- the row index of the released row
RowManager.releaseRow(int)
public int getColumnRow(int row, int col)
RowManager
getColumnRow
in class RowManager
row
- the table rowcol
- the table column
RowManager.getColumnRow(int, int)
public int getTableRow(int columnRow, int col)
RowManager
getTableRow
in class RowManager
columnRow
- the row of the underlying data columncol
- the table column
RowManager.getTableRow(int, int)
public int getParentRow(int childRow)
childRow
- a row managed by this manager
public int getChildRow(int parentRow)
parentRow
- a row in the parent table
public void put(int childRow, int parentRow)
childRow
- a row managed by this managerparentRow
- a row in the parent tablepublic void remove(int childRow)
childRow
- a row managed by this manager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |