|
fop 2.3 | |||||||||
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.SpacedBorderedPaddedBlockLayoutManager
org.apache.fop.layoutmgr.list.ListBlockLayoutManager
public class ListBlockLayoutManager
LayoutManager for a list-block FO. A list block contains list items which are stacked within the list block area..
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.fop.layoutmgr.BlockStackingLayoutManager |
---|
BlockStackingLayoutManager.MappingPosition |
Field Summary |
---|
Fields inherited from class org.apache.fop.layoutmgr.SpacedBorderedPaddedBlockLayoutManager |
---|
discardBorderAfter, discardBorderBefore, discardPaddingAfter, discardPaddingBefore, effSpaceAfter, effSpaceBefore |
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 | |
---|---|
ListBlockLayoutManager(ListBlock node)
Create a new list block layout manager. |
Method Summary | |
---|---|
void |
addAreas(PositionIterator parentIter,
LayoutContext layoutContext)
A list block generates one or more normal block areas whose child areas are normal block areas returned by the children of fo:list-block. |
void |
addChildArea(Area childArea)
Add the child area to this layout manager. |
protected CommonBorderPaddingBackground |
getCommonBorderPaddingBackground()
Returns the CommonBorderPaddingBackground instance from the FO handled by this layout manager. |
KeepProperty |
getKeepTogetherProperty()
Returns the keep-together property specified on the FObj. |
KeepProperty |
getKeepWithNextProperty()
Returns the keep-with-next property specified on the FObj. |
KeepProperty |
getKeepWithPreviousProperty()
Returns the keep-with-previous property specified on the FObj. |
protected ListBlock |
getListBlockFO()
Convenience method. |
java.util.List |
getNextKnuthElements(LayoutContext context,
int alignment,
java.util.Stack lmStack,
Position restartPosition,
LayoutManager restartAtLM)
Returns an updated list of Knuth elements corresponding to this layout manager, after a change of IPD has been detected. |
Area |
getParentArea(Area childArea)
Return an Area which can contain the passed childArea. |
void |
initialize()
initialize the layout manager. |
boolean |
isRestartable()
Returns true if this layout manager is able to re-generate its
Knuth elements after an IPD change. |
Methods inherited from class org.apache.fop.layoutmgr.SpacedBorderedPaddedBlockLayoutManager |
---|
getBaselineOffset, notifyBorder, notifyPadding, notifySpace |
Methods inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
---|
getAncestorBlockAreaBPD, getAncestorBlockAreaIPD, getBaseLength, getFObj, getGeneratesBlockArea, 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, createNextChildLMs, getChildLMs, getFObj, getGeneratesBlockArea, getGeneratesLineArea, getGeneratesReferenceArea, getParent, getPSLM, hasLineAreaDescendant, isFinished, notifyPos, setFinished, setParent |
Methods inherited from interface org.apache.fop.datatypes.PercentBaseContext |
---|
getBaseLength |
Constructor Detail |
---|
public ListBlockLayoutManager(ListBlock node)
node
- list-block to create the layout manager forMethod Detail |
---|
protected CommonBorderPaddingBackground getCommonBorderPaddingBackground()
SpacedBorderedPaddedBlockLayoutManager
CommonBorderPaddingBackground
instance from the FO handled by this layout manager.
getCommonBorderPaddingBackground
in class SpacedBorderedPaddedBlockLayoutManager
protected ListBlock getListBlockFO()
public void initialize()
initialize
in interface LayoutManager
initialize
in class AbstractLayoutManager
public java.util.List getNextKnuthElements(LayoutContext context, int alignment, java.util.Stack lmStack, Position restartPosition, LayoutManager restartAtLM)
getNextKnuthElements
in interface LayoutManager
getNextKnuthElements
in class BlockStackingLayoutManager
context
- the layout contextalignment
- the alignmentlmStack
- the stack of LMs that are active at the IPD changerestartPosition
- the position corresponding to the element
finishing the page before the IPD changerestartAtLM
- if not null, the layout manager from which to restart.
That is, the IPD change occurs between two block elements and not inside
a paragraph
public void addAreas(PositionIterator parentIter, LayoutContext layoutContext)
addAreas
in interface LayoutManager
addAreas
in class AbstractLayoutManager
parentIter
- the position iteratorlayoutContext
- the layout context for adding areaspublic Area getParentArea(Area childArea)
getParentArea
in interface LayoutManager
getParentArea
in class AbstractLayoutManager
childArea
- the child area
public void addChildArea(Area childArea)
addChildArea
in interface LayoutManager
addChildArea
in class BlockStackingLayoutManager
childArea
- the child area to addpublic KeepProperty getKeepTogetherProperty()
IllegalStateException
.
Must be implemented by the subclass, if applicable.
getKeepTogetherProperty
in interface BlockLevelLayoutManager
getKeepTogetherProperty
in class BlockStackingLayoutManager
public KeepProperty getKeepWithPreviousProperty()
IllegalStateException
.
Must be implemented by the subclass, if applicable.
getKeepWithPreviousProperty
in interface BlockLevelLayoutManager
getKeepWithPreviousProperty
in class BlockStackingLayoutManager
public KeepProperty getKeepWithNextProperty()
IllegalStateException
.
Must be implemented by the subclass, if applicable.
getKeepWithNextProperty
in interface BlockLevelLayoutManager
getKeepWithNextProperty
in class BlockStackingLayoutManager
public boolean isRestartable()
true
if this layout manager is able to re-generate its
Knuth elements after an IPD change.
isRestartable
in interface LayoutManager
isRestartable
in class AbstractBaseLayoutManager
true
if this layout manager can be restarted after an IPD
change
|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |