|
fop 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.layoutmgr.PositionIterator
org.apache.fop.layoutmgr.KnuthPossPosIter
public class KnuthPossPosIter
A dedicated PositionIterator
that is backed by an iterator
over a list of KnuthElement
s.
Constructor Summary | |
---|---|
KnuthPossPosIter(java.util.List elementList)
Auxiliary constructor |
|
KnuthPossPosIter(java.util.List elementList,
int startPos,
int endPos)
Main constructor |
Method Summary | |
---|---|
protected boolean |
checkNext()
|
ListElement |
getKE()
Peek at next, returning as ListElement. |
protected LayoutManager |
getLM(java.lang.Object nextObj)
|
protected Position |
getPos(java.lang.Object nextObj)
Default implementation assumes that the passed nextObj is itself a Position , and just returns it. |
Position |
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 |
Constructor Detail |
---|
public KnuthPossPosIter(java.util.List elementList, int startPos, int endPos)
elementList
- List of Knuth elementsstartPos
- starting position, inclusiveendPos
- ending position, exclusivepublic KnuthPossPosIter(java.util.List elementList)
elementList
- List of Knuth elementsMethod Detail |
---|
protected boolean checkNext()
checkNext
in class PositionIterator
public Position next()
next
in interface java.util.Iterator<Position>
next
in class PositionIterator
public ListElement getKE()
protected LayoutManager getLM(java.lang.Object nextObj)
getLM
in class PositionIterator
nextObj
- next object from which to obtain position
protected Position getPos(java.lang.Object nextObj)
nextObj
is itself a Position
, and just returns it.
Subclasses for which this is not the case, must provide a
suitable override this method.
getPos
in class PositionIterator
nextObj
- next object from which to obtain position
|
fop 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |