| java.lang.Object prefuse.data.util.RowManager
All known Subclasses: prefuse.data.util.FilteredRowManager,
RowManager | public class RowManager (Code) | | Manages the set of valid rows for a Table instance, maintains an index of
the available and occupied rows. RowManager instances are used internally
by Table instances.
author: jeffrey heer |
Inner Class :public class RowIterator extends IntIterator | |
Inner Class :public class ColumnRowIterator extends IntIterator | |
Constructor Summary | |
public | RowManager(Table table) Create a new RowManager for the given Table. |
Method Summary | |
public int | addRow() Add a new row to management. | public void | clear() Clear the row manager status, marking all rows as available. | public IntIterator | columnRows(int col) Return an iterator over column row indices. | public IntIterator | columnRows(int col, boolean reverse) Return an iterator over column row indices. | public IntIterator | columnRows(IntIterator rows, int col) Return an iterator over column row indices. | public int | getColumnRow(int row, int col) Given Table row and column indices, return the corresponding row in
the underlying data column. | public int | getMaximumRow() Get the highest-numbered occupied table row. | public int | getMinimumRow() Get the lowest-numbered occupied table row. | public int | getRowCount() | public Table | getTable() Get the table managed by this RowManager. | public 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. | public boolean | isValidRow(int row) Indicates if a given row value is a valid, occupied row of the table. | public boolean | releaseRow(int row) Release a row and mark it as free. | public IntIterator | rows() Get an iterator over the table rows. | public IntIterator | rows(boolean reverse) Get an iterator over the table rows. |
RowManager | public RowManager(Table table)(Code) | | Create a new RowManager for the given Table.
Parameters: table - the Table to manage |
addRow | public int addRow()(Code) | | Add a new row to management. The lowest valued available row
will be used.
the row index of the newly added row |
clear | public void clear()(Code) | | Clear the row manager status, marking all rows as available.
|
columnRows | public IntIterator columnRows(int col)(Code) | | Return an iterator over column row indices.
Parameters: col - the table column index an iterator over column row indices correspondingto valid rows of this RowManager |
columnRows | public IntIterator columnRows(int col, boolean reverse)(Code) | | Return an iterator over column row indices.
Parameters: col - the table column index Parameters: reverse - indicates the direction to iterate over, truefor reverse, false for normal an iterator over column row indices correspondingto valid rows of this RowManager |
columnRows | public IntIterator columnRows(IntIterator rows, int col)(Code) | | Return an iterator over column row indices.
Parameters: rows - an iterator over table row indices Parameters: col - the table column index an iterator over column row indices correspondingto valid rows of this RowManager |
getColumnRow | public int getColumnRow(int row, int col)(Code) | | 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.
Parameters: row - the table row Parameters: col - the table column the row value for accessing the correct value of thereferenced data column. |
getMaximumRow | public int getMaximumRow()(Code) | | Get the highest-numbered occupied table row.
the maximum row |
getMinimumRow | public int getMinimumRow()(Code) | | Get the lowest-numbered occupied table row.
the minimum row |
getRowCount | public int getRowCount()(Code) | | Get the total number of occupied rows
the number of rows being used by the table |
getTable | public Table getTable()(Code) | | Get the table managed by this RowManager.
the managed table |
getTableRow | public int getTableRow(int columnRow, int col)(Code) | | 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.
Parameters: columnRow - the row of the underlying data column Parameters: col - the table column the row value for the Table that corresponds to thegiven column row |
isValidRow | public boolean isValidRow(int row)(Code) | | Indicates if a given row value is a valid, occupied row of the table.
Parameters: row - the row index to check true if the row is valid and in use by the Table, false ifit is an illegal value or is currently free |
releaseRow | public boolean releaseRow(int row)(Code) | | Release a row and mark it as free.
Parameters: row - the row index of the released row true if the row was successfully released, false if itwas already free or if the input is not a valid row index |
rows | public IntIterator rows()(Code) | | Get an iterator over the table rows.
an iterator over the table rows |
rows | public IntIterator rows(boolean reverse)(Code) | | Get an iterator over the table rows.
Parameters: reverse - indicates the direction to iterate over, truefor reverse, false for normal an iterator over the table rows |
|
|