|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.layoutmgr.AbstractBreaker
org.apache.fop.layoutmgr.PageBreaker
public class PageBreaker
Handles the breaking of pages in an fo:flow
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.fop.layoutmgr.AbstractBreaker |
---|
AbstractBreaker.BlockSequence, AbstractBreaker.PageBreakPosition |
Field Summary |
---|
Fields inherited from class org.apache.fop.layoutmgr.AbstractBreaker |
---|
alignment, footnoteSeparatorLength, log |
Constructor Summary | |
---|---|
PageBreaker(PageSequenceLayoutManager pslm)
|
Method Summary | |
---|---|
protected void |
addAreas(PositionIterator posIter,
LayoutContext context)
Adds an area to the flow layout manager |
protected PageBreakingAlgorithm.PageBreakingLayoutListener |
createLayoutListener()
Creates and returns a PageBreakingLayoutListener for the PageBreakingAlgorithm to notify about layout problems. |
protected void |
doPhase3(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg,
int partCount,
AbstractBreaker.BlockSequence originalList,
AbstractBreaker.BlockSequence effectiveList)
Phase 3 of Knuth algorithm: Adds the areas |
protected void |
finishPart(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg,
AbstractBreaker.PageBreakPosition pbp)
|
protected LayoutManager |
getCurrentChildLM()
|
protected int |
getCurrentDisplayAlign()
|
protected int |
getNextBlockList(LayoutContext childLC,
int nextSequenceStartsOn)
Gets the next block list (sequence) and adds it to a list of block lists if it's not empty. |
protected int |
getNextBlockList(LayoutContext childLC,
int nextSequenceStartsOn,
Position positionAtIPDChange,
LayoutManager restartLM,
java.util.List firstElements)
Gets the next block list (sequence) and adds it to a list of block lists if it's not empty. |
protected java.util.List |
getNextKnuthElements(LayoutContext context,
int alignment)
|
protected java.util.List |
getNextKnuthElements(LayoutContext context,
int alignment,
Position positionAtIPDChange,
LayoutManager restartAtLM)
|
protected PageProvider |
getPageProvider()
Returns the PageProvider if any. |
protected LayoutManager |
getTopLevelLM()
|
protected void |
handleEmptyContent()
This method is called when no content is available for a part. |
protected int |
handleSpanChange(LayoutContext childLC,
int nextSequenceStartsOn)
Handles span changes reported through the LayoutContext . |
protected boolean |
hasMoreContent()
|
protected void |
observeElementList(java.util.List elementList)
Used for debugging purposes. |
protected void |
startPart(AbstractBreaker.BlockSequence list,
int breakClass)
|
protected void |
updateLayoutContext(LayoutContext context)
Used to update the LayoutContext in subclasses prior to starting a new element list. |
Methods inherited from class org.apache.fop.layoutmgr.AbstractBreaker |
---|
addAreas, addAreas, createLayoutContext, doLayout, isEmpty, isPartOverflowRecoveryActivated, isSinglePartFavored |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageBreaker(PageSequenceLayoutManager pslm)
Method Detail |
---|
protected void updateLayoutContext(LayoutContext context)
updateLayoutContext
in class AbstractBreaker
context
- the LayoutContext to updateprotected LayoutManager getTopLevelLM()
getTopLevelLM
in class AbstractBreaker
protected PageProvider getPageProvider()
getPageProvider
in class AbstractBreaker
protected PageBreakingAlgorithm.PageBreakingLayoutListener createLayoutListener()
createLayoutListener
in class AbstractBreaker
protected int handleSpanChange(LayoutContext childLC, int nextSequenceStartsOn)
LayoutContext
.
Only used by the PSLM and called by getNextBlockList()
.
handleSpanChange
in class AbstractBreaker
childLC
- the LayoutContextnextSequenceStartsOn
- previous value for break handling
protected int getNextBlockList(LayoutContext childLC, int nextSequenceStartsOn)
getNextBlockList
in class AbstractBreaker
childLC
- LayoutContext to usenextSequenceStartsOn
- indicates on what page the next sequence should start
protected int getNextBlockList(LayoutContext childLC, int nextSequenceStartsOn, Position positionAtIPDChange, LayoutManager restartLM, java.util.List firstElements)
getNextBlockList
in class AbstractBreaker
childLC
- LayoutContext to usenextSequenceStartsOn
- indicates on what page the next sequence
should startpositionAtIPDChange
- last element on the part before an IPD changerestartLM
- the layout manager from which to restart, if IPD
change occurs between two LMsfirstElements
- elements from non-restartable LMs on the new page
protected java.util.List getNextKnuthElements(LayoutContext context, int alignment)
getNextKnuthElements
in class AbstractBreaker
protected java.util.List getNextKnuthElements(LayoutContext context, int alignment, Position positionAtIPDChange, LayoutManager restartAtLM)
getNextKnuthElements
in class AbstractBreaker
protected int getCurrentDisplayAlign()
getCurrentDisplayAlign
in class AbstractBreaker
protected boolean hasMoreContent()
hasMoreContent
in class AbstractBreaker
protected void addAreas(PositionIterator posIter, LayoutContext context)
addAreas
in class AbstractBreaker
posIter
- the position iteratorcontext
- the layout contextprotected void doPhase3(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg, int partCount, AbstractBreaker.BlockSequence originalList, AbstractBreaker.BlockSequence effectiveList)
doPhase3
in class AbstractBreaker
alg
- PageBreakingAlgorithm instance which determined the breakspartCount
- number of parts (pages) to be renderedoriginalList
- original Knuth element listeffectiveList
- effective Knuth element list (after adjustments)protected void startPart(AbstractBreaker.BlockSequence list, int breakClass)
startPart
in class AbstractBreaker
protected void handleEmptyContent()
handleEmptyContent
in class AbstractBreaker
protected void finishPart(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg, AbstractBreaker.PageBreakPosition pbp)
finishPart
in class AbstractBreaker
protected LayoutManager getCurrentChildLM()
getCurrentChildLM
in class AbstractBreaker
protected void observeElementList(java.util.List elementList)
observeElementList
in class AbstractBreaker
elementList
- the Knuth element list
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |