Class InlineLayoutBox

  • All Implemented Interfaces:
    InlinePaintable, Styleable, DisplayListItem

    public class InlineLayoutBox
    extends Box
    implements InlinePaintable
    A Box which contains the portion of an inline element layed out on a single line. It may contain content from several InlineBox objects if the original inline element was interrupted by nested content. Unlike other boxes, its children may be either Box objects (for example, a box with display: inline-block) or InlineText objects. For this reason, it's children are not stored in the children property, but instead stored in the inlineChildren property.
    • Method Detail

      • calculateHeight

        public void calculateHeight​(LayoutContext c)
      • getBaseline

        public int getBaseline()
      • setBaseline

        public void setBaseline​(int baseline)
      • getInlineChildCount

        public int getInlineChildCount()
      • addInlineChild

        public void addInlineChild​(LayoutContext c,
                                   Object child,
                                   boolean callUnmarkPending)
      • getInlineChildren

        public List<Object> getInlineChildren()
        Either Box, including InlineLayoutBox or InlineText objects.
      • getInlineChild

        public Object getInlineChild​(int i)
      • getInlineWidth

        public int getInlineWidth​(CssContext cssCtx)
      • isEndsHere

        public boolean isEndsHere()
      • setEndsHere

        public void setEndsHere​(boolean endsHere)
      • isStartsHere

        public boolean isStartsHere()
      • setStartsHere

        public void setStartsHere​(boolean startsHere)
      • isPending

        public boolean isPending()
      • setPending

        public void setPending​(boolean b)
      • isAllTextItems

        public boolean isAllTextItems​(CssContext c)
      • getBorderSides

        public int getBorderSides()
        Overrides:
        getBorderSides in class Box
      • getLeftMarginBorderPadding

        public int getLeftMarginBorderPadding​(CssContext cssCtx)
      • getRightMarginPaddingBorder

        public int getRightMarginPaddingBorder​(CssContext cssCtx)
      • getInlineWidth

        public int getInlineWidth()
      • setInlineWidth

        public void setInlineWidth​(int inlineWidth)
      • isContainsVisibleContent

        public boolean isContainsVisibleContent()
      • intersectsInlineBlocks

        public boolean intersectsInlineBlocks​(CssContext cssCtx,
                                              Shape clip)
      • setTextDecorations

        public void setTextDecorations​(List<TextDecoration> textDecoration)
      • getLineBox

        public LineBox getLineBox()
      • getElementWithContent

        public List<Box> getElementWithContent()
      • addAllChildren

        public void addAllChildren​(List<? super Box> list,
                                   Layer layer)
      • removeChild

        public boolean removeChild​(Box child)
        Removes a child box if it is indeed a child and adjusts the index of subsequent children. Returns whether this was a child.
        Overrides:
        removeChild in class Box
      • removeChild

        public boolean removeChild​(int i)
        Removes child by index and adjusts the index of subsequent children. Returns true if this box has children, throws if the index is out-of-bounds.

        IMPORTANT: This method must be kept in sync with Box.removeChild(Box)
        Overrides:
        removeChild in class Box
      • getNext

        protected Box getNext​(Box child)
        Overrides:
        getNext in class Box
      • lookForDynamicFunctions

        public void lookForDynamicFunctions​(RenderingContext c)
      • findTrailingText

        public InlineText findTrailingText()
      • calculateTextDecoration

        public void calculateTextDecoration​(LayoutContext c)
      • find

        public Box find​(CssContext cssCtx,
                        int absX,
                        int absY,
                        boolean findAnonymous)
        Overrides:
        find in class Box
      • setContainingBlockWidth

        public void setContainingBlockWidth​(int containingBlockWidth)
      • countJustifiableChars

        public void countJustifiableChars​(CharCounts counts)
      • adjustHorizontalPosition

        public float adjustHorizontalPosition​(JustificationInfo info,
                                              float adjust)
      • adjustHorizontalPositionRTL

        public float adjustHorizontalPositionRTL​(JustificationInfo info,
                                                 float adjust)