|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvFilteredGraphicEnumeration
public class IlvFilteredGraphicEnumeration
A class used to enumerate filtered graphic objects (IlvGraphic).
This class allows you to browse only the elements of an IlvGraphicEnumeration
which respect some conditions. You should implement these conditions in your
implementation of the interface IlvGraphicFilter.
IlvGraphicFilter,
IlvGraphicEnumeration| Constructor Summary | |
|---|---|
IlvFilteredGraphicEnumeration(IlvGraphicEnumeration e,
IlvGraphicFilter filter)
Creates a new IlvFilteredGraphicEnumeration. |
|
| Method Summary | |
|---|---|
IlvGraphicFilter |
getFilter()
Returns the filter to be applied to the initial enumeration. |
boolean |
hasMoreElements()
Returns true if the enumeration contains more elements respecting
the filtering condition, and false otherwise. |
IlvGraphic |
nextElement()
Returns the next graphic object of the enumeration respecting the filtering condition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvFilteredGraphicEnumeration(IlvGraphicEnumeration e,
IlvGraphicFilter filter)
IlvFilteredGraphicEnumeration.
e - the graphic enumeration you want to be filteredfilter - the graphic filter to be used for filtering the graphic objects| Method Detail |
|---|
public IlvGraphicFilter getFilter()
public boolean hasMoreElements()
true if the enumeration contains more elements respecting
the filtering condition, and false otherwise.
To know if an element respects the filtering condition, this method calls the
method IlvGraphicFilter.accept(IlvGraphic)
on the filter instance.
hasMoreElements in interface IlvGraphicEnumerationIlvGraphicFilter.accept(ilog.views.IlvGraphic)public IlvGraphic nextElement()
nextElement in interface IlvGraphicEnumerationNoSuchElementException - if there are no more such elementshasMoreElements()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||