Uses of Class
org.apache.fop.layoutmgr.LayoutContext
Packages that use LayoutContext
Package
Description
FOP's layout engine.
Layout managers for inline formatting objects and line building.
Layout managers for lists.
Layout managers for tables.
-
Uses of LayoutContext in org.apache.fop.layoutmgr
Methods in org.apache.fop.layoutmgr that return LayoutContextModifier and TypeMethodDescriptionstatic LayoutContextLayoutContext.copyOf(LayoutContext copy) protected LayoutContextAbstractBreaker.createLayoutContext()Creates the top-level LayoutContext for the breaker operation.protected LayoutContextLocalBreaker.createLayoutContext()protected LayoutContextBlockContainerLayoutManager.makeChildLayoutContext(LayoutContext context) Overridden to handle writing-mode, and different stack limit setup.protected LayoutContextBlockStackingLayoutManager.makeChildLayoutContext(LayoutContext context) Creates and initializes aLayoutContextto pass to the child LMprotected LayoutContextFlowLayoutManager.makeChildLayoutContext(LayoutContext context) Overridden to take into account the current page-master's writing-mode Creates and initializes aLayoutContextto pass to the child LMstatic LayoutContextLayoutContext.newInstance()static LayoutContextLayoutContext.offspringOf(LayoutContext parent) Returns a descendant of the given layout context.Methods in org.apache.fop.layoutmgr with parameters of type LayoutContextModifier and TypeMethodDescriptionprotected voidAbstractBreaker.addAreas(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg, int startPart, int partCount, AbstractBreaker.BlockSequence originalList, AbstractBreaker.BlockSequence effectiveList, LayoutContext childLC) Phase 3 of Knuth algorithm: Adds the areasprotected abstract voidAbstractBreaker.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.voidAbstractLayoutManager.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.static voidAreaAdditionUtil.addAreas(AbstractLayoutManager parentLM, PositionIterator parentIter, LayoutContext layoutContext) Creates the child areas for the given layout manager.voidBlockContainerLayoutManager.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.voidBlockLayoutManager.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.voidFloatContentLayoutManager.addAreas(PositionIterator parentIter, LayoutContext layoutContext) voidFlowLayoutManager.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.voidFootnoteBodyLayoutManager.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.voidLayoutManager.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 voidLocalBreaker.addAreas(PositionIterator posIter, LayoutContext context) voidMultiCaseLayoutManager.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.voidMultiSwitchLayoutManager.addAreas(PositionIterator posIter, LayoutContext context) protected voidPageBreaker.addAreas(PositionIterator posIter, LayoutContext context) Adds an area to the flow layout managervoidRetrieveTableMarkerLayoutManager.addAreas(PositionIterator posIter, LayoutContext context) Add the area for this layout manager.voidStaticContentLayoutManager.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.protected voidAbstractBreaker.addAreasForFloats(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg, int startPart, int partCount, AbstractBreaker.BlockSequence originalList, AbstractBreaker.BlockSequence effectiveList, LayoutContext childLC, int lastBreak, int startElementIndex, int endElementIndex) protected voidPageBreaker.addAreasForFloats(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg, int startPart, int partCount, AbstractBreaker.BlockSequence originalList, AbstractBreaker.BlockSequence effectiveList, LayoutContext childLC, int lastBreak, int startElementIndex, int endElementIndex) protected voidBlockStackingLayoutManager.addFirstVisibleMarks(List<ListElement> elements, LayoutContext context, int alignment) Checks if this LM's first "visible marks" (= borders, padding, spaces) have already been processed, and if necessary, adds corresponding elements to the specified list, and updates the given layout context accordingly.protected voidBlockStackingLayoutManager.addInBetweenBreak(List<ListElement> contentList, LayoutContext parentLC, LayoutContext childLC) Adds a break element to the content list between individual child elements.protected booleanBlockStackingLayoutManager.addKnuthElementsForBreakAfter(List returnList, LayoutContext context) Creates Knuth elements for break-after and adds them to the return list.protected booleanBlockStackingLayoutManager.addKnuthElementsForBreakBefore(List returnList, LayoutContext context) Creates Knuth elements for break-before and adds them to the return list.protected voidBlockStackingLayoutManager.addLastVisibleMarks(List<ListElement> elements, LayoutContext context, int alignment) Adds elements the LM's last/closing marks to the specified list, and updates the layout context accordingly.protected voidBlockStackingLayoutManager.addPendingMarks(LayoutContext context) Adds the unresolved elements for border and padding to a layout context so break possibilities can be properly constructed.protected booleanBlockStackingLayoutManager.breakBeforeServed(LayoutContext context, List<ListElement> elements) Check whether there is a break-before condition.static LayoutContextLayoutContext.copyOf(LayoutContext copy) voidLayoutContext.copyPendingMarksFrom(LayoutContext source) static List<List<KnuthElement>> PageBreaker.getFootnoteKnuthElements(FlowLayoutManager flowLM, LayoutContext context, List<FootnoteBodyLayoutManager> footnoteBodyLMs) protected intAbstractBreaker.getNextBlockList(LayoutContext childLC, int nextSequenceStartsOn) Gets the next block list (sequence) and adds it to a list of block lists if it's not empty.protected intAbstractBreaker.getNextBlockList(LayoutContext childLC, int nextSequenceStartsOn, Position positionAtIPDChange, LayoutManager restartAtLM, List<ListElement> firstElements) Gets the next block list (sequence) and adds it to a list of block lists if it's not empty.protected intPageBreaker.getNextBlockList(LayoutContext childLC, int nextSequenceStartsOn) Gets the next block list (sequence) and adds it to a list of block lists if it's not empty.protected intPageBreaker.getNextBlockList(LayoutContext childLC, int nextSequenceStartsOn, Position positionAtIPDChange, LayoutManager restartLM, List<ListElement> firstElements) Gets the next block list (sequence) and adds it to a list of block lists if it's not empty.protected List<ListElement> BlockLayoutManager.getNextChildElements(LayoutManager childLM, LayoutContext context, LayoutContext childLC, int alignment, Stack lmStack, Position restartPosition, LayoutManager restartAtLM) Overridden to take into account that the childLM may be the block'sLineLayoutManager.protected List<ListElement> BlockStackingLayoutManager.getNextChildElements(LayoutManager childLM, LayoutContext context, LayoutContext childLC, int alignment, Stack<LayoutManager> lmStack, Position restartPosition, LayoutManager restartAtLM) Gets the next set of child elements for the given childLM.protected List<ListElement> FlowLayoutManager.getNextChildElements(LayoutManager childLM, LayoutContext context, LayoutContext childLC, int alignment, Stack<LayoutManager> lmStack, Position restartPosition, LayoutManager restartLM) Overridden to wrap the child positions before returning the list Gets the next set of child elements for the given childLM.AbstractBaseLayoutManager.getNextKnuthElements(LayoutContext context, int alignment, Stack lmStack, Position positionAtIPDChange, LayoutManager restartAtLM) Returns an updated list of Knuth elements corresponding to this layout manager, after a change of IPD has been detected.protected abstract List<ListElement> AbstractBreaker.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LMprotected List<ListElement> AbstractBreaker.getNextKnuthElements(LayoutContext context, int alignment, Position positionAtIPDChange, LayoutManager restartAtLM) Get a sequence of KnuthElements representing the content of the node assigned to the LMAbstractLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.BlockContainerLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.BlockContainerLayoutManager.getNextKnuthElements(LayoutContext context, int alignment, 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.BlockLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.BlockLayoutManager.getNextKnuthElements(LayoutContext context, int alignment, 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.BlockStackingLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.BlockStackingLayoutManager.getNextKnuthElements(LayoutContext context, int alignment, 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.FlowLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.FootnoteBodyLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) LayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.LayoutManager.getNextKnuthElements(LayoutContext context, int alignment, Stack lmStack, Position positionAtIPDChange, LayoutManager restartAtLM) Returns an updated list of Knuth elements corresponding to this layout manager, after a change of IPD has been detected.protected List<ListElement> LocalBreaker.getNextKnuthElements(LayoutContext context, int alignment) MultiSwitchLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) protected List<ListElement> PageBreaker.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LMprotected List<ListElement> PageBreaker.getNextKnuthElements(LayoutContext context, int alignment, Position positionAtIPDChange, LayoutManager restartAtLM) Get a sequence of KnuthElements representing the content of the node assigned to the LMRetrieveTableMarkerLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.StaticContentLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.protected intAbstractBreaker.handleFloatLayout(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg, int optimalPageCount, AbstractBreaker.BlockSequence blockList, LayoutContext childLC) protected intPageBreaker.handleFloatLayout(org.apache.fop.layoutmgr.PageBreakingAlgorithm alg, int optimalPageCount, AbstractBreaker.BlockSequence blockList, LayoutContext childLC) protected intAbstractBreaker.handleSpanChange(LayoutContext childLC, int nextSequenceStartsOn) Handles span changes reported through theLayoutContext.protected intPageBreaker.handleSpanChange(LayoutContext childLC, int nextSequenceStartsOn) Handles span changes reported through theLayoutContext.protected LayoutContextBlockContainerLayoutManager.makeChildLayoutContext(LayoutContext context) Overridden to handle writing-mode, and different stack limit setup.protected LayoutContextBlockStackingLayoutManager.makeChildLayoutContext(LayoutContext context) Creates and initializes aLayoutContextto pass to the child LMprotected LayoutContextFlowLayoutManager.makeChildLayoutContext(LayoutContext context) Overridden to take into account the current page-master's writing-mode Creates and initializes aLayoutContextto pass to the child LMstatic LayoutContextLayoutContext.offspringOf(LayoutContext parent) Returns a descendant of the given layout context.voidFloatContentLayoutManager.processAreas(LayoutContext layoutContext) {Add info}protected voidAbstractBreaker.updateLayoutContext(LayoutContext context) Used to update the LayoutContext in subclasses prior to starting a new element list.protected voidPageBreaker.updateLayoutContext(LayoutContext context) Used to update the LayoutContext in subclasses prior to starting a new element list.Constructors in org.apache.fop.layoutmgr with parameters of type LayoutContextModifierConstructorDescriptionBreakElement(Position position, int penaltyWidth, int penaltyValue, int breakClass, LayoutContext context) Constructor for hard breaks.BreakElement(Position position, int penaltyValue, int breakClass, LayoutContext context) Create a new BreakElement for the givenposition,penaltyValueandbreakClass.BreakElement(Position position, int penaltyValue, LayoutContext context) Main constructor -
Uses of LayoutContext in org.apache.fop.layoutmgr.inline
Fields in org.apache.fop.layoutmgr.inline declared as LayoutContextModifier and TypeFieldDescriptionprotected LayoutContextInlineStackingLayoutManager.childLCThe child layout contextMethods in org.apache.fop.layoutmgr.inline that return LayoutContextModifier and TypeMethodDescriptionprotected LayoutContextInlineStackingLayoutManager.getContext()Current child layout contextMethods in org.apache.fop.layoutmgr.inline with parameters of type LayoutContextModifier and TypeMethodDescriptionvoidContentLayoutManager.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.voidFloatLayoutManager.addAreas(PositionIterator posIter, LayoutContext context) voidFootnoteLayoutManager.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.voidInlineContainerLayoutManager.addAreas(PositionIterator posIter, LayoutContext context) voidInlineLayoutManager.addAreas(PositionIterator parentIter, LayoutContext context) Generate and add areas to parent area.voidLeaderLayoutManager.addAreas(PositionIterator posIter, LayoutContext context) Add the area for this layout manager.voidLeafNodeLayoutManager.addAreas(PositionIterator posIter, LayoutContext context) Add the area for this layout manager.voidLineLayoutManager.addAreas(PositionIterator parentIter, LayoutContext context) Add the areas with the break points.voidTextLayoutManager.addAreas(PositionIterator posIter, LayoutContext context) Generate and add areas to parent area.voidWrapperLayoutManager.addAreas(PositionIterator posIter, LayoutContext context) Add the area for this layout manager.LeaderLayoutManager.get(LayoutContext context) Return the inline area for this leader.LeafNodeLayoutManager.get(LayoutContext context) get the inline area.PageNumberLayoutManager.get(LayoutContext context) get the inline area.WrapperLayoutManager.get(LayoutContext context) get the inline area.protected InlineAreaAbstractGraphicsLayoutManager.getEffectiveArea(LayoutContext layoutContext) protected InlineAreaAbstractPageNumberCitationLayoutManager.getEffectiveArea(LayoutContext layoutContext) protected InlineAreaCharacterLayoutManager.getEffectiveArea(LayoutContext layoutContext) protected InlineAreaLeafNodeLayoutManager.getEffectiveArea(LayoutContext layoutContext) protected InlineAreaPageNumberLayoutManager.getEffectiveArea(LayoutContext layoutContext) AbstractGraphicsLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.CharacterLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.ContentLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.FloatLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) FootnoteLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.InlineContainerLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) InlineLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.LeaderLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.LeafNodeLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.LineLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.LineLayoutManager.getNextKnuthElements(LayoutContext context, int alignment, LeafPosition restartPosition) Get a sequence of KnuthElements representing the content of the node assigned to the LM.TextLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.WrapperLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) protected AlignmentContextAbstractGraphicsLayoutManager.makeAlignmentContext(LayoutContext context) Creates a new alignment context or returns the current alignment context.protected AlignmentContextAbstractPageNumberCitationLayoutManager.makeAlignmentContext(LayoutContext context) Creates a new alignment context or returns the current alignment context.protected AlignmentContextInlineContainerLayoutManager.makeAlignmentContext(LayoutContext context) protected AlignmentContextLeafNodeLayoutManager.makeAlignmentContext(LayoutContext context) Creates a new alignment context or returns the current alignment context.protected AlignmentContextPageNumberLayoutManager.makeAlignmentContext(LayoutContext context) Creates a new alignment context or returns the current alignment context.protected voidLeafNodeLayoutManager.offsetArea(InlineArea area, LayoutContext context) Offset this area.voidFloatLayoutManager.processAreas(LayoutContext context) protected voidInlineStackingLayoutManager.setChildContext(LayoutContext lc) Set the current child layout contextprotected voidLeafNodeLayoutManager.widthAdjustArea(InlineArea area, LayoutContext context) Adjust the width of the area when adding. -
Uses of LayoutContext in org.apache.fop.layoutmgr.list
Methods in org.apache.fop.layoutmgr.list with parameters of type LayoutContextModifier and TypeMethodDescriptionvoidListBlockLayoutManager.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.voidListItemContentLayoutManager.addAreas(PositionIterator parentIter, LayoutContext layoutContext) Add the areas for the break points.voidListItemLayoutManager.addAreas(PositionIterator parentIter, LayoutContext layoutContext) Add the areas for the break points.protected voidListItemLayoutManager.addFirstVisibleMarks(List<ListElement> elements, LayoutContext context, int alignment) Overridden to unconditionally add elements for space-before.ListBlockLayoutManager.getNextKnuthElements(LayoutContext context, int alignment, 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.ListItemContentLayoutManager.getNextKnuthElements(LayoutContext context, int alignment, 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.ListItemLayoutManager.getNextKnuthElements(LayoutContext context, int alignment, 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. -
Uses of LayoutContext in org.apache.fop.layoutmgr.table
Methods in org.apache.fop.layoutmgr.table with parameters of type LayoutContextModifier and TypeMethodDescriptionvoidTableAndCaptionLayoutManager.addAreas(PositionIterator parentIter, LayoutContext layoutContext) Add the areas.voidTableCaptionLayoutManager.addAreas(PositionIterator parentIter, LayoutContext layoutContext) Add the areas to the parent.voidTableCellLayoutManager.addAreas(PositionIterator parentIter, LayoutContext layoutContext, int[] spannedGridRowHeights, int startRow, int endRow, int borderBeforeWhich, int borderAfterWhich, boolean firstOnPage, boolean lastOnPage, org.apache.fop.layoutmgr.table.RowPainter painter, int firstRowHeight) Add the areas for the break points.voidTableLayoutManager.addAreas(PositionIterator parentIter, LayoutContext layoutContext) The table area is a reference area that contains areas for columns, bodies, rows and the contents are in cells.TableStepper.getCombinedKnuthElementsForRowGroup(LayoutContext context, EffRow[] rows, int bodyType) Creates the combined element list for a row group.TableCellLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.TableContentLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.TableLayoutManager.getNextKnuthElements(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.