|
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.AbstractBaseLayoutManager
org.apache.fop.layoutmgr.AbstractLayoutManager
org.apache.fop.layoutmgr.BlockStackingLayoutManager
org.apache.fop.layoutmgr.BlockLayoutManager
LayoutManager for a block FO.
| Nested Class Summary | |
protected class |
BlockLayoutManager.ProxyLMiter
Proxy iterator for Block LM. |
| Nested classes inherited from class org.apache.fop.layoutmgr.BlockStackingLayoutManager |
BlockStackingLayoutManager.MappingPosition, BlockStackingLayoutManager.StackingIter |
| Field Summary | |
protected java.util.List |
childBreaks
The list of child BreakPoss instances. |
protected java.util.ListIterator |
proxyLMiter
Iterator over the child layout managers. |
| Fields inherited from class org.apache.fop.layoutmgr.BlockStackingLayoutManager |
adjustedSpaceAfter, adjustedSpaceBefore, bpUnit, breakBeforeServed, endIndent, firstVisibleMarkServed, foSpaceAfter, foSpaceBefore, parentArea, referenceIPD, startIndent, storedList |
| Fields inherited from class org.apache.fop.layoutmgr.AbstractLayoutManager |
childLMiter, childLMs, curChildLM, fobjIter, parentLM |
| Fields inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
fobj, generatesBlockArea, generatesReferenceArea |
| Fields inherited from interface org.apache.fop.layoutmgr.BlockLevelLayoutManager |
LINE_HEIGHT_ADJUSTMENT, LINE_NUMBER_ADJUSTMENT, NO_ADJUSTMENT, SPACE_AFTER_ADJUSTMENT, SPACE_BEFORE_ADJUSTMENT |
| Constructor Summary | |
BlockLayoutManager(Block inBlock)
Creates a new BlockLayoutManager. |
|
| Method Summary | |
void |
addAreas(PositionIterator parentIter,
LayoutContext layoutContext)
Tell the layout manager to add all the child areas implied by Position objects which will be returned by the Iterator. |
void |
addChildArea(Area childArea)
Add the childArea to the current area. Called by child LayoutManager when it has filled one of its areas. The LM should already have an Area in which to put the child. See if the area will fit in the current area. If so, add it. Otherwise initiate breaking. |
boolean |
createNextChildLMs(int pos)
Create more child LMs of the parent, up to child LM index pos |
protected void |
flush()
Force current area to be added to parent area. |
protected Block |
getBlockFO()
convenience method that returns the Block node |
int |
getContentAreaBPD()
Returns the BPD of the content area |
int |
getContentAreaIPD()
Returns the IPD of the content area |
boolean |
getGeneratesBlockArea()
Returns an indication if the layout manager generates a block area. |
java.util.LinkedList |
getNextKnuthElements(LayoutContext context,
int alignment)
Get a sequence of KnuthElements representing the content of the node assigned to the LM |
Area |
getParentArea(Area childArea)
Return an Area which can contain the passed childArea. |
void |
initialize()
initialize the layout manager. |
boolean |
mustKeepTogether()
|
boolean |
mustKeepWithNext()
|
boolean |
mustKeepWithPrevious()
|
void |
notifyBorder(RelSide side,
MinOptMax effectiveLength)
Notifies the layout manager about the effective length/width of its border. |
void |
notifyPadding(RelSide side,
MinOptMax effectiveLength)
Notifies the layout manager about the effective length/width of its padding. |
void |
notifySpace(RelSide side,
MinOptMax effectiveLength)
Notifies the layout manager about the effective length of its space. |
| Methods inherited from class org.apache.fop.layoutmgr.AbstractLayoutManager |
addChildLM, addChildLMs, addMarkersToPage, createChildLMs, getChildLM, getChildLMs, getCurrentPage, getCurrentPV, getParent, getPSLM, hasNextChildLM, isFinished, isFirst, isLast, notifyPos, setFinished, setParent, toString, transferForeignAttributes |
| Methods inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
getAncestorBlockAreaBPD, getAncestorBlockAreaIPD, getBaseLength, getFObj, getGeneratesLineArea, getGeneratesReferenceArea, getParentAreaBPD, getParentAreaIPD, getReferenceAreaBPD, getReferenceAreaIPD, setGeneratesBlockArea, setGeneratesReferenceArea |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.fop.layoutmgr.LayoutManager |
addChildLM, addChildLMs, getChildLMs, getFObj, getGeneratesLineArea, getGeneratesReferenceArea, getParent, getPSLM, isFinished, notifyPos, setFinished, setParent |
| Methods inherited from interface org.apache.fop.datatypes.PercentBaseContext |
getBaseLength |
| Field Detail |
protected java.util.ListIterator proxyLMiter
protected java.util.List childBreaks
| Constructor Detail |
public BlockLayoutManager(Block inBlock)
inBlock - the block FO object to create the layout manager for.| Method Detail |
public void initialize()
LayoutManager
initialize in interface LayoutManagerinitialize in class AbstractLayoutManager
public java.util.LinkedList getNextKnuthElements(LayoutContext context,
int alignment)
getNextKnuthElements in interface LayoutManagergetNextKnuthElements in class BlockStackingLayoutManagerpublic boolean createNextChildLMs(int pos)
createNextChildLMs in interface LayoutManagercreateNextChildLMs in class AbstractLayoutManagerpublic boolean mustKeepTogether()
mustKeepTogether in interface BlockLevelLayoutManagermustKeepTogether in class BlockStackingLayoutManagerpublic boolean mustKeepWithPrevious()
mustKeepWithPrevious in interface BlockLevelLayoutManagermustKeepWithPrevious in class BlockStackingLayoutManagerpublic boolean mustKeepWithNext()
mustKeepWithNext in interface BlockLevelLayoutManagermustKeepWithNext in class BlockStackingLayoutManager
public void addAreas(PositionIterator parentIter,
LayoutContext layoutContext)
addAreas in interface LayoutManageraddAreas in class AbstractLayoutManagerpublic Area getParentArea(Area childArea)
getParentArea in interface LayoutManagergetParentArea in class AbstractLayoutManagerchildArea - area to get the parent area for
public void addChildArea(Area childArea)
addChildArea in interface LayoutManageraddChildArea in class BlockStackingLayoutManagerchildArea - the area to add: will be some block-stacked Area.protected void flush()
flush in class BlockStackingLayoutManagerprotected Block getBlockFO()
public int getContentAreaIPD()
getContentAreaIPD in interface LayoutManagergetContentAreaIPD in class BlockStackingLayoutManagerpublic int getContentAreaBPD()
getContentAreaBPD in interface LayoutManagergetContentAreaBPD in class BlockStackingLayoutManagerpublic boolean getGeneratesBlockArea()
getGeneratesBlockArea in interface LayoutManagergetGeneratesBlockArea in class AbstractBaseLayoutManager
public void notifySpace(RelSide side,
MinOptMax effectiveLength)
notifySpace in interface ConditionalElementListenerside - the side to which the space applieseffectiveLength - the effective length after space-resolution (null means zero length)
public void notifyBorder(RelSide side,
MinOptMax effectiveLength)
notifyBorder in interface ConditionalElementListenerside - the side to which the border applieseffectiveLength - the effective length in the current break situation
(null means zero length)
public void notifyPadding(RelSide side,
MinOptMax effectiveLength)
notifyPadding in interface ConditionalElementListenerside - the side to which the padding applieseffectiveLength - the effective length in the current break situation
(null means zero length)
|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||