net.nexttext
Class TextObjectIterator

java.lang.Object
  extended by net.nexttext.TextObjectIterator

public class TextObjectIterator
extends java.lang.Object

A utility class used to traverse the children of a TextObjectGroup.

The traversal is done depth-first, meaning that all of a node's children will be traversed before that node is. This behaviour is necessary for the Simulator to update bounding boxes correctly. If you find a need for a bread-first traversal, then you should make it an option in this class.

The node itself will be returned as part of the traversal.


Method Summary
 boolean hasNext()
          If the traversal is complete.
 TextObject next()
          Get the next node in the traversal.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasNext

public boolean hasNext()
If the traversal is complete.


next

public TextObject next()
Get the next node in the traversal.