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.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, calcPaintingInfo, crossesPageBreak, detach, dumpBoxes, exportPageBoxText, exportText, forcePageBreakAfter, forcePageBreakBefore, getAbsX, getAbsY, getBorder, getBoxDimensions, getChild, getChildCount, getChildIterator, getChildren, getChildrenClipEdge, getContainingBlock, getContainingLayer, getContentWidth, getDocumentParent, getEffBackgroundColor, getElement, getHeight, getIndex, getLayer, getLeftMBP, getMargin, getMarginBorderPadding, getMarginEdge, getNextSibling, getPadding, getPaddingEdge, getPaddingWidth, getPaintingBorderEdge, getPaintingClipEdge, getPaintingInfo, getPaintingPaddingEdge, getParent, getPreviousSibling, getPseudoElementOrClass, getRelativeOffset, getRightMBP, getState, getStyle, getStyleMargin, getStyleMargin, getTx, getTy, getWidth, getX, getY, initContainingLayer, intersects, isAnonymous, isBody, isContainedInMarginBox, isFlowingColumnBox, isInDocumentFlow, isInitialContainingBlock, isInlineBlock, isMarginAreaRoot, isRoot, isStyled, moveIfGreater, paintBackground, paintBorder, paintRootElementBackground, removeAllChildren, reset, resetChildren, resetTopMargin, setAbsX, setAbsY, setAnonymous, 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 getInlineChildren()
public Object getInlineChild(int i)
public int getInlineWidth(CssContext cssCtx)
public void prunePending()
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 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 boolean intersectsInlineBlocks(CssContext cssCtx, Shape clip)
public List getTextDecorations()
public void setTextDecorations(List textDecoration)
public LineBox getLineBox()
public List getElementWithContent()
public List 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 void removeChild(Box child)
removeChild in class Boxpublic void removeChild(int i)
removeChild in class Boxprotected Box getPrevious(Box child)
getPrevious in class Boxpublic void calcCanvasLocation()
calcCanvasLocation in class Boxpublic void calcChildLocations()
calcChildLocations in class Boxpublic void clearSelection(List modified)
clearSelection in class Boxprotected void calcChildPaintingInfo(CssContext c, PaintingInfo result, boolean useCache)
calcChildPaintingInfo in class Boxpublic void lookForDynamicFunctions(RenderingContext c)
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 restyle(LayoutContext c)
protected void restyleChildren(LayoutContext c)
restyleChildren in class Boxpublic Box getRestyleTarget()
getRestyleTarget in class Boxpublic void collectText(RenderingContext c, StringBuffer buffer) throws IOException
collectText in class BoxIOExceptionpublic void countJustifiableChars(CharCounts counts)
public float adjustHorizontalPosition(JustificationInfo info, float adjust)
public int getEffectiveWidth()
getEffectiveWidth in class BoxCopyright © 2018. All rights reserved.