|
fop 2.1 | |||||||||
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.LocalBreaker
public abstract class LocalBreaker
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.fop.layoutmgr.AbstractBreaker |
---|
AbstractBreaker.BlockSequence, AbstractBreaker.FloatPosition, AbstractBreaker.PageBreakPosition |
Field Summary | |
---|---|
protected BlockStackingLayoutManager |
lm
|
Fields inherited from class org.apache.fop.layoutmgr.AbstractBreaker |
---|
alignment, blockListIndex, blockLists, footnoteSeparatorLength, log |
Constructor Summary | |
---|---|
LocalBreaker(BlockStackingLayoutManager lm,
int ipd,
int displayAlign)
|
Method Summary | |
---|---|
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 java.util.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)
|
Methods inherited from class org.apache.fop.layoutmgr.AbstractBreaker |
---|
addAreas, addAreas, addAreas, addAreasForFloats, doLayout, getNextBlockList, getNextBlockList, getNextKnuthElements, getPageProvider, handleEmptyContent, handleFloatLayout, handleSpanChange, isEmpty, isSinglePartFavored, lastPageHasIPDChange, observeElementList, prepareToRedoLayout, shouldRedoLayout, startPart, updateLayoutContext, wasLayoutRedone |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BlockStackingLayoutManager lm
Constructor Detail |
---|
public LocalBreaker(BlockStackingLayoutManager lm, int ipd, int displayAlign)
Method Detail |
---|
public void setRepeatedFooter(boolean repeatedFooter)
public void setDescendantOfTableFooter(boolean isDescendantOfTableFooter)
public void setRepeatedHeader(boolean repeatedHeader)
protected boolean isPartOverflowRecoveryActivated()
isPartOverflowRecoveryActivated
in class AbstractBreaker
public boolean isOverflow()
public int getOverflowAmount()
protected PageBreakingAlgorithm.PageBreakingLayoutListener createLayoutListener()
createLayoutListener
in class AbstractBreaker
protected LayoutManager getTopLevelLM()
getTopLevelLM
in class AbstractBreaker
protected LayoutContext createLayoutContext()
AbstractBreaker
createLayoutContext
in class AbstractBreaker
protected java.util.List getNextKnuthElements(LayoutContext context, int alignment)
AbstractBreaker
getNextKnuthElements
in class AbstractBreaker
context
- the LayoutContext used to store layout informationalignment
- the desired text alignment
protected int getCurrentDisplayAlign()
getCurrentDisplayAlign
in class AbstractBreaker
protected boolean hasMoreContent()
hasMoreContent
in class AbstractBreaker
protected void addAreas(PositionIterator posIter, LayoutContext context)
AbstractBreaker
addAreas
in class AbstractBreaker
posIter
- the position iteratorcontext
- the contextprotected void doPhase3(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg, int partCount, AbstractBreaker.BlockSequence originalList, AbstractBreaker.BlockSequence effectiveList)
AbstractBreaker
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 finishPart(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg, AbstractBreaker.PageBreakPosition pbp)
AbstractBreaker
finishPart
in class AbstractBreaker
alg
- a page breaking algorithmpbp
- a page break posittionprotected LayoutManager getCurrentChildLM()
getCurrentChildLM
in class AbstractBreaker
|
fop 2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |