infovis.utils
Class ArrayChildrenIterator

java.lang.Object
  extended by infovis.utils.ArrayChildrenIterator
All Implemented Interfaces:
RowIterator, Iterator

public class ArrayChildrenIterator
extends Object
implements RowIterator

Class ArrayChildrenIterator

Version:
$Revision: 1.3 $
Author:
Jean-Daniel Fekete

Constructor Summary
ArrayChildrenIterator(int[] children)
           
ArrayChildrenIterator(int index, int[] children)
           
 
Method Summary
 RowIterator copy()
          Clone myself with the right type returned.
 boolean hasNext()
           
 Object next()
           
 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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayChildrenIterator

public ArrayChildrenIterator(int index,
                             int[] children)

ArrayChildrenIterator

public ArrayChildrenIterator(int[] children)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator

nextRow

public int nextRow()
Description copied from interface: RowIterator
Returns the next row after incrementing the iterator.

Specified by:
nextRow in interface RowIterator
Returns:
the next row.

peekRow

public int peekRow()
Description copied from interface: RowIterator
Returns the next row without incrementing the iterator.

Specified by:
peekRow in interface RowIterator
Returns:
the next row.

copy

public RowIterator copy()
Description copied from interface: RowIterator
Clone myself with the right type returned.

Specified by:
copy in interface RowIterator
Returns:
a copy of myself.
See Also:
RowIterator.copy()


Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.