|
fop 0.95 | ||||||||||
| 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
Handles the breaking of pages in an fo:flow
| Nested Class Summary |
| Nested classes 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()
Returns a PageBreakingLayoutListener for the PageBreakingAlgorithm to notify about layout problems. |
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 java.util.LinkedList |
getNextKnuthElements(LayoutContext context,
int alignment)
|
protected PageProvider |
getPageProvider()
Returns the PageProvider if any. PageBreaker overrides this method because each page may have a different available BPD which needs to be accessible to the breaking algorithm. |
protected LayoutManager |
getTopLevelLM()
|
protected void |
handleEmptyContent()
This method is called when no content is available for a part. Used to force empty pages. |
protected int |
handleSpanChange(LayoutContext childLC,
int nextSequenceStartsOn)
Handles span changes reported through the LayoutContext.
Only used by the PSLM and called by getNextBlockList(). |
protected boolean |
hasMoreContent()
|
protected void |
observeElementList(java.util.List elementList)
Used for debugging purposes. Notifies all registered observers about the element list. Override to set different parameters. |
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, 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 AbstractBreakercontext - the LayoutContext to updateprotected LayoutManager getTopLevelLM()
getTopLevelLM in class AbstractBreakerprotected PageProvider getPageProvider()
getPageProvider in class AbstractBreakerprotected PageBreakingAlgorithm.PageBreakingLayoutListener getLayoutListener()
getLayoutListener in class AbstractBreaker
protected int handleSpanChange(LayoutContext childLC,
int nextSequenceStartsOn)
LayoutContext.
Only used by the PSLM and called by getNextBlockList().
handleSpanChange in class AbstractBreakerchildLC - the LayoutContextnextSequenceStartsOn - previous value for break handling
protected int getNextBlockList(LayoutContext childLC,
int nextSequenceStartsOn)
getNextBlockList in class AbstractBreakerchildLC - LayoutContext to usenextSequenceStartsOn - indicates on what page the next sequence should start
protected java.util.LinkedList getNextKnuthElements(LayoutContext context,
int alignment)
getNextKnuthElements in class AbstractBreakerprotected int getCurrentDisplayAlign()
getCurrentDisplayAlign in class AbstractBreakerprotected boolean hasMoreContent()
hasMoreContent in class AbstractBreaker
protected void addAreas(PositionIterator posIter,
LayoutContext context)
addAreas in class AbstractBreakerposIter - the position iteratorcontext - the layout context
protected void doPhase3(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg,
int partCount,
AbstractBreaker.BlockSequence originalList,
AbstractBreaker.BlockSequence effectiveList)
doPhase3 in class AbstractBreakeralg - page breaking algorithmpartCount - part countoriginalList - the block sequence original listeffectiveList - the block sequence effective list
protected void startPart(AbstractBreaker.BlockSequence list,
int breakClass)
startPart in class AbstractBreakerprotected void handleEmptyContent()
handleEmptyContent in class AbstractBreaker
protected void finishPart(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg,
AbstractBreaker.PageBreakPosition pbp)
finishPart in class AbstractBreakerprotected LayoutManager getCurrentChildLM()
getCurrentChildLM in class AbstractBreakerprotected void observeElementList(java.util.List elementList)
observeElementList in class AbstractBreakerelementList - the Knuth element list
|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||