|
fop 1.0 | ||||||||||
| 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.StaticContentLayoutManager
LayoutManager for an fo:flow object. Its parent LM is the PageSequenceLayoutManager. This LM is responsible for getting columns of the appropriate size and filling them with block-level areas generated by its children.
| Nested Class Summary |
| Nested classes inherited from class org.apache.fop.layoutmgr.BlockStackingLayoutManager |
BlockStackingLayoutManager.MappingPosition, BlockStackingLayoutManager.StackingIter |
| Field Summary |
| 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, parentLayoutManager |
| Fields inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
fobj, generatesBlockArea, generatesReferenceArea |
| Constructor Summary | |
StaticContentLayoutManager(PageSequenceLayoutManager pslm,
StaticContent node,
Block block)
Creates a new StaticContentLayoutManager. |
|
StaticContentLayoutManager(PageSequenceLayoutManager pslm,
StaticContent node,
SideRegion reg)
Creates a new StaticContentLayoutManager. |
|
| 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 child area to a the correct container, depending on its area class. |
void |
doLayout()
Does the layout for a side region. |
int |
getContentAreaBPD()
Returns the BPD of the content area |
int |
getContentAreaIPD()
Returns the IPD of the content area |
Keep |
getKeepTogether()
Returns the keep-together strength for this element. |
Keep |
getKeepWithNext()
Returns the keep-with-next strength for this element. |
Keep |
getKeepWithPrevious()
Returns the keep-with-previous strength for this element. |
java.util.List |
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. The childArea may not yet have any content, but it has essential traits set. In general, if the LayoutManager already has an Area it simply returns it. Otherwise, it makes a new Area of the appropriate class. It gets a parent area for its area by calling its parent LM. Finally, based on the dimensions of the parent area, it initializes its own area. This includes setting the content IPD and the maximum BPD. |
protected StaticContent |
getStaticContentFO()
Convenience method that returns the Static Content node. |
protected void |
setContentAreaIPD(int contentAreaIPD)
Sets the IPD of the content area |
| Methods inherited from class org.apache.fop.layoutmgr.AbstractLayoutManager |
addChildLM, addChildLMs, addId, addMarkersToPage, checkEndOfLayout, createChildLMs, createNextChildLMs, getChildLM, getChildLMs, getCurrentPage, getCurrentPV, getParent, getPSLM, hasNextChildLM, initialize, isFinished, isFirst, isLast, notifyPos, setCurrentChildLM, setFinished, setParent, toString, transferExtensionAttachments, transferExtensions, transferForeignAttributes |
| Methods inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
getAncestorBlockAreaBPD, getAncestorBlockAreaIPD, getBaseLength, getFObj, getGeneratesBlockArea, getGeneratesLineArea, getGeneratesReferenceArea, getParentAreaBPD, getParentAreaIPD, getReferenceAreaBPD, getReferenceAreaIPD, isRestartable, 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, createNextChildLMs, getChildLMs, getFObj, getGeneratesBlockArea, getGeneratesLineArea, getGeneratesReferenceArea, getParent, getPSLM, initialize, isFinished, isRestartable, notifyPos, setFinished, setParent |
| Methods inherited from interface org.apache.fop.datatypes.PercentBaseContext |
getBaseLength |
| Constructor Detail |
public StaticContentLayoutManager(PageSequenceLayoutManager pslm,
StaticContent node,
SideRegion reg)
pslm - PageSequenceLayoutManager this layout manager belongs tonode - static-content FOreg - side region to layout into
public StaticContentLayoutManager(PageSequenceLayoutManager pslm,
StaticContent node,
Block block)
pslm - PageSequenceLayoutManager this layout manager belongs tonode - static-content FOblock - the block to layout into| Method Detail |
public java.util.List getNextKnuthElements(LayoutContext context,
int alignment)
getNextKnuthElements in interface LayoutManagergetNextKnuthElements in class BlockStackingLayoutManager
public void addAreas(PositionIterator parentIter,
LayoutContext layoutContext)
addAreas in interface LayoutManageraddAreas in class AbstractLayoutManagerpublic void addChildArea(Area childArea)
addChildArea in interface LayoutManageraddChildArea in class BlockStackingLayoutManagerchildArea - the area to add: will be some block-stacked Area.public Area getParentArea(Area childArea)
getParentArea in interface LayoutManagergetParentArea in class AbstractLayoutManagerchildArea - the child area for which the parent area is wanted
public void doLayout()
protected StaticContent getStaticContentFO()
public int getContentAreaIPD()
getContentAreaIPD in interface LayoutManagergetContentAreaIPD in class BlockStackingLayoutManagerprotected void setContentAreaIPD(int contentAreaIPD)
setContentAreaIPD in class BlockStackingLayoutManagercontentAreaIPD - the IPD of the content areapublic int getContentAreaBPD()
getContentAreaBPD in interface LayoutManagergetContentAreaBPD in class BlockStackingLayoutManagerpublic Keep getKeepTogether()
getKeepTogether in interface BlockLevelLayoutManagergetKeepTogether in class BlockStackingLayoutManagerpublic Keep getKeepWithNext()
getKeepWithNext in interface BlockLevelLayoutManagergetKeepWithNext in class BlockStackingLayoutManagerpublic Keep getKeepWithPrevious()
getKeepWithPrevious in interface BlockLevelLayoutManagergetKeepWithPrevious in class BlockStackingLayoutManager
|
fop 1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||