Class NestedLine


public class NestedLine extends LineBox
Since:
3.1
  • Method Details

    • containsPoint

      public boolean containsPoint(int x, int y)
      Description copied from class: FlowBox
      This method must be called on a block that is completely positioned and committed.
      Specified by:
      containsPoint in class FlowBox
      Parameters:
      x - X
      y - Y
      Returns:
      true if the FlowBox contains the point
      See Also:
    • getBaseline

      public int getBaseline()
      Description copied from class: FlowBox
      Returns y coordinate for the box's baseline.
      Specified by:
      getBaseline in class FlowBox
      Returns:
      the baseline location
      See Also:
    • getOuterAscent

      public int getOuterAscent()
      Returns the outer ascent of this box. The outer ascent is the ascent above the baseline including the border size and margin. This is used when adding content into a LineBox. The linebox's own border must be drawn around the children.
      Returns:
      the outer ascent of this box
    • getOuterDescent

      public int getOuterDescent()
      Returns the outer descent of this box. The outer descent is the space below the baseline including the border size and margin. This is used when adding content into a LineBox. The linebox's own border must be drawn around the children.
      Returns:
      the outer descent of this box
    • setLineTop

      public void setLineTop(int top)
      Description copied from class: CompositeBox
      Positions the box vertically by setting the y coordinate for the top of the content of the line. For internal use only.
      Specified by:
      setLineTop in class CompositeBox
      Parameters:
      top - the y coordinate
      See Also: