IBM ILOG Dojo Diagrammer 1.1 API Documentation
Legend: Array Boolean Constructor Date DomNode Error Function Namespace Number Object RegExp Singleton String

ibm_ilog.graphlayout.IIterator (version 1.1-SNAPSHOT)

Object » ibm_ilog.graphlayout.IIterator
dojo.require("ibm_ilog.graphlayout.IIterator");

This class is used in the ibm_graphlayout API to return a set of values that can be enumerated. You can use either the hasNext()/next() or hasMoreElements()/nextElement() pairs of methods, as follows:

var constraints = layout.getConstraints(); // returns an IITerator
while(constraints.hasNext()){
var constraint = constraints.next();
...
}

Method Summary

  • hasMoreElements() returns Boolean Returns true if another value is available, or false if the enumeration is done.
  • hasNext() returns Boolean Returns true if another value is available, or false if the enumeration is done.
  • next() returns Object Returns the next value of the enumeration, or throws an Error if no value is available.
  • nextElement() returns Object Returns the next value of the enumeration, or throws an Error if no value is available.

Methods

hasMoreElements
Returns Boolean
Returns true if another value is available, or false if the enumeration is done.
hasNext
Returns Boolean
Returns true if another value is available, or false if the enumeration is done.
next
Returns Object
Returns the next value of the enumeration, or throws an Error if no value is available.
nextElement
Returns Object
Returns the next value of the enumeration, or throws an Error if no value is available.