infovis.column
Class ColumnIterator
java.lang.Object
infovis.utils.AbstractRowIterator
infovis.utils.TableIterator
infovis.column.ColumnIterator
- All Implemented Interfaces:
- RowIterator, Iterator
public class ColumnIterator
- extends TableIterator
Iterator over a column.
- Version:
- $Revision: 1.3 $
- Author:
- Jean-Daniel Fekete
Constructor Summary |
ColumnIterator(Column c,
int first,
int end,
boolean up)
Creates a column iterator given a first and last index and
a direction. |
Method Summary |
int |
nextRow()
Returns the next row after incrementing the iterator. |
int |
peekRow()
Returns the next row without incrementing the iterator. |
void |
remove()
|
ColumnIterator
public ColumnIterator(Column c,
int first,
int end,
boolean up)
- Creates a column iterator given a first and last index and
a direction.
- Parameters:
c
- the columnfirst
- the first index (inclusive)end
- the end index (exclusive)up
- the direction: true for up and false for down.
nextRow
public int nextRow()
- Returns the next row after incrementing the iterator.
- Specified by:
nextRow
in interface RowIterator
- Overrides:
nextRow
in class TableIterator
- Returns:
- the next row.
peekRow
public int peekRow()
- Returns the next row without incrementing the iterator.
- Specified by:
peekRow
in interface RowIterator
- Overrides:
peekRow
in class TableIterator
- Returns:
- the next row.
remove
public void remove()
-
- Specified by:
remove
in interface Iterator
- Overrides:
remove
in class TableIterator
Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.