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
Modifier and TypeFieldDescriptionprotected int
current position in iterationprotected List<LayoutManager>
list of layout managers -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(LayoutManager lm) boolean
hasNext()
boolean
next()
int
previous()
int
void
remove()
void
set
(LayoutManager lm) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
hasNext
in interfaceIterator<LayoutManager>
- Specified by:
hasNext
in interfaceListIterator<LayoutManager>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceListIterator<LayoutManager>
-
previous
- Specified by:
previous
in interfaceListIterator<LayoutManager>
- Throws:
NoSuchElementException
-
next
- Specified by:
next
in interfaceIterator<LayoutManager>
- Specified by:
next
in interfaceListIterator<LayoutManager>
- Throws:
NoSuchElementException
-
remove
- Specified by:
remove
in interfaceIterator<LayoutManager>
- Specified by:
remove
in interfaceListIterator<LayoutManager>
- Throws:
NoSuchElementException
-
add
- Specified by:
add
in interfaceListIterator<LayoutManager>
- Throws:
UnsupportedOperationException
-
set
- Specified by:
set
in interfaceListIterator<LayoutManager>
- Throws:
UnsupportedOperationException
-
nextIndex
public int nextIndex()- Specified by:
nextIndex
in interfaceListIterator<LayoutManager>
-
previousIndex
public int previousIndex()- Specified by:
previousIndex
in interfaceListIterator<LayoutManager>
-