public class InlineLayoutBox extends Box implements InlinePaintable
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.Box.ChildIteratorOfType<T>_element, CHILDREN_FLUX, DONE, DUMP_LAYOUT, DUMP_RENDER, FLUX, LINE_SEPARATOR, NOTHING| Constructor and Description |
|---|
InlineLayoutBox(LayoutContext c,
Element elem,
CalculatedStyle style,
int cbWidth) |
addAllChildren, addChild, addChildForLayout, analyzePageBreaks, ancestors, ancestorsWhile, calcPaintingInfo, collectLayoutText, crossesPageBreak, detach, dumpBoxes, exportPageBoxText, exportText, findAncestor, findColumnBreakOpportunities, forcePageBreakAfter, forcePageBreakBefore, forcePageBreakBefore, getAbsoluteClipBox, getAbsX, getAbsY, getAccessibilityObject, getBorder, getBorderBox, getBorderBoxHeight, getBorderBoxWidth, getBoxDimensions, getChild, getChildCount, getChildIterator, getChildIteratorOfType, getChildren, getChildrenClipEdge, getClipBox, getContainingBlock, getContainingLayer, getContentWidth, getDocumentParent, getEffBackgroundColor, getElement, getHeight, getIndex, getLayer, getLeftMBP, getMargin, getMarginBorderPadding, getMarginEdge, getNextSibling, getPadding, getPaddingEdge, getPaddingWidth, getPaintingBorderEdge, getPaintingClipEdge, getPaintingInfo, getPaintingPaddingEdge, getParent, getParentClipBox, getPreviousSibling, getPseudoElementOrClass, getRelativeOffset, getRightMBP, getState, getStyle, getStyleMargin, getStyleMargin, getTx, getTy, getWidth, getX, getY, hasRootElementBackground, initContainingLayer, isAnonymous, isBody, isBody, isContainedInMarginBox, isFirstChild, isInDocumentFlow, isInitialContainingBlock, isInlineBlock, isMarginAreaRoot, isRoot, isStyled, isTerminalColumnBreak, moveIfGreater, paintBackground, paintBorder, paintRootElementBackground, removeAllChildren, reset, resetChildren, resetTopMargin, rootBox, setAbsX, setAbsY, setAccessiblityObject, setAnonymous, setBorderBoxHeight, setBorderBoxWidth, setBoxDimensions, setContainingBlock, setContainingLayer, setContentWidth, setElement, setHeight, setIndex, setLayer, setLeftMBP, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setParent, setPseudoElementOrClass, setRelativeOffset, setRightMBP, setState, setStyle, setTx, setTy, setX, setY, stateToStringpublic InlineLayoutBox(LayoutContext c, Element elem, CalculatedStyle style, int cbWidth)
public InlineLayoutBox copyOf()
public void calculateHeight(LayoutContext c)
public int getBaseline()
public void setBaseline(int baseline)
public int getInlineChildCount()
public void addInlineChild(LayoutContext c, Object child)
public void addInlineChild(LayoutContext c, Object child, boolean callUnmarkPending)
public List<Object> getInlineChildren()
InlineLayoutBox or InlineText objects.public Object getInlineChild(int i)
public int getInlineWidth(CssContext cssCtx)
public void prunePending(LayoutContext c)
public boolean isEndsHere()
public void setEndsHere(boolean endsHere)
public boolean isStartsHere()
public void setStartsHere(boolean startsHere)
public boolean isPending()
public void setPending(boolean b)
public void unmarkPending(LayoutContext c)
public void connectChildrenToCurrentLayer(LayoutContext c)
connectChildrenToCurrentLayer in class Boxpublic void paintSelection(RenderingContext c)
public void paintInline(RenderingContext c)
paintInline in interface InlinePaintablepublic boolean hasNonTextContent(CssContext c)
hasNonTextContent in class Boxpublic boolean isAllTextItems(CssContext c)
public int getBorderSides()
getBorderSides in class Boxpublic Rectangle getBorderEdge(int left, int top, CssContext cssCtx)
getBorderEdge in class Boxpublic Rectangle getMarginEdge(int left, int top, CssContext cssCtx, int tx, int ty)
getMarginEdge in class Boxpublic Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx)
getContentAreaEdge in class Boxpublic int getLeftMarginBorderPadding(CssContext cssCtx)
public int getRightMarginPaddingBorder(CssContext cssCtx)
public int getInlineWidth()
public void setInlineWidth(int inlineWidth)
public boolean isContainsVisibleContent()
public List<TextDecoration> getTextDecorations()
public void setTextDecorations(List<TextDecoration> textDecoration)
public LineBox getLineBox()
public List<Box> getElementBoxes(Element elem)
getElementBoxes in class Boxpublic Dimension positionRelative(CssContext cssCtx)
positionRelative in class Boxpublic void paintDebugOutline(RenderingContext c)
protected void resetChildren(LayoutContext c)
resetChildren in class Boxpublic boolean removeChild(Box child)
removeChild in class Boxpublic boolean removeChild(int i)
Box.removeChild(Box)removeChild in class Boxprotected Box getPrevious(Box child)
getPrevious in class Boxpublic void calcCanvasLocation()
calcCanvasLocation in class Boxpublic void calcChildLocations()
calcChildLocations in class Boxprotected void calcChildPaintingInfo(CssContext c, PaintingInfo result, boolean useCache)
calcChildPaintingInfo in class Boxpublic void lookForDynamicFunctions(RenderingContext c, boolean evaluateLeaders)
evaluateLeaders - whether to evaluate leader functions - we don't want to
evaluate the two leaders on the one line.public InlineText findTrailingText()
public void calculateTextDecoration(LayoutContext c)
public Box find(CssContext cssCtx, int absX, int absY, boolean findAnonymous)
public int getContainingBlockWidth()
getContainingBlockWidth in class Boxpublic void setContainingBlockWidth(int containingBlockWidth)
public String dump(LayoutContext c, String indent, int which)
public void collectText(RenderingContext c, StringBuilder buffer)
collectText in class Boxpublic void countJustifiableChars(CharCounts counts)
public float adjustHorizontalPosition(JustificationInfo info, float adjust)
public float adjustHorizontalPositionRTL(JustificationInfo info, float adjust)
public int getEffectiveWidth()
getEffectiveWidth in class BoxCopyright © 2004–2025. All rights reserved.