net.sourceforge.olduvai.accordiondrawer
Class SplitAxis.AxisIterator

java.lang.Object
  extended by net.sourceforge.olduvai.accordiondrawer.SplitAxis.AxisIterator
All Implemented Interfaces:
java.util.Iterator<SplitLine>
Enclosing class:
SplitAxis

public class SplitAxis.AxisIterator
extends java.lang.Object
implements java.util.Iterator<SplitLine>

Iterator for the SplitAxis class of objects.

Author:
Peter McLachlan (spark343@cs.ubc.ca)

Field Summary
private  SplitLine currLine
          Iterator state, the current pointed to split line.
private  int fModCount
          Set to SplitAxis.modCount, protection against a dynamic structure changing during the life of an iterator.
 
Constructor Summary
SplitAxis.AxisIterator()
          Creates iterator object, initializes state values.
 
Method Summary
 boolean hasNext()
          Test state to see if there are split lines after the current line.
 SplitLine next()
          Get the next split line in the axis from the current value of currLine.
 void remove()
          Stub function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currLine

private SplitLine currLine
Iterator state, the current pointed to split line.


fModCount

private int fModCount
Set to SplitAxis.modCount, protection against a dynamic structure changing during the life of an iterator.

Constructor Detail

SplitAxis.AxisIterator

public SplitAxis.AxisIterator()
Creates iterator object, initializes state values.

Method Detail

hasNext

public boolean hasNext()
Test state to see if there are split lines after the current line.

Specified by:
hasNext in interface java.util.Iterator<SplitLine>
Returns:
True if there is a next line after currLine.

next

public SplitLine next()
Get the next split line in the axis from the current value of currLine.

Specified by:
next in interface java.util.Iterator<SplitLine>

remove

public void remove()
Stub function.

Specified by:
remove in interface java.util.Iterator<SplitLine>