Uses of Class
com.openhtmltopdf.render.BlockBox
Packages that use BlockBox
Package
Description
-
Uses of BlockBox in com.openhtmltopdf.extend
Methods in com.openhtmltopdf.extend with parameters of type BlockBoxModifier and TypeMethodDescriptionReplacedElementFactory.createReplacedElement
(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) NOTE: Only block equivalent elements can be replaced.void
OutputDevice.paintReplacedElement
(RenderingContext c, BlockBox box) -
Uses of BlockBox in com.openhtmltopdf.java2d
Fields in com.openhtmltopdf.java2d declared as BlockBoxMethods in com.openhtmltopdf.java2d with parameters of type BlockBoxModifier and TypeMethodDescriptionJava2DReplacedElementFactory.createReplacedElement
(LayoutContext context, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) void
Java2DOutputDevice.finish
(RenderingContext c, BlockBox _root) void
Java2DOutputDevice.paintReplacedElement
(RenderingContext c, BlockBox box) void
-
Uses of BlockBox in com.openhtmltopdf.layout
Fields in com.openhtmltopdf.layout declared as BlockBoxModifier and TypeFieldDescriptionprivate final BlockBox
BreakAtLineContext._block
private BlockBox
FloatLayoutResult._block
private BlockBox
BoxRangeData._box
private final BlockBox
FloatManager.BoxDistance._box
private final BlockBox
FloatManager.BoxOffset._box
(package private) BlockBox
FootnoteManager.FootnoteArea.footnoteArea
Fields in com.openhtmltopdf.layout with type parameters of type BlockBoxModifier and TypeFieldDescriptionprivate final Map
<BlockBox, FootnoteManager.FootnoteArea> FootnoteManager._containerMap
Layer._floats
Layer._pageSequences
Layer._runningBlocks
Layer._sortedPageSequences
Methods in com.openhtmltopdf.layout that return BlockBoxModifier and TypeMethodDescriptionprivate static BlockBox
BoxBuilder.createBlockBox
(CalculatedStyle style, BoxBuilder.ChildBoxInfo info, boolean generated) private BlockBox
FootnoteManager.createFootnoteAreaBlock
(LayoutContext c, PageBox footnoteCallPage) Sets up the footnote area.private static BlockBox
BoxBuilder.createFootnoteBody
(LayoutContext c, Element element, CalculatedStyle style) Creates the footnote body to put at the bottom of the page inside a page's footnote area.static BlockBox
BoxBuilder.createRootBox
(LayoutContext c, Document document) private BlockBox
Layer.findPageSequence
(List<BlockBox> sequences, int absY) BreakAtLineContext.getBlock()
FloatLayoutResult.getBlock()
BoxRangeData.getBox()
(package private) BlockBox
FloatManager.BoxDistance.getBox()
FloatManager.BoxOffset.getBox()
static BlockBox
BoxBuilder.getRunningBlock
(LayoutContext c, PropertyValue value) Layer.getRunningBlock
(String identifer, PageBox page, PageElementPosition which) private static BlockBox
BoxBuilder.reorderTableContent
(LayoutContext c, TableBox table) Reorganizes a table so that the header is the first row group and the footer the last.Methods in com.openhtmltopdf.layout that return types with arguments of type BlockBoxMethods in com.openhtmltopdf.layout with parameters of type BlockBoxModifier and TypeMethodDescriptionvoid
Layer.addFloat
(BlockBox floater, BlockFormattingContext bfc) void
FootnoteManager.addFootnoteBody
(LayoutContext c, BlockBox footnoteBody, LineBox line) Adds a footnote body to the line box page, creating the footnote area as required.void
Layer.addPageSequence
(BlockBox start) void
Layer.addRunningBlock
(BlockBox block) private void
FloatManager.alignToLastFloat
(CssContext cssCtx, BlockFormattingContext bfc, BlockBox current, FloatManager.FloatDirection direction) private void
FloatManager.alignToLastOpposingFloat
(CssContext cssCtx, BlockFormattingContext bfc, BlockBox current, FloatManager.FloatDirection direction) static boolean
BlockBoxing.avoidPageBreakBetween
(BlockBox previous, BlockBox current) If we should try to avoid a page break between two block boxes.(package private) abstract void
BlockBoxing.AbstractRelayoutDataList.configureRun
(int boxIndex, BlockBox previous, BlockBox current) void
BlockBoxing.LiteRelayoutDataList.configureRun
(int offset, BlockBox previous, BlockBox current) Marks two consecutive block boxes as being in a run of boxes where a page break should not occur between them as set in thepage-break-after
andpage-break-before
CSS properties.private static void
BoxBuilder.createAnonymousTableContent
(LayoutContext c, BlockBox source, IdentValue next, List<Styleable> childrenForAnonymous, List<Styleable> childrenWithAnonymous) static void
BoxBuilder.createChildren
(LayoutContext c, BlockBox parent) private static void
BoxBuilder.createChildren
(LayoutContext c, BlockBox blockParent, Element parent, List<Styleable> children, BoxBuilder.ChildBoxInfo info, boolean inline) private static void
BoxBuilder.createElementChild
(LayoutContext c, Element parent, BlockBox blockParent, Node working, List<Styleable> children, BoxBuilder.ChildBoxInfo info, BoxBuilder.CreateChildrenContext context) private boolean
FloatManager.fitsInContainingBlock
(BlockBox current) void
BlockFormattingContext.floatBox
(LayoutContext c, BlockBox floated) void
FloatManager.floatBox
(LayoutContext c, Layer layer, BlockFormattingContext bfc, BlockBox box) private Point
FloatManager.getOffset
(BlockBox floater, Stream<FloatManager.BoxOffset> floats) private static boolean
InlineBoxing.isAlwaysBreak
(LayoutContext c, BlockBox parent, int breakAtLine, int lineOffset) private static boolean
BlockBoxing.isPageBreakBetweenChildBoxes
(BlockBoxing.AbstractRelayoutDataList relayoutDataList, int runStart, int runEnd, LayoutContext c, BlockBox block) private static boolean
BoxBuilder.isParentInline
(BlockBox box) static void
LayoutUtil.layoutAbsolute
(LayoutContext c, LineBox currentLine, BlockBox box) private static void
BlockBoxing.layoutBlockChild
(LayoutContext c, BlockBox parent, BlockBox child, boolean needPageClear, int childOffset, int trimmedPageCount, LayoutState layoutState) private static void
BlockBoxing.layoutBlockChild0
(LayoutContext c, BlockBox parent, BlockBox child, boolean needPageClear, int childOffset, int trimmedPageCount) static void
BlockBoxing.layoutContent
(LayoutContext c, BlockBox block, int contentStart) static void
InlineBoxing.layoutContent
(LayoutContext c, BlockBox box, int initialY, int breakAtLine) static FloatLayoutResult
LayoutUtil.layoutFloated
(LayoutContext c, LineBox currentLine, BlockBox block, int avail, List<FloatLayoutResult> pendingFloats) private static void
InlineBoxing.layoutInlineBlockContent
(LayoutContext c, BlockBox containingBlock, BlockBox inlineBlock, int initialY) private void
FloatManager.moveAllTheWayOver
(BlockBox current, FloatManager.FloatDirection direction) private boolean
FloatManager.overlaps
(CssContext cssCtx, BlockFormattingContext bfc, BlockBox current, List<FloatManager.BoxOffset> floats) void
Layer.paintAsLayer
(RenderingContext c, BlockBox startingPoint) Deprecated.private void
Layer.paintReplacedElement
(RenderingContext c, BlockBox replaced) Deprecated.private void
FloatManager.position
(CssContext cssCtx, BlockFormattingContext bfc, BlockBox current, FloatManager.FloatDirection direction) private static void
LayoutUtil.positionFloatOnPage
(LayoutContext c, LineBox currentLine, BlockBox block, boolean movedVertically) private static void
InlineBoxing.positionInlineBlockVertically
(LayoutContext c, VerticalAlignContext vaContext, BlockBox inlineBlock) private static int
InlineBoxing.processOutOfFlowContent
(LayoutContext c, LineBox current, BlockBox block, int available, List<FloatLayoutResult> pendingFloats) private static Integer
BlockBoxing.processPageBreakAvoidRun
(LayoutContext c, BlockBox block, List<Box> localChildren, int offset, BlockBoxing.AbstractRelayoutDataList relayoutDataList, BlockBox childBox) private static int
BlockBoxing.relayoutRun
(LayoutContext c, List<Box> localChildren, BlockBox block, BlockBoxing.AbstractRelayoutDataList relayoutDataList, int start, int end, boolean onNewPage) void
FloatManager.removeFloat
(BlockBox floater) private void
FloatManager.removeFloat
(BlockBox floater, List<FloatManager.BoxOffset> floats) void
Layer.removeFloat
(BlockBox floater) FIXME: Only used when we reset a box, so trying to remove at sometime in the future.void
Layer.removeRunningBlock
(BlockBox block) private static void
BlockBoxing.repositionBox
(LayoutContext c, BlockBox child, int trimmedPageCount) private static void
LayoutUtil.resetAndFloatBlock
(LayoutContext c, LineBox currentLine, BlockBox block) private static void
BoxBuilder.resolveChildren
(LayoutContext c, BlockBox owner, List<Styleable> children, BoxBuilder.ChildBoxInfo info) private static void
BoxBuilder.resolveChildTableContent
(LayoutContext c, BlockBox parent, List<Styleable> children, BoxBuilder.ChildBoxInfo info, IdentValue target) Handles the situation when we find table content, but our parent is not table related.private static void
BoxBuilder.resolveTableContent
(LayoutContext c, BlockBox parent, List<Styleable> children, BoxBuilder.ChildBoxInfo info) Handles the situation when our current parent is table related.private void
FloatManager.save
(BlockBox current, Layer layer, BlockFormattingContext bfc, FloatManager.FloatDirection direction) private static void
InlineBoxing.saveLine
(LineBox current, LayoutContext c, BlockBox block, int minHeight, int maxAvailableWidth, List<FloatLayoutResult> pendingFloats, boolean hasFirstLinePCs, List<Layer> pendingInlineLayers, MarkerData markerData, int contentStart, boolean alwaysBreak) void
void
private static void
InlineBoxing.startInlineBlock
(LayoutContext c, BlockBox box, int initialY, int breakAtLine, byte blockLayoutDirection, InlineBoxing.SpaceVariables space, InlineBoxing.StateVariables current, InlineBoxing.StateVariables previous, int contentStart, List<InlineBox> openInlineBoxes, Map<InlineBox, InlineLayoutBox> iBMap, int minimumLineHeight, MarkerData markerData, List<FloatLayoutResult> pendingFloats, boolean hasFirstLinePEs, List<Layer> pendingInlineLayers, int lineOffset, BlockBox child) private static void
InlineBoxing.startNewInlineLine
(LayoutContext c, BlockBox box, int breakAtLine, byte blockLayoutDirection, InlineBoxing.SpaceVariables space, InlineBoxing.StateVariables current, InlineBoxing.StateVariables previous, int contentStart, List<InlineBox> openInlineBoxes, Map<InlineBox, InlineLayoutBox> iBMap, int minimumLineHeight, MarkerData markerData, List<FloatLayoutResult> pendingFloats, boolean hasFirstLinePEs, List<Layer> pendingInlineLayers, int lineOffset, InlineBox inlineBox, LineBreakContext lbContext) Method parameters in com.openhtmltopdf.layout with type arguments of type BlockBoxModifier and TypeMethodDescriptionprivate BlockBox
Layer.findPageSequence
(List<BlockBox> sequences, int absY) private int
Layer.getPageSequenceStart
(RenderingContext c, List<BlockBox> sequences, PageBox page) void
FootnoteManager.removeFootnoteBodies
(LayoutContext c, List<BlockBox> footnoteBodies, LineBox line) Removes footnotes.Constructors in com.openhtmltopdf.layout with parameters of type BlockBoxModifierConstructorDescriptionBlockFormattingContext
(BlockBox block, LayoutContext c) BoxDistance
(BlockBox box, int distance) BoxRangeData
(BlockBox box, BoxRange range) BreakAtLineContext
(BlockBox block, int line) PersistentBFC
(BlockBox master, LayoutContext c) -
Uses of BlockBox in com.openhtmltopdf.newtable
Subclasses of BlockBox in com.openhtmltopdf.newtableModifier and TypeClassDescriptionclass
class
class
class
Methods in com.openhtmltopdf.newtable that return BlockBoxModifier and TypeMethodDescriptionTableBox.copyOf()
TableCellBox.copyOf()
TableRowBox.copyOf()
TableSectionBox.copyOf()
protected BlockBox
TableRowBox.getNextCollapsableSibling
(BlockBox.MarginCollapseResult collapsedMargin) Methods in com.openhtmltopdf.newtable with parameters of type BlockBoxModifier and TypeMethodDescriptionvoid
TableRowBox.initStaticPos
(LayoutContext c, BlockBox parent, int childOffset) -
Uses of BlockBox in com.openhtmltopdf.pdfboxout
Fields in com.openhtmltopdf.pdfboxout declared as BlockBoxMethods in com.openhtmltopdf.pdfboxout that return BlockBoxMethods in com.openhtmltopdf.pdfboxout with parameters of type BlockBoxModifier and TypeMethodDescriptionPdfBoxReplacedElementFactory.createReplacedElement
(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) void
BookmarkElement.paint
(RenderingContext c, PdfBoxOutputDevice outputDevice, BlockBox box) void
PdfBoxImageElement.paint
(RenderingContext c, PdfBoxOutputDevice outputDevice, BlockBox box) void
PdfBoxObjectDrawerReplacedElement.paint
(RenderingContext c, PdfBoxOutputDevice outputDevice, BlockBox box) void
PdfBoxPDFReplacedElement.paint
(RenderingContext c, PdfBoxOutputDevice outputDevice, BlockBox box) void
PdfBoxReplacedElement.paint
(RenderingContext c, PdfBoxOutputDevice outputDevice, BlockBox box) void
PdfBoxSVGReplacedElement.paint
(RenderingContext c, PdfBoxOutputDevice outputDevice, BlockBox box) void
PdfBoxFastOutputDevice.paintReplacedElement
(RenderingContext c, BlockBox box) void
PdfBoxOutputDevice.paintReplacedElement
(RenderingContext c, BlockBox box) void
PdfBoxSlowOutputDevice.paintReplacedElement
(RenderingContext c, BlockBox box) -
Uses of BlockBox in com.openhtmltopdf.render
Subclasses of BlockBox in com.openhtmltopdf.renderModifier and TypeClassDescriptionclass
An anonymous block box as defined in the CSS spec.class
class
class
A dummy box representing one side of the margin area of a page.class
A dummy box representing the viewportFields in com.openhtmltopdf.render declared as BlockBoxFields in com.openhtmltopdf.render with type parameters of type BlockBoxMethods in com.openhtmltopdf.render that return BlockBoxModifier and TypeMethodDescriptionAnonymousBlockBox.copyOf()
BlockBox.copyOf()
MarginBox.copyOf()
ViewportBox.copyOf()
InlineBox.getFootnoteBody()
protected BlockBox
BlockBox.getNextCollapsableSibling
(BlockBox.MarginCollapseResult collapsedMargin) LineBox.getParent()
Narrows the return type of LineBox to a BlockBox.Methods in com.openhtmltopdf.render that return types with arguments of type BlockBoxModifier and TypeMethodDescriptionLineBox.getReferencedFootnoteBodies()
Gets the list of footnote bodies which have calls in this line of text.Methods in com.openhtmltopdf.render with parameters of type BlockBoxModifier and TypeMethodDescriptionprivate AnonymousBlockBox
InlineLayoutBox.addFollowingBlockBoxes
(BlockBox container, List<Box> result) void
LineBox.addNonFlowContent
(BlockBox box) void
LineBox.addReferencedFootnoteBody
(BlockBox footnoteBody) private static void
ListItemPainter.drawGlyph
(RenderingContext c, BlockBox box, CalculatedStyle style, IdentValue listStyle) private static void
ListItemPainter.drawImage
(RenderingContext c, BlockBox box, MarkerData markerData) private static void
ListItemPainter.drawText
(RenderingContext c, BlockBox box, IdentValue listStyle) private static int
ListItemPainter.getReferenceBaseline
(RenderingContext c, BlockBox box) private static int
ListItemPainter.getReferenceX
(RenderingContext c, BlockBox box) void
BlockBox.initStaticPos
(LayoutContext c, BlockBox parent, int childOffset) private static boolean
ListItemPainter.isInVisiblePageArea
(RenderingContext c, PageBox page, StrutMetrics metrics, BlockBox box) The list item box may go over two pages.static void
ListItemPainter.paint
(RenderingContext c, BlockBox box) void
InlineBox.setFootnote
(BlockBox footnoteBody) -
Uses of BlockBox in com.openhtmltopdf.render.displaylist
Fields in com.openhtmltopdf.render.displaylist declared as BlockBoxFields in com.openhtmltopdf.render.displaylist with type parameters of type BlockBoxMethods in com.openhtmltopdf.render.displaylist that return BlockBoxMethods in com.openhtmltopdf.render.displaylist that return types with arguments of type BlockBoxMethods in com.openhtmltopdf.render.displaylist with parameters of type BlockBoxModifier and TypeMethodDescriptionprivate void
private void
DisplayListCollector.collectFloatAsLayer
(RenderingContext c, Layer layer, BlockBox floater, DisplayListContainer.DisplayListPageContainer pageInstructions, int pageNumber, int shadowPageNumber) This method can be reached by two code paths:collectRoot -: collect -: processPage -: collectFloatAsLayer -: processPage collectRoot -: collect -: processShadowPages -: foreach(shadowPage) -: processPage -: collectFloatAsLayer -: processPage
Therefore, it is important to be careful when expecting a base page or shadow page.DisplayListCollector.collectInlineBlock
(RenderingContext c, BlockBox bb, EnumSet<DisplayListCollector.CollectFlags> noneOf, int shadowPageNo) private void
DisplayListPainter.paintReplacedElement
(RenderingContext c, BlockBox replaced) private void
DisplayListPainter.updateTableHeaderFooterPosition
(RenderingContext c, BlockBox container) If the container is a table and it is set topaginate
then update its header and footer position for this page.Constructors in com.openhtmltopdf.render.displaylist with parameters of type BlockBox -
Uses of BlockBox in com.openhtmltopdf.render.simplepainter
Methods in com.openhtmltopdf.render.simplepainter with parameters of type BlockBoxModifier and TypeMethodDescriptionvoid
SimplePainter.paintAsLayer
(RenderingContext c, BlockBox startingPoint) private void
SimplePainter.paintReplacedElement
(RenderingContext c, BlockBox replaced) Method parameters in com.openhtmltopdf.render.simplepainter with type arguments of type BlockBoxModifier and TypeMethodDescriptionprivate void
SimplePainter.paintFloats
(RenderingContext c, List<BlockBox> floaters) -
Uses of BlockBox in com.openhtmltopdf.simple.extend
Methods in com.openhtmltopdf.simple.extend with parameters of type BlockBoxModifier and TypeMethodDescriptionNoReplacedElementFactory.createReplacedElement
(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)