Class FilledArea

All Implemented Interfaces:
Serializable, Cloneable

public class FilledArea extends InlineParent
Filled area. This inline area contains some inline areas. When the renderer gets the child areas to render the inline areas are repeated to fill the ipd of this inline parent. This extends InlineParent so that the renderer will render this as a normal inline parent.
See Also:
  • Constructor Details

    • FilledArea

      public FilledArea()
      Create a new filled area.
  • Method Details

    • setUnitWidth

      public void setUnitWidth(int width)
      Set the unit width for the areas to fill the full width.
      Parameters:
      width - the unit width
    • getUnitWidth

      public int getUnitWidth()
      Return the unit width for the areas to fill the full width.
      Returns:
      the unit width
    • getBPD

      public int getBPD()
      Get the block progression dimension of the content rectangle for this area.
      Overrides:
      getBPD in class Area
      Returns:
      the block progression dimension
      See Also:
    • getChildAreas

      public List<InlineArea> getChildAreas()
      Get the child areas for this filled area. This copies the references of the inline areas so that it fills the total width of the area a whole number of times for the unit width.
      Overrides:
      getChildAreas in class InlineParent
      Returns:
      the list of child areas copied to fill the width
    • applyVariationFactor

      public boolean applyVariationFactor(double variationFactor, int lineStretch, int lineShrink)
      Recursively apply the variation factor to all descendant areas
      Overrides:
      applyVariationFactor in class InlineParent
      Parameters:
      variationFactor - the variation factor that must be applied to adjustments
      lineStretch - the total stretch of the line
      lineShrink - the total shrink of the line
      Returns:
      true if there is an UnresolvedArea descendant