|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.nexttext.TextObjectIterator
public class TextObjectIterator
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 |
---|
public boolean hasNext()
public TextObject next()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |