Package org.apache.fop.layoutmgr
Class KnuthPossPosIter
java.lang.Object
org.apache.fop.layoutmgr.PositionIterator
org.apache.fop.layoutmgr.KnuthPossPosIter
A dedicated
PositionIterator
that is backed by an iterator
over a list of KnuthElement
s.-
Constructor Summary
ConstructorDescriptionKnuthPossPosIter
(List elementList) Auxiliary constructorKnuthPossPosIter
(List elementList, int startPos, int endPos) Main constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
getKE()
Peek at next, returning as ListElement.protected LayoutManager
protected Position
Default implementation assumes that the passednextObj
is itself aPosition
, and just returns it.next()
Methods inherited from class org.apache.fop.layoutmgr.PositionIterator
endIter, getNextChildLM, hasNext, peekNext, remove
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
-
Constructor Details
-
KnuthPossPosIter
Main constructor- Parameters:
elementList
- List of Knuth elementsstartPos
- starting position, inclusiveendPos
- ending position, exclusive
-
KnuthPossPosIter
Auxiliary constructor- Parameters:
elementList
- List of Knuth elements
-
-
Method Details
-
checkNext
protected boolean checkNext()- Overrides:
checkNext
in classPositionIterator
- Returns:
- true if not at end of sub-sequence with same child layout manager
-
next
- Specified by:
next
in interfaceIterator<Position>
- Overrides:
next
in classPositionIterator
-
getKE
Peek at next, returning as ListElement.- Returns:
- peek at next as ListElement
-
getLM
- Overrides:
getLM
in classPositionIterator
- Parameters:
nextObj
- next object from which to obtain position- Returns:
- layout manager
-
getPos
Default implementation assumes that the passednextObj
is itself aPosition
, and just returns it. Subclasses for which this is not the case, must provide a suitable override this method.- Overrides:
getPos
in classPositionIterator
- Parameters:
nextObj
- next object from which to obtain position- Returns:
- position of next object.
-