Class WrapperLayoutManager

All Implemented Interfaces:
PercentBaseContext, Constants, InlineLevelLayoutManager, LayoutManager

public class WrapperLayoutManager extends LeafNodeLayoutManager
This is the layout manager for the fo:wrapper formatting object.
  • Constructor Details

    • WrapperLayoutManager

      public WrapperLayoutManager(Wrapper node)
      Creates a new LM for fo:wrapper.
      Parameters:
      node - the fo:wrapper
  • Method Details

    • get

      public InlineArea get(LayoutContext context)
      get the inline area.
      Overrides:
      get in class LeafNodeLayoutManager
      Parameters:
      context - the context used to create the area
      Returns:
      the current inline area for this layout manager
    • addAreas

      public void addAreas(PositionIterator posIter, LayoutContext context)
      Add the area for this layout manager. This adds the dummy area to the parent, *if* it has an id - otherwise it serves no purpose.
      Specified by:
      addAreas in interface LayoutManager
      Overrides:
      addAreas in class LeafNodeLayoutManager
      Parameters:
      posIter - the position iterator
      context - the layout context for adding the area
    • addId

      protected void addId()
      Registers the FO's id on the current PageViewport
      Overrides:
      addId in class AbstractLayoutManager