Class InlineLayoutBox

java.lang.Object
org.xhtmlrenderer.render.Box
org.xhtmlrenderer.render.InlineLayoutBox
All Implemented Interfaces:
InlinePaintable, Styleable

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.
  • Constructor Details

  • Method Details

    • copyOf

      public InlineLayoutBox copyOf()
    • 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)
    • addInlineChild

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

      public List getInlineChildren()
    • getInlineChild

      public Object getInlineChild(int i)
    • getInlineWidth

      public int getInlineWidth(CssContext cssCtx)
    • prunePending

      public void prunePending()
    • 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)
    • unmarkPending

      public void unmarkPending(LayoutContext c)
    • connectChildrenToCurrentLayer

      public void connectChildrenToCurrentLayer(LayoutContext c)
      Overrides:
      connectChildrenToCurrentLayer in class Box
    • paintSelection

      public void paintSelection(RenderingContext c)
    • paintInline

      public void paintInline(RenderingContext c)
      Specified by:
      paintInline in interface InlinePaintable
    • getBorderSides

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

      public Rectangle getBorderEdge(int left, int top, CssContext cssCtx)
      Overrides:
      getBorderEdge in class Box
    • getMarginEdge

      public Rectangle getMarginEdge(int left, int top, CssContext cssCtx, int tx, int ty)
      Overrides:
      getMarginEdge in class Box
    • getContentAreaEdge

      public Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx)
      Overrides:
      getContentAreaEdge 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)
    • getTextDecorations

      public List getTextDecorations()
    • setTextDecorations

      public void setTextDecorations(List textDecoration)
    • getLineBox

      public LineBox getLineBox()
    • getElementWithContent

      public List getElementWithContent()
    • getElementBoxes

      public List getElementBoxes(Element elem)
      Overrides:
      getElementBoxes in class Box
    • positionRelative

      public Dimension positionRelative(CssContext cssCtx)
      Overrides:
      positionRelative in class Box
    • addAllChildren

      public void addAllChildren(List list, Layer layer)
    • paintDebugOutline

      public void paintDebugOutline(RenderingContext c)
    • removeChild

      public void removeChild(Box child)
      Overrides:
      removeChild in class Box
    • removeChild

      public void removeChild(int i)
      Overrides:
      removeChild in class Box
    • calcCanvasLocation

      public void calcCanvasLocation()
      Specified by:
      calcCanvasLocation in class Box
    • calcChildLocations

      public void calcChildLocations()
      Overrides:
      calcChildLocations in class Box
    • clearSelection

      public void clearSelection(List modified)
      Overrides:
      clearSelection in class Box
    • selectAll

      public void selectAll()
      Overrides:
      selectAll 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
    • getContainingBlockWidth

      public int getContainingBlockWidth()
    • setContainingBlockWidth

      public void setContainingBlockWidth(int containingBlockWidth)
    • toString

      public String toString()
      Overrides:
      toString in class Box
    • dump

      public String dump(LayoutContext c, String indent, int which)
      Specified by:
      dump in class Box
    • restyle

      public void restyle(LayoutContext c)
      Overrides:
      restyle in class Box
    • getRestyleTarget

      public Box getRestyleTarget()
      Overrides:
      getRestyleTarget in class Box
    • collectText

      public void collectText(RenderingContext c, StringBuffer buffer) throws IOException
      Overrides:
      collectText in class Box
      Throws:
      IOException
    • countJustifiableChars

      public void countJustifiableChars(CharCounts counts)
    • adjustHorizontalPosition

      public float adjustHorizontalPosition(JustificationInfo info, float adjust)
    • getEffectiveWidth

      public int getEffectiveWidth()
      Overrides:
      getEffectiveWidth in class Box