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| 构造器和说明 |
|---|
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, 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 在类中 Boxpublic void paintSelection(RenderingContext c)
public void paintInline(RenderingContext c)
paintInline 在接口中 InlinePaintablepublic int getBorderSides()
getBorderSides 在类中 Boxpublic Rectangle getBorderEdge(int left, int top, CssContext cssCtx)
getBorderEdge 在类中 Boxpublic Rectangle getMarginEdge(int left, int top, CssContext cssCtx, int tx, int ty)
getMarginEdge 在类中 Boxpublic Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx)
getContentAreaEdge 在类中 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 在类中 Boxpublic Dimension positionRelative(CssContext cssCtx)
positionRelative 在类中 Boxpublic void paintDebugOutline(RenderingContext c)
protected void resetChildren(LayoutContext c)
resetChildren 在类中 Boxpublic void removeChild(Box child)
removeChild 在类中 Boxpublic void removeChild(int i)
removeChild 在类中 Boxprotected Box getPrevious(Box child)
getPrevious 在类中 Boxpublic void calcCanvasLocation()
calcCanvasLocation 在类中 Boxpublic void calcChildLocations()
calcChildLocations 在类中 Boxpublic void clearSelection(List modified)
clearSelection 在类中 Boxprotected void calcChildPaintingInfo(CssContext c, PaintingInfo result, boolean useCache)
calcChildPaintingInfo 在类中 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 在类中 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 在类中 Boxpublic Box getRestyleTarget()
getRestyleTarget 在类中 Boxpublic void collectText(RenderingContext c, StringBuffer buffer) throws IOException
collectText 在类中 BoxIOExceptionpublic void countJustifiableChars(CharCounts counts)
public float adjustHorizontalPosition(JustificationInfo info, float adjust)
public int getEffectiveWidth()
getEffectiveWidth 在类中 BoxCopyright © 2019. All Rights Reserved.