Package com.openhtmltopdf.render
Class InlineLayoutBox
java.lang.Object
com.openhtmltopdf.render.Box
com.openhtmltopdf.render.InlineLayoutBox
- All Implemented Interfaces:
InlinePaintable,Styleable,DisplayListItem
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.-
Nested Class Summary
Nested classes/interfaces inherited from class com.openhtmltopdf.render.Box
Box.ChildIteratorOfType<T> -
Field Summary
Fields inherited from class com.openhtmltopdf.render.Box
CHILDREN_FLUX, DONE, DUMP_LAYOUT, DUMP_RENDER, FLUX, LINE_SEPARATOR, NOTHING -
Constructor Summary
Constructors Constructor Description InlineLayoutBox(LayoutContext c, Element elem, CalculatedStyle style, int cbWidth) -
Method Summary
Methods inherited from class com.openhtmltopdf.render.Box
addAllChildren, addChild, addChildForLayout, analyzePageBreaks, ancestors, ancestorsWhile, calcPaintingInfo, crossesPageBreak, detach, dumpBoxes, exportPageBoxText, exportText, findAncestor, findColumnBreakOpportunities, forcePageBreakAfter, 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, intersects, isAnonymous, 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, stateToString
-
Constructor Details
-
Method Details
-
copyOf
-
calculateHeight
-
getBaseline
public int getBaseline() -
setBaseline
public void setBaseline(int baseline) -
getInlineChildCount
public int getInlineChildCount() -
addInlineChild
-
addInlineChild
-
getInlineChildren
EitherBox, including InlineLayoutBoxorInlineTextobjects. -
getInlineChild
-
getInlineWidth
-
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
-
connectChildrenToCurrentLayer
- Overrides:
connectChildrenToCurrentLayerin classBox
-
paintSelection
-
paintInline
- Specified by:
paintInlinein interfaceInlinePaintable
-
hasNonTextContent
- Overrides:
hasNonTextContentin classBox
-
isAllTextItems
-
getBorderSides
public int getBorderSides()- Overrides:
getBorderSidesin classBox
-
getBorderEdge
- Overrides:
getBorderEdgein classBox
-
getMarginEdge
- Overrides:
getMarginEdgein classBox
-
getContentAreaEdge
- Overrides:
getContentAreaEdgein classBox
-
getLeftMarginBorderPadding
-
getRightMarginPaddingBorder
-
getInlineWidth
public int getInlineWidth() -
setInlineWidth
public void setInlineWidth(int inlineWidth) -
isContainsVisibleContent
public boolean isContainsVisibleContent() -
intersectsInlineBlocks
-
getTextDecorations
-
setTextDecorations
-
getLineBox
-
getElementWithContent
-
getElementBoxes
- Overrides:
getElementBoxesin classBox
-
positionRelative
- Overrides:
positionRelativein classBox
-
addAllChildren
-
paintDebugOutline
-
resetChildren
- Overrides:
resetChildrenin classBox
-
removeChild
- Overrides:
removeChildin classBox
-
removeChild
public void removeChild(int i)- Overrides:
removeChildin classBox
-
getPrevious
- Overrides:
getPreviousin classBox
-
getNext
-
calcCanvasLocation
public void calcCanvasLocation()- Specified by:
calcCanvasLocationin classBox
-
calcChildLocations
public void calcChildLocations()- Overrides:
calcChildLocationsin classBox
-
calcChildPaintingInfo
- Overrides:
calcChildPaintingInfoin classBox
-
lookForDynamicFunctions
-
findTrailingText
-
calculateTextDecoration
-
find
-
getContainingBlockWidth
public int getContainingBlockWidth()- Overrides:
getContainingBlockWidthin classBox
-
setContainingBlockWidth
public void setContainingBlockWidth(int containingBlockWidth) -
toString
-
dump
-
restyle
-
restyleChildren
- Overrides:
restyleChildrenin classBox
-
getRestyleTarget
- Overrides:
getRestyleTargetin classBox
-
collectText
- Overrides:
collectTextin classBox
-
countJustifiableChars
-
adjustHorizontalPosition
-
getEffectiveWidth
public int getEffectiveWidth()- Overrides:
getEffectiveWidthin classBox
-