Package org.apache.fop.layoutmgr
Class LMiter
java.lang.Object
org.apache.fop.layoutmgr.LMiter
- All Implemented Interfaces:
Iterator<LayoutManager>,ListIterator<LayoutManager>
- Direct Known Subclasses:
BlockLayoutManager.ProxyLMiter
An iterator for layout managers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intcurrent position in iterationprotected List<LayoutManager> list of layout managers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(LayoutManager lm) booleanhasNext()booleannext()intprevious()intvoidremove()voidset(LayoutManager lm) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
listLMs
list of layout managers -
curPos
protected int curPoscurrent position in iteration
-
-
Constructor Details
-
LMiter
Construct a layout manager iterator.- Parameters:
lp- the associated layout manager (parent)
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<LayoutManager>- Specified by:
hasNextin interfaceListIterator<LayoutManager>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<LayoutManager>
-
previous
- Specified by:
previousin interfaceListIterator<LayoutManager>- Throws:
NoSuchElementException
-
next
- Specified by:
nextin interfaceIterator<LayoutManager>- Specified by:
nextin interfaceListIterator<LayoutManager>- Throws:
NoSuchElementException
-
remove
- Specified by:
removein interfaceIterator<LayoutManager>- Specified by:
removein interfaceListIterator<LayoutManager>- Throws:
NoSuchElementException
-
add
- Specified by:
addin interfaceListIterator<LayoutManager>- Throws:
UnsupportedOperationException
-
set
- Specified by:
setin interfaceListIterator<LayoutManager>- Throws:
UnsupportedOperationException
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<LayoutManager>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<LayoutManager>
-