Package org.apache.fop.layoutmgr
Class LMiter
- java.lang.Object
-
- org.apache.fop.layoutmgr.LMiter
-
- All Implemented Interfaces:
java.util.Iterator<LayoutManager>
,java.util.ListIterator<LayoutManager>
- Direct Known Subclasses:
BlockLayoutManager.ProxyLMiter
public class LMiter extends java.lang.Object implements java.util.ListIterator<LayoutManager>
An iterator for layout managers.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
curPos
current position in iterationprotected java.util.List<LayoutManager>
listLMs
list of layout managersprivate LayoutManager
lp
The LayoutManager to which this LMiter is attached
-
Constructor Summary
Constructors Constructor Description LMiter(LayoutManager lp)
Construct a layout manager iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(LayoutManager lm)
boolean
hasNext()
boolean
hasPrevious()
LayoutManager
next()
int
nextIndex()
LayoutManager
previous()
int
previousIndex()
void
remove()
void
set(LayoutManager lm)
-
-
-
Field Detail
-
listLMs
protected java.util.List<LayoutManager> listLMs
list of layout managers
-
curPos
protected int curPos
current position in iteration
-
lp
private LayoutManager lp
The LayoutManager to which this LMiter is attached
-
-
Constructor Detail
-
LMiter
public LMiter(LayoutManager lp)
Construct a layout manager iterator.- Parameters:
lp
- the associated layout manager (parent)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<LayoutManager>
- Specified by:
hasNext
in interfacejava.util.ListIterator<LayoutManager>
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfacejava.util.ListIterator<LayoutManager>
-
previous
public LayoutManager previous() throws java.util.NoSuchElementException
- Specified by:
previous
in interfacejava.util.ListIterator<LayoutManager>
- Throws:
java.util.NoSuchElementException
-
next
public LayoutManager next() throws java.util.NoSuchElementException
- Specified by:
next
in interfacejava.util.Iterator<LayoutManager>
- Specified by:
next
in interfacejava.util.ListIterator<LayoutManager>
- Throws:
java.util.NoSuchElementException
-
remove
public void remove() throws java.util.NoSuchElementException
- Specified by:
remove
in interfacejava.util.Iterator<LayoutManager>
- Specified by:
remove
in interfacejava.util.ListIterator<LayoutManager>
- Throws:
java.util.NoSuchElementException
-
add
public void add(LayoutManager lm) throws java.lang.UnsupportedOperationException
- Specified by:
add
in interfacejava.util.ListIterator<LayoutManager>
- Throws:
java.lang.UnsupportedOperationException
-
set
public void set(LayoutManager lm) throws java.lang.UnsupportedOperationException
- Specified by:
set
in interfacejava.util.ListIterator<LayoutManager>
- Throws:
java.lang.UnsupportedOperationException
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfacejava.util.ListIterator<LayoutManager>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfacejava.util.ListIterator<LayoutManager>
-
-