public abstract class LocalBreaker extends AbstractBreaker
AbstractBreaker.BlockSequence, AbstractBreaker.FloatPosition, AbstractBreaker.PageBreakPosition| Modifier and Type | Field and Description |
|---|---|
protected BlockStackingLayoutManager |
lm |
alignment, blockListIndex, blockLists, firstElementsForRestart, footnoteSeparatorLength, log, originalRestartAtLM, positionAtBreak, pslm| Constructor and Description |
|---|
LocalBreaker(BlockStackingLayoutManager lm,
int ipd,
int displayAlign) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAreas(PositionIterator posIter,
LayoutContext context)
Tell the layout manager to add all the child areas implied
by Position objects which will be returned by the
Iterator.
|
protected LayoutContext |
createLayoutContext()
Creates the top-level LayoutContext for the breaker operation.
|
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)
Finish part.
|
protected LayoutManager |
getCurrentChildLM() |
protected int |
getCurrentDisplayAlign() |
protected List |
getNextKnuthElements(LayoutContext context,
int alignment)
Get a sequence of KnuthElements representing the content
of the node assigned to the LM
|
int |
getOverflowAmount() |
protected LayoutManager |
getTopLevelLM() |
protected boolean |
hasMoreContent() |
boolean |
isOverflow() |
protected boolean |
isPartOverflowRecoveryActivated()
Controls the behaviour of the algorithm in cases where the first element of a part
overflows a line/page.
|
void |
setDescendantOfTableFooter(boolean isDescendantOfTableFooter) |
void |
setRepeatedFooter(boolean repeatedFooter) |
void |
setRepeatedHeader(boolean repeatedHeader) |
addAreas, addAreas, addAreas, addAreasForFloats, containsNonRestartableLM, doLayout, getNextBlockList, getNextBlockList, getNextKnuthElements, getPageProvider, handleEmptyContent, handleFloatLayout, handleSpanChange, isEmpty, isSinglePartFavored, lastPageHasIPDChange, observeElementList, prepareToRedoLayout, shouldRedoLayout, startPart, updateLayoutContext, wasLayoutRedoneprotected BlockStackingLayoutManager lm
public LocalBreaker(BlockStackingLayoutManager lm, int ipd, int displayAlign)
public void setRepeatedFooter(boolean repeatedFooter)
public void setDescendantOfTableFooter(boolean isDescendantOfTableFooter)
public void setRepeatedHeader(boolean repeatedHeader)
protected boolean isPartOverflowRecoveryActivated()
isPartOverflowRecoveryActivated in class AbstractBreakerpublic boolean isOverflow()
public int getOverflowAmount()
protected PageBreakingAlgorithm.PageBreakingLayoutListener createLayoutListener()
createLayoutListener in class AbstractBreakerprotected LayoutManager getTopLevelLM()
getTopLevelLM in class AbstractBreakerprotected LayoutContext createLayoutContext()
AbstractBreakercreateLayoutContext in class AbstractBreakerprotected List getNextKnuthElements(LayoutContext context, int alignment)
AbstractBreakergetNextKnuthElements in class AbstractBreakercontext - the LayoutContext used to store layout informationalignment - the desired text alignmentprotected int getCurrentDisplayAlign()
getCurrentDisplayAlign in class AbstractBreakerprotected boolean hasMoreContent()
hasMoreContent in class AbstractBreakerprotected void addAreas(PositionIterator posIter, LayoutContext context)
AbstractBreakeraddAreas in class AbstractBreakerposIter - the position iteratorcontext - the contextprotected void doPhase3(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg,
int partCount,
AbstractBreaker.BlockSequence originalList,
AbstractBreaker.BlockSequence effectiveList)
AbstractBreakerdoPhase3 in class AbstractBreakeralg - 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 finishPart(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg,
AbstractBreaker.PageBreakPosition pbp)
AbstractBreakerfinishPart in class AbstractBreakeralg - a page breaking algorithmpbp - a page break posittionprotected LayoutManager getCurrentChildLM()
getCurrentChildLM in class AbstractBreakerCopyright © 2023 Apache Software Foundation. All rights reserved.