| java.lang.Object org.apache.fop.layoutmgr.AbstractBaseLayoutManager org.apache.fop.layoutmgr.AbstractLayoutManager org.apache.fop.layoutmgr.BlockStackingLayoutManager
All known Subclasses: org.apache.fop.layoutmgr.table.TableCaptionLayoutManager, org.apache.fop.layoutmgr.BlockContainerLayoutManager, org.apache.fop.layoutmgr.table.TableLayoutManager, org.apache.fop.layoutmgr.list.ListItemContentLayoutManager, org.apache.fop.layoutmgr.FootnoteBodyLayoutManager, org.apache.fop.layoutmgr.list.ListItemLayoutManager, org.apache.fop.layoutmgr.table.TableAndCaptionLayoutManager, org.apache.fop.layoutmgr.StaticContentLayoutManager, org.apache.fop.layoutmgr.list.ListBlockLayoutManager, org.apache.fop.layoutmgr.table.TableCellLayoutManager, org.apache.fop.layoutmgr.FlowLayoutManager, org.apache.fop.layoutmgr.BlockLayoutManager,
BlockStackingLayoutManager | abstract public class BlockStackingLayoutManager extends AbstractLayoutManager implements BlockLevelLayoutManager(Code) | | Base LayoutManager class for all areas which stack their child
areas in the block-progression direction, such as Flow, Block, ListBlock.
|
Inner Class :protected static class MappingPosition extends Position | |
Method Summary | |
public void | addBlockSpacing(double adjust, MinOptMax minoptmax) Add a block spacer for space before and space after a block. | public 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. | protected void | addChildToArea(Area childArea, BlockParent parentArea) Add the childArea to the passed 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. | protected void | addKnuthElementsForBorderPaddingAfter(LinkedList returnList, boolean isLast) Creates Knuth elements for after border padding and adds them to the return list. | protected void | addKnuthElementsForBorderPaddingBefore(LinkedList returnList, boolean isFirst) Creates Knuth elements for before border padding and adds them to the return list. | protected boolean | addKnuthElementsForBreakAfter(LinkedList returnList, LayoutContext context) Creates Knuth elements for break-after and adds them to the return list. | protected boolean | addKnuthElementsForBreakBefore(LinkedList returnList, LayoutContext context) Creates Knuth elements for break-before and adds them to the return list. | protected void | addKnuthElementsForSpaceAfter(LinkedList returnList, int alignment) Creates Knuth elements for space-after and adds them to the return list. | protected void | addKnuthElementsForSpaceBefore(LinkedList returnList, int alignment) Creates Knuth elements for space-before and adds them to the return list. | protected void | addPendingMarks(LayoutContext context) Adds the unresolved elements for border and padding to a layout context so break
possibilities can be properly constructed. | protected LinkedList | createUnitElements(LinkedList oldList) | public void | discardSpace(KnuthGlue spaceGlue) | protected void | flush() Force current area to be added to parent area. | protected Position | getAuxiliaryPosition() a cached auxiliary Position instance used for things like spaces. | public LinkedList | getChangedKnuthElements(List oldList, int alignment) | public int | getContentAreaBPD() | public int | getContentAreaIPD() | protected BlockParent | getCurrentArea() | protected int | getIPIndents() | public LinkedList | getNextKnuthElements(LayoutContext context, int alignment) | public boolean | mustKeepTogether() | public boolean | mustKeepWithNext() | public boolean | mustKeepWithPrevious() | protected int | neededUnits(int len) | public int | negotiateBPDAdjustment(int adj, KnuthElement lastElement) | protected void | setContentAreaIPD(int contentAreaIPD) | protected void | setCurrentArea(BlockParent parentArea) Set the current area being filled. | protected int | updateContentAreaIPDwithOverconstrainedAdjust() Determines and sets the content area IPD based on available reference area IPD, start- and
end-indent properties. | protected int | updateContentAreaIPDwithOverconstrainedAdjust(int contentIPD) Sets the content area IPD by directly supplying the value. | protected void | wrapPositionElements(List sourceList, List targetList) | protected void | wrapPositionElements(List sourceList, List targetList, boolean force) |
adjustedSpaceAfter | protected int adjustedSpaceAfter(Code) | | space-after value adjusted for block-progression-unit handling
|
adjustedSpaceBefore | protected int adjustedSpaceBefore(Code) | | space-before value adjusted for block-progression-unit handling
|
bpUnit | protected int bpUnit(Code) | | Value of the block-progression-unit (non-standard property)
|
breakBeforeServed | protected boolean breakBeforeServed(Code) | | Indicates whether break before has been served or not
|
endIndent | protected int endIndent(Code) | | the effective end-indent value
|
firstVisibleMarkServed | protected boolean firstVisibleMarkServed(Code) | | Indicates whether the first visible mark has been returned by this LM, yet
|
foSpaceBefore | protected MinOptMax foSpaceBefore(Code) | | Holds the (one-time use) fo:block space-before
and -after properties. Large fo:blocks are split
into multiple Area. Blocks to accomodate the subsequent
regions (pages) they are placed on. space-before
is applied at the beginning of the first
Block and space-after at the end of the last Block
used in rendering the fo:block.
|
parentArea | protected BlockParent parentArea(Code) | | Reference to FO whose areas it's managing or to the traits
of the FO.
|
referenceIPD | protected int referenceIPD(Code) | | Reference IPD available
|
startIndent | protected int startIndent(Code) | | the effective start-indent value
|
storedList | protected LinkedList storedList(Code) | | Only used to store the original list when createUnitElements is called
|
BlockStackingLayoutManager | public BlockStackingLayoutManager(FObj node)(Code) | | Parameters: node - the fo this LM deals with |
addBlockSpacing | public void addBlockSpacing(double adjust, MinOptMax minoptmax)(Code) | | Add a block spacer for space before and space after a block.
This adds an empty Block area that acts as a block space.
Parameters: adjust - the adjustment value Parameters: minoptmax - the min/opt/max value of the spacing |
addChildArea | public void addChildArea(Area childArea)(Code) | | 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.
Parameters: childArea - the area to add: will be some block-stacked Area. |
addChildToArea | protected void addChildToArea(Area childArea, BlockParent parentArea)(Code) | | Add the childArea to the passed 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.
Parameters: childArea - the area to add: will be some block-stacked Area. Parameters: parentArea - the area in which to add the childArea |
addKnuthElementsForBorderPaddingAfter | protected void addKnuthElementsForBorderPaddingAfter(LinkedList returnList, boolean isLast)(Code) | | Creates Knuth elements for after border padding and adds them to the return list.
Parameters: returnList - return list to add the additional elements to Parameters: isLast - true if this is the last time a layout manager instance needs to generate border and padding |
addKnuthElementsForBorderPaddingBefore | protected void addKnuthElementsForBorderPaddingBefore(LinkedList returnList, boolean isFirst)(Code) | | Creates Knuth elements for before border padding and adds them to the return list.
Parameters: returnList - return list to add the additional elements to Parameters: isFirst - true if this is the first time a layout manager instance needs to generate border and padding |
addKnuthElementsForBreakAfter | protected boolean addKnuthElementsForBreakAfter(LinkedList returnList, LayoutContext context)(Code) | | Creates Knuth elements for break-after and adds them to the return list.
Parameters: returnList - return list to add the additional elements to Parameters: context - the layout context true if an element has been added due to a break-after. |
addKnuthElementsForBreakBefore | protected boolean addKnuthElementsForBreakBefore(LinkedList returnList, LayoutContext context)(Code) | | Creates Knuth elements for break-before and adds them to the return list.
Parameters: returnList - return list to add the additional elements to Parameters: context - the layout context true if an element has been added due to a break-before. |
addKnuthElementsForSpaceAfter | protected void addKnuthElementsForSpaceAfter(LinkedList returnList, int alignment)(Code) | | Creates Knuth elements for space-after and adds them to the return list.
Parameters: returnList - return list to add the additional elements to Parameters: alignment - vertical alignment |
addKnuthElementsForSpaceBefore | protected void addKnuthElementsForSpaceBefore(LinkedList returnList, int alignment)(Code) | | Creates Knuth elements for space-before and adds them to the return list.
Parameters: returnList - return list to add the additional elements to Parameters: alignment - vertical alignment |
addPendingMarks | protected void addPendingMarks(LayoutContext context)(Code) | | Adds the unresolved elements for border and padding to a layout context so break
possibilities can be properly constructed.
Parameters: context - the layout context |
flush | protected void flush()(Code) | | Force current area to be added to parent area.
|
getAuxiliaryPosition | protected Position getAuxiliaryPosition()(Code) | | a cached auxiliary Position instance used for things like spaces. |
getContentAreaBPD | public int getContentAreaBPD()(Code) | | Returns the BPD of the content area
the BPD of the content area |
getContentAreaIPD | public int getContentAreaIPD()(Code) | | Returns the IPD of the content area
the IPD of the content area |
getIPIndents | protected int getIPIndents()(Code) | | the sum of start-indent and end-indent |
neededUnits | protected int neededUnits(int len)(Code) | | Parameters: len - length in millipoints to span with bp units the minimum integer n such that n * bpUnit >= len |
setContentAreaIPD | protected void setContentAreaIPD(int contentAreaIPD)(Code) | | Sets the IPD of the content area
Parameters: contentAreaIPD - the IPD of the content area |
setCurrentArea | protected void setCurrentArea(BlockParent parentArea)(Code) | | Set the current area being filled.
Parameters: parentArea - the current area to be filled |
updateContentAreaIPDwithOverconstrainedAdjust | protected int updateContentAreaIPDwithOverconstrainedAdjust()(Code) | | Determines and sets the content area IPD based on available reference area IPD, start- and
end-indent properties.
end-indent is adjusted based on overconstrained geometry rules, if necessary.
the resulting content area IPD |
updateContentAreaIPDwithOverconstrainedAdjust | protected int updateContentAreaIPDwithOverconstrainedAdjust(int contentIPD)(Code) | | Sets the content area IPD by directly supplying the value.
end-indent is adjusted based on overconstrained geometry rules, if necessary.
the resulting content area IPD |
wrapPositionElements | protected void wrapPositionElements(List sourceList, List targetList)(Code) | | "wrap" the Position inside each element moving the elements from
SourceList to targetList
Parameters: sourceList - source list Parameters: targetList - target list receiving the wrapped position elements |
wrapPositionElements | protected void wrapPositionElements(List sourceList, List targetList, boolean force)(Code) | | "wrap" the Position inside each element moving the elements from
SourceList to targetList
Parameters: sourceList - source list Parameters: targetList - target list receiving the wrapped position elements Parameters: force - if true, every Position is wrapped regardless of its LM of origin |
|
|