Class InlineBoxing


  • public class InlineBoxing
    extends Object
    This class is responsible for flowing inline content into lines. Block content which participates in an inline formatting context is also handled here as well as floating and absolutely positioned content.
    • Method Detail

      • layoutContent

        public static void layoutContent​(LayoutContext c,
                                         BlockBox box,
                                         int initialY,
                                         int breakAtLine)
      • positionHorizontallyRTL

        public static int positionHorizontallyRTL​(CssContext c,
                                                  Box current,
                                                  int start,
                                                  int width)
        Attempts to layout inline boxes from right to left.
        Parameters:
        start - should be the right edge of the line
        current - should be the line box.
        Returns:
        width of line.
      • positionHorizontally

        public static int positionHorizontally​(CssContext c,
                                               Box current,
                                               int start)