org.apache.fop.layoutmgr

Class PageBreaker


public class PageBreaker
extends AbstractBreaker

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 void
doPhase3(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg, int partCount, AbstractBreaker.BlockSequence originalList, AbstractBreaker.BlockSequence effectiveList)
Performs phase 3 operation
protected void
finishPart(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg, AbstractBreaker.PageBreakPosition pbp)
protected LayoutManager
getCurrentChildLM()
protected int
getCurrentDisplayAlign()
protected PageBreakingAlgorithm.PageBreakingLayoutListener
getLayoutListener()
protected int
getNextBlockList(LayoutContext childLC, int nextSequenceStartsOn)
protected LinkedList
getNextKnuthElements(LayoutContext context, int alignment)
protected PageProvider
getPageProvider()
protected LayoutManager
getTopLevelLM()
protected void
handleEmptyContent()
protected int
handleSpanChange(LayoutContext childLC, int nextSequenceStartsOn)
protected boolean
hasMoreContent()
protected void
observeElementList(List elementList)
protected void
startPart(AbstractBreaker.BlockSequence list, int breakClass)
protected void
updateLayoutContext(LayoutContext context)

Methods inherited from class org.apache.fop.layoutmgr.AbstractBreaker

addAreas, addAreas, addAreas, createLayoutContext, doLayout, doLayout, doPhase3, finishPart, getCurrentChildLM, getCurrentDisplayAlign, getLayoutListener, getNextBlockList, getNextKnuthElements, getPageProvider, getTopLevelLM, handleEmptyContent, handleSpanChange, hasMoreContent, isEmpty, isPartOverflowRecoveryActivated, isSinglePartFavored, observeElementList, startPart, updateLayoutContext

Constructor Details

PageBreaker

public PageBreaker(PageSequenceLayoutManager pslm)

Method Details

addAreas

protected void addAreas(PositionIterator posIter,
                        LayoutContext context)
Adds an area to the flow layout manager
Overrides:
addAreas in interface AbstractBreaker
Parameters:
posIter - the position iterator
context - the layout context

doPhase3

protected void doPhase3(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg,
                        int partCount,
                        AbstractBreaker.BlockSequence originalList,
                        AbstractBreaker.BlockSequence effectiveList)
Performs phase 3 operation
Overrides:
doPhase3 in interface AbstractBreaker
Parameters:
alg - page breaking algorithm
partCount - part count
originalList - the block sequence original list
effectiveList - the block sequence effective list

finishPart

protected void finishPart(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg,
                          AbstractBreaker.PageBreakPosition pbp)
Overrides:
finishPart in interface AbstractBreaker

getCurrentChildLM

protected LayoutManager getCurrentChildLM()
Overrides:
getCurrentChildLM in interface AbstractBreaker
Returns:
the current child flow layout manager

getCurrentDisplayAlign

protected int getCurrentDisplayAlign()
Overrides:
getCurrentDisplayAlign in interface AbstractBreaker
Returns:
current display alignment

getLayoutListener

protected PageBreakingAlgorithm.PageBreakingLayoutListener getLayoutListener()
Overrides:
getLayoutListener in interface AbstractBreaker

getNextBlockList

protected int getNextBlockList(LayoutContext childLC,
                               int nextSequenceStartsOn)
Overrides:
getNextBlockList in interface AbstractBreaker

getNextKnuthElements

protected LinkedList getNextKnuthElements(LayoutContext context,
                                          int alignment)
Overrides:
getNextKnuthElements in interface AbstractBreaker

getPageProvider

protected PageProvider getPageProvider()
Overrides:
getPageProvider in interface AbstractBreaker

getTopLevelLM

protected LayoutManager getTopLevelLM()
Overrides:
getTopLevelLM in interface AbstractBreaker

handleEmptyContent

protected void handleEmptyContent()
Overrides:
handleEmptyContent in interface AbstractBreaker

handleSpanChange

protected int handleSpanChange(LayoutContext childLC,
                               int nextSequenceStartsOn)
Overrides:
handleSpanChange in interface AbstractBreaker

hasMoreContent

protected boolean hasMoreContent()
Overrides:
hasMoreContent in interface AbstractBreaker
Returns:
whether or not this flow has more page break opportunities

observeElementList

protected void observeElementList(List elementList)
Overrides:
observeElementList in interface AbstractBreaker
See Also:
org.apache.fop.layoutmgr.AbstractBreaker.observeElementList(java.util.List)

startPart

protected void startPart(AbstractBreaker.BlockSequence list,
                         int breakClass)
Overrides:
startPart in interface AbstractBreaker

updateLayoutContext

protected void updateLayoutContext(LayoutContext context)
Overrides:
updateLayoutContext in interface AbstractBreaker

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.