Search this API

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

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

Returns:
The edge currently pointed to by this cursor.

cyclicNext

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


cyclicPrev

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


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