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, 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, stateToString
public 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 Box
public void paintSelection(RenderingContext c)
public void paintInline(RenderingContext c)
paintInline
in interface InlinePaintable
public int getBorderSides()
getBorderSides
in class Box
public Rectangle getBorderEdge(int left, int top, CssContext cssCtx)
getBorderEdge
in class Box
public Rectangle getMarginEdge(int left, int top, CssContext cssCtx, int tx, int ty)
getMarginEdge
in class Box
public Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx)
getContentAreaEdge
in class Box
public 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 Box
public Dimension positionRelative(CssContext cssCtx)
positionRelative
in class Box
public void paintDebugOutline(RenderingContext c)
protected void resetChildren(LayoutContext c)
resetChildren
in class Box
public void removeChild(Box child)
removeChild
in class Box
public void removeChild(int i)
removeChild
in class Box
protected Box getPrevious(Box child)
getPrevious
in class Box
public void calcCanvasLocation()
calcCanvasLocation
in class Box
public void calcChildLocations()
calcChildLocations
in class Box
public void clearSelection(List modified)
clearSelection
in class Box
protected void calcChildPaintingInfo(CssContext c, PaintingInfo result, boolean useCache)
calcChildPaintingInfo
in class Box
public 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 Box
public 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 Box
public Box getRestyleTarget()
getRestyleTarget
in class Box
public void collectText(RenderingContext c, StringBuffer buffer) throws IOException
collectText
in class Box
IOException
public void countJustifiableChars(CharCounts counts)
public float adjustHorizontalPosition(JustificationInfo info, float adjust)
public int getEffectiveWidth()
getEffectiveWidth
in class Box
Copyright © 2018. All rights reserved.