Package com.openhtmltopdf.render
Class LineBox
java.lang.Object
com.openhtmltopdf.render.Box
com.openhtmltopdf.render.LineBox
- All Implemented Interfaces:
InlinePaintable,Styleable,DisplayListItem
public class LineBox extends Box implements InlinePaintable
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
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 LineBox() -
Method Summary
Methods inherited from class com.openhtmltopdf.render.Box
addAllChildren, addChild, addChildForLayout, ancestors, ancestorsWhile, calcChildPaintingInfo, calcPaintingInfo, connectChildrenToCurrentLayer, crossesPageBreak, detach, dumpBoxes, exportPageBoxText, findAncestor, findColumnBreakOpportunities, forcePageBreakAfter, forcePageBreakBefore, forcePageBreakBefore, getAbsoluteClipBox, getAbsX, getAbsY, getAccessibilityObject, getBorder, getBorderBox, getBorderBoxHeight, getBorderBoxWidth, getBorderEdge, getBorderSides, getBoxDimensions, getChild, getChildCount, getChildIterator, getChildIteratorOfType, getChildren, getChildrenClipEdge, getClipBox, getContainingBlock, getContainingBlockWidth, getContainingLayer, getContentAreaEdge, getContentWidth, getDocumentParent, getEffBackgroundColor, getEffectiveWidth, getElement, getElementBoxes, getHeight, getIndex, getLayer, getLeftMBP, getMargin, getMarginBorderPadding, getMarginEdge, getNext, getNextSibling, getPadding, getPaddingEdge, getPaddingWidth, getPaintingBorderEdge, getPaintingInfo, getPaintingPaddingEdge, getParent, getParentClipBox, getPrevious, getPreviousSibling, getPseudoElementOrClass, getRelativeOffset, getRightMBP, getState, getStyle, getStyleMargin, getStyleMargin, getTx, getTy, getWidth, getX, getY, hasRootElementBackground, initContainingLayer, isAnonymous, isBody, isContainedInMarginBox, isFirstChild, isInDocumentFlow, isInitialContainingBlock, isInlineBlock, isMarginAreaRoot, isRoot, isStyled, moveIfGreater, paintBackground, paintBorder, paintRootElementBackground, positionRelative, removeAllChildren, removeChild, removeChild, resetChildren, resetChildren, resetTopMargin, restyleChildren, 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
-
LineBox
public LineBox()
-
-
Method Details
-
dump
-
toString
-
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) -
align
-
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 but does consider the transformation matrix of the containing layer.- 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) -
getMinPaintingTop
public int getMinPaintingTop() -
getMaxPaintingBottom
public int getMaxPaintingBottom() -
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
-
getBaseline
public int getBaseline() -
setBaseline
public void setBaseline(int baseline) -
isContainsOnlyBlockLevelContent
public boolean isContainsOnlyBlockLevelContent() -
getRestyleTarget
- Overrides:
getRestyleTargetin classBox
-
restyle
-
isContainsVisibleContent
public boolean isContainsVisibleContent() -
collectText
- Overrides:
collectTextin classBox
-
exportText
- Overrides:
exportTextin classBox- Throws:
IOException
-
analyzePageBreaks
- Overrides:
analyzePageBreaksin classBox
-
checkPagePosition
-
getJustificationInfo
-
setDirectionality
public void setDirectionality(byte direction) -
isLayedOutRTL
public boolean isLayedOutRTL() -
hasNonTextContent
- Overrides:
hasNonTextContentin classBox
-
isTerminalColumnBreak
public boolean isTerminalColumnBreak()Description copied from class:BoxIs this box unbreakable in regards to column break opportunities?- Overrides:
isTerminalColumnBreakin classBox
-
isEndsOnNL
public boolean isEndsOnNL() -
setEndsOnNL
public void setEndsOnNL(boolean endsOnNL)
-