y.base
Interface EdgeCursor

All Superinterfaces:
YCursor

public interface EdgeCursor
extends YCursor

A cursor interface for iterating over edges.


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.
 Edge edge()
          Returns the edge at the current location of the cursor.
 
Methods inherited from interface y.base.YCursor
current, next, ok, prev, size, toFirst, toLast
 

Method Detail

edge

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

Returns:
the edge currently pointed to by this cursor.

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