ilog.views
Interface IlvGraphicEnumeration

All Known Implementing Classes:
IlvFilteredGraphicEnumeration

public interface IlvGraphicEnumeration

An object that implements the IlvGraphicEnumeration interface generates a series of graphic objects, one at a time. Successive calls to the nextElement method return successive graphic objects of the series.

For example, to print all graphic objects of a manager:

    for (IlvGraphicEnumeration e = manager.getObjects() ; 
        e.hasMoreElements() ;) {
        System.out.println(e.nextElement());
    }
 


Method Summary
 boolean hasMoreElements()
          Tests if the enumeration contains more elements.
 IlvGraphic nextElement()
          Returns the next graphic object of the enumeration.
 

Method Detail

hasMoreElements

boolean hasMoreElements()
Tests if the enumeration contains more elements.


nextElement

IlvGraphic nextElement()
Returns the next graphic object of the enumeration. Calling this method will enumerate successive elements.

Throws:
NoSuchElementException - if there are no more existing elements.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.