Class Container

All Implemented Interfaces:
Serializable, Cloneable

public class Container extends Area
Container area for inline container. This area should be placed in a viewport as a result of the inline container formatting object. This allows an inline area to have blocks as children.
See Also:
  • Field Details

    • blocks

      protected List<Block> blocks
      The list of block areas stacked inside this container
    • width

      protected int width
      The width of this container
  • Constructor Details

    • Container

      public Container()
      Create a new container area
  • Method Details

    • addChildArea

      public void addChildArea(Area child)
      Description copied from class: Area
      Add a child to this area. The default is to do nothing. Subclasses must override to do something if they can have child areas.
      Overrides:
      addChildArea in class Area
      Parameters:
      child - the child area to add
    • getBlocks

      public List<Block> getBlocks()
      Get the block areas stacked inside this container area.
      Returns:
      the list of block areas
    • getWidth

      public int getWidth()
      Get the width of this container area.
      Returns:
      the width