infovis.column
Class ColumnIterator

java.lang.Object
  extended by infovis.utils.AbstractRowIterator
      extended by infovis.utils.TableIterator
          extended by 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()
          
 
Methods inherited from class infovis.utils.TableIterator
copy, hasNext
 
Methods inherited from class infovis.utils.AbstractRowIterator
next
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 column
first - the first index (inclusive)
end - the end index (exclusive)
up - the direction: true for up and false for down.
Method Detail

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.