net.sourceforge.combean.adapters.jgraph
Class JGraphEdgeIterator

Package class diagram package JGraphEdgeIterator
java.lang.Object
  extended by net.sourceforge.combean.adapters.jgraph.JGraphEdgeIterator
All Implemented Interfaces:
EdgeIterator

public class JGraphEdgeIterator
extends Object
implements EdgeIterator

EdgeIterator for using a JGraph GraphModel as Combean Graph


Constructor Summary
JGraphEdgeIterator(org.jgraph.graph.GraphModel g, Object node)
          constructor
 
Method Summary
 boolean hasNext()
          Check if further edges exist for this iteration.
 Edge next()
          Switch to the next edge in the iteration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGraphEdgeIterator

public JGraphEdgeIterator(org.jgraph.graph.GraphModel g,
                          Object node)
constructor

Parameters:
g - the GraphModel where the edge iteration takes place
node - the node of which the incident edges shall be retrieved
Method Detail

hasNext

public boolean hasNext()
Description copied from interface: EdgeIterator
Check if further edges exist for this iteration.

Specified by:
hasNext in interface EdgeIterator
Returns:
true if there are further edges

next

public Edge next()
Description copied from interface: EdgeIterator
Switch to the next edge in the iteration.

Specified by:
next in interface EdgeIterator
Returns:
the next edge