y.base
Interface NodeCursor

All Superinterfaces:
YCursor

public interface NodeCursor
extends YCursor

A cursor interface for iterating over nodes.


Method Summary
 void cyclicNext()
          Moves the cursor to the cyclic next element of the underlying sequence.
 void cyclicPrev()
          Moves the cursor to the cyclic previous element of the underlying sequence.
 Node node()
          Returns the node at the current location of the cursor.
 
Methods inherited from interface y.base.YCursor
current, next, ok, prev, size, toFirst, toLast
 

Method Detail

node

public Node node()
Returns the node at the current location of the cursor. This method is the typed variant of current().


cyclicNext

public void cyclicNext()
Moves the cursor to the cyclic next element of the underlying sequence. This is the next element if available, if not available it is the first element.


cyclicPrev

public void cyclicPrev()
Moves the cursor to the cyclic previous element of the underlying sequence. This is the previous element if available, if not available it is the last element.


© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003