Class LineBox

Direct Known Subclasses:
LineRoot, NestedLine

public abstract class LineBox extends CompositeBox
Since:
2.1
  • Constructor Details

    • LineBox

      public LineBox()
  • Method Details

    • add

      public void add(FlowBox child)
      Description copied from class: CompositeBox
      Adds the given box and updates properties of this composite box.
      Specified by:
      add in class CompositeBox
      Parameters:
      child - the child being added
      See Also:
    • getAscent

      public int getAscent()
      Description copied from class: FlowBox
      Returns the amount of line content in pixels which is above the baseline. Ascent and descent are used to space consecutive lines apart. Certain types of line content, such as borders, extend beyond the ascent and descent.
      Specified by:
      getAscent in class FlowBox
      Returns:
      the descent in pixels below the baseline
      See Also:
    • getDescent

      public int getDescent()
      Description copied from class: FlowBox
      Returns the amount of line content in pixels which is below the baseline.
      Specified by:
      getDescent in class FlowBox
      Returns:
      the descent in pixels
      See Also:
    • isOccupied

      public boolean isOccupied()
      Returns:
      true if this box contains any fragments
    • requiresBidi

      public boolean requiresBidi()
      Description copied from class: FlowBox
      Returns true if any of the children are bi-directional. Default implementation returns false.
      Overrides:
      requiresBidi in class FlowBox
      Returns:
      true if the box is bi-directional
      See Also: