java.lang.Object
org.openpdf.render.Box
org.openpdf.render.LineBox
- All Implemented Interfaces:
InlinePaintable,Styleable
A line box contains a single line of text (or other inline content). It
is created during layout. It also tracks floated and absolute content
added while laying out the line.
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllChildren(List<Box> list, Layer layer) voidvoidalign(boolean dynamic) voidanalyzePageBreaks(LayoutContext c, ContentLimitContainer container) voidvoidvoidcheckPagePosition(LayoutContext c, boolean alwaysBreak) voidclearSelection(List<Box> modified) voidcollectText(RenderingContext c, StringBuilder buffer) dump(LayoutContext c, String indent, Box.Dump which) voidexportText(RenderingContext c, Writer writer) @Nullable Boxfind(CssContext cssCtx, int absX, int absY, boolean findAnonymous) @Nullable InlineTextintintgetMarginEdge(CssContext cssCtx, int tx, int ty) @Nullable MarkerDatagetPaintingClipEdge(CssContext cssCtx) intint@Nullable List<TextDecoration> booleanintersects(CssContext cssCtx, Shape clip) NOTE: This method does not consider any children of this boxbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidjustify()voidvoidvoidvoidvoidvoidsetBaseline(int baseline) voidsetContainsBlockLevelContent(boolean containsBlockLevelContent) voidsetContainsContent(boolean containsContent) voidsetContainsDynamicFunction(boolean containsPageCounter) voidsetContentStart(int contentOffset) voidsetEndsOnNL(boolean endsOnNL) voidsetFloatDistances(@Nullable FloatDistances floatDistances) voidsetMarkerData(MarkerData markerData) voidsetPaintingHeight(int paintingHeight) voidsetPaintingTop(int paintingTop) voidsetTextDecorations(List<TextDecoration> textDecorations) voidMethods inherited from class org.openpdf.render.Box
addAllChildren, addChild, addChildForLayout, appendPosition, appendSize, calcChildPaintingInfo, calcPaintingInfo, connectChildrenToCurrentLayer, crossesPageBreak, detach, dumpBoxes, exportPageBoxText, forcePageBreakAfter, forcePageBreakBefore, getAbsX, getAbsY, getBorder, getBorderEdge, getBorderSides, getBoxDimensions, getChild, getChildCount, getChildren, getChildrenClipEdge, getContainingBlock, getContainingBlockWidth, getContainingLayer, getContentAreaEdge, getContentWidth, getEffBackgroundColor, getEffectiveWidth, getElement, getElementBoxes, getHeight, getIndex, getLayer, getLeftMBP, getMargin, getMarginBorderPadding, getMarginEdge, getNext, getNextSibling, getPadding, getPaddingEdge, getPaddingWidth, getPaintingBorderEdge, getPaintingInfo, getPaintingPaddingEdge, getParent, getPrevious, getPreviousSibling, getPseudoElementOrClass, getRelativeOffset, getRightMBP, getState, getStyle, getStyleMargin, getStyleMarginNoCache, getTx, getTy, getWidth, getX, getY, initContainingLayer, isAnonymous, isBody, isContainedInMarginBox, isInDocumentFlow, isInitialContainingBlock, isInlineBlock, isMarginAreaRoot, isRoot, isStyled, moveIfGreater, paintBackground, paintBorder, paintRootElementBackground, positionRelative, removeAllChildren, removeChild, removeChild, resetChildren, resetChildren, resetTopMargin, restyleChildren, setAbsX, setAbsY, setBoxDimensions, setContainingBlock, setContainingLayer, setContentWidth, setElement, setHeight, setIndex, setLayer, setLeftMBP, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setParent, setPseudoElementOrClass, setRightMBP, setState, setStyle, setTx, setTy, setX, setY, toString
-
Constructor Details
-
LineBox
-
-
Method Details
-
dump
-
getMarginEdge
- Overrides:
getMarginEdgein classBox
-
paintInline
- Specified by:
paintInlinein interfaceInlinePaintable
-
isFirstLine
public boolean isFirstLine() -
prunePendingInlineBoxes
public void prunePendingInlineBoxes() -
isContainsContent
public boolean isContainsContent() -
setContainsContent
public void setContainsContent(boolean containsContent) -
isEndsOnNL
public boolean isEndsOnNL() -
setEndsOnNL
public void setEndsOnNL(boolean endsOnNL) -
align
public void align(boolean dynamic) -
justify
public void justify() -
getFloatDistances
-
setFloatDistances
-
isContainsBlockLevelContent
public boolean isContainsBlockLevelContent() -
setContainsBlockLevelContent
public void setContainsBlockLevelContent(boolean containsBlockLevelContent) -
intersects
Description copied from class:BoxNOTE: This method does not consider any children of this box- Overrides:
intersectsin classBox
-
getPaintingClipEdge
- Overrides:
getPaintingClipEdgein classBox
-
getTextDecorations
-
setTextDecorations
-
getPaintingHeight
public int getPaintingHeight() -
setPaintingHeight
public void setPaintingHeight(int paintingHeight) -
getPaintingTop
public int getPaintingTop() -
setPaintingTop
public void setPaintingTop(int paintingTop) -
addAllChildren
-
getNonFlowContent
-
addNonFlowContent
-
reset
-
calcCanvasLocation
public void calcCanvasLocation()- Specified by:
calcCanvasLocationin classBox
-
calcChildLocations
public void calcChildLocations()- Overrides:
calcChildLocationsin classBox
-
getMarkerData
-
setMarkerData
-
isContainsDynamicFunction
public boolean isContainsDynamicFunction() -
setContainsDynamicFunction
public void setContainsDynamicFunction(boolean containsPageCounter) -
getContentStart
public int getContentStart() -
setContentStart
public void setContentStart(int contentOffset) -
findTrailingText
-
trimTrailingSpace
-
find
@CheckReturnValue public @Nullable Box find(CssContext cssCtx, int absX, int absY, boolean findAnonymous) -
getBaseline
public int getBaseline() -
setBaseline
public void setBaseline(int baseline) -
isContainsOnlyBlockLevelContent
public boolean isContainsOnlyBlockLevelContent() -
getRestyleTarget
- Overrides:
getRestyleTargetin classBox
-
restyle
-
isContainsVisibleContent
public boolean isContainsVisibleContent() -
clearSelection
- Overrides:
clearSelectionin classBox
-
selectAll
public void selectAll() -
collectText
- Overrides:
collectTextin classBox- Throws:
IOException
-
exportText
- Overrides:
exportTextin classBox- Throws:
IOException
-
analyzePageBreaks
- Overrides:
analyzePageBreaksin classBox
-
checkPagePosition
-
getJustificationInfo
-