Package org.xhtmlrenderer.render
Class InlineLayoutBox
java.lang.Object
org.xhtmlrenderer.render.Box
org.xhtmlrenderer.render.InlineLayoutBox
- All Implemented Interfaces:
InlinePaintable
,Styleable
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.-
Field Summary
Fields inherited from class org.xhtmlrenderer.render.Box
CHILDREN_FLUX, DONE, DUMP_LAYOUT, DUMP_RENDER, FLUX, NOTHING
-
Constructor Summary
ConstructorsConstructorDescriptionInlineLayoutBox
(LayoutContext c, Element elem, CalculatedStyle style, int cbWidth) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllChildren
(List list, Layer layer) void
addInlineChild
(LayoutContext c, Object child) void
addInlineChild
(LayoutContext c, Object child, boolean callUnmarkPending) float
adjustHorizontalPosition
(JustificationInfo info, float adjust) void
void
void
void
void
clearSelection
(List modified) void
collectText
(RenderingContext c, StringBuffer buffer) void
copyOf()
void
countJustifiableChars
(CharCounts counts) dump
(LayoutContext c, String indent, int which) find
(CssContext cssCtx, int absX, int absY, boolean findAnonymous) int
getBorderEdge
(int left, int top, CssContext cssCtx) int
int
getContentAreaEdge
(int left, int top, CssContext cssCtx) int
getElementBoxes
(Element elem) getInlineChild
(int i) int
int
int
getInlineWidth
(CssContext cssCtx) int
getLeftMarginBorderPadding
(CssContext cssCtx) getMarginEdge
(int left, int top, CssContext cssCtx, int tx, int ty) int
boolean
intersectsInlineBlocks
(CssContext cssCtx, Shape clip) boolean
boolean
boolean
boolean
void
void
void
void
positionRelative
(CssContext cssCtx) void
void
removeChild
(int i) void
removeChild
(Box child) void
void
void
setBaseline
(int baseline) void
setContainingBlockWidth
(int containingBlockWidth) void
setEndsHere
(boolean endsHere) void
setInlineWidth
(int inlineWidth) void
setPending
(boolean b) void
setStartsHere
(boolean startsHere) void
setTextDecorations
(List textDecoration) toString()
void
Methods inherited from class org.xhtmlrenderer.render.Box
addAllChildren, addChild, addChildForLayout, analyzePageBreaks, calcPaintingInfo, crossesPageBreak, detach, exportText, forcePageBreakAfter, forcePageBreakBefore, getAbsX, getAbsY, getBorder, getBoxDimensions, getChild, getChildCount, getChildIterator, getChildren, getChildrenClipEdge, getContainingBlock, getContainingLayer, getContentWidth, getDocumentParent, getEffBackgroundColor, getElement, getHeight, getLayer, getLeftMBP, getMargin, getMarginBorderPadding, getMarginEdge, getNextSibling, getPadding, getPaddingEdge, getPaintingBorderEdge, getPaintingClipEdge, getPaintingInfo, getPaintingPaddingEdge, getParent, getPreviousSibling, getPseudoElementOrClass, getRelativeOffset, getRightMBP, getState, getStyle, getTx, getTy, getWidth, getX, getY, initContainingLayer, intersects, isAnonymous, isBody, isContainedInMarginBox, isInDocumentFlow, isRoot, isStyled, paintBackground, paintBorder, paintRootElementBackground, removeAllChildren, reset, resetChildren, setAbsX, setAbsY, setAnonymous, setBoxDimensions, setContainingBlock, setContainingLayer, setContentWidth, setElement, setHeight, setLayer, setLeftMBP, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setParent, setPseudoElementOrClass, setRelativeOffset, setRightMBP, setState, setStyle, setTx, setTy, setX, setY, stateToString
-
Constructor Details
-
InlineLayoutBox
-
-
Method Details
-
copyOf
-
calculateHeight
-
getBaseline
public int getBaseline() -
setBaseline
public void setBaseline(int baseline) -
getInlineChildCount
public int getInlineChildCount() -
addInlineChild
-
addInlineChild
-
getInlineChildren
-
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:
connectChildrenToCurrentLayer
in classBox
-
paintSelection
-
paintInline
- Specified by:
paintInline
in interfaceInlinePaintable
-
getBorderSides
public int getBorderSides()- Overrides:
getBorderSides
in classBox
-
getBorderEdge
- Overrides:
getBorderEdge
in classBox
-
getMarginEdge
- Overrides:
getMarginEdge
in classBox
-
getContentAreaEdge
- Overrides:
getContentAreaEdge
in classBox
-
getLeftMarginBorderPadding
-
getRightMarginPaddingBorder
-
getInlineWidth
public int getInlineWidth() -
setInlineWidth
public void setInlineWidth(int inlineWidth) -
isContainsVisibleContent
public boolean isContainsVisibleContent() -
intersectsInlineBlocks
-
getTextDecorations
-
setTextDecorations
-
getLineBox
-
getElementWithContent
-
getElementBoxes
- Overrides:
getElementBoxes
in classBox
-
positionRelative
- Overrides:
positionRelative
in classBox
-
addAllChildren
-
paintDebugOutline
-
removeChild
- Overrides:
removeChild
in classBox
-
removeChild
public void removeChild(int i) - Overrides:
removeChild
in classBox
-
calcCanvasLocation
public void calcCanvasLocation()- Specified by:
calcCanvasLocation
in classBox
-
calcChildLocations
public void calcChildLocations()- Overrides:
calcChildLocations
in classBox
-
clearSelection
- Overrides:
clearSelection
in classBox
-
selectAll
public void selectAll() -
lookForDynamicFunctions
-
findTrailingText
-
calculateTextDecoration
-
find
-
getContainingBlockWidth
public int getContainingBlockWidth() -
setContainingBlockWidth
public void setContainingBlockWidth(int containingBlockWidth) -
toString
-
dump
-
restyle
-
getRestyleTarget
- Overrides:
getRestyleTarget
in classBox
-
collectText
- Overrides:
collectText
in classBox
- Throws:
IOException
-
countJustifiableChars
-
adjustHorizontalPosition
-
getEffectiveWidth
public int getEffectiveWidth()- Overrides:
getEffectiveWidth
in classBox
-