Uses of Class
com.openhtmltopdf.layout.LayoutContext
Packages that use LayoutContext
Package
Description
-
Uses of LayoutContext in com.openhtmltopdf.bidi
Methods in com.openhtmltopdf.bidi with parameters of type LayoutContextModifier and TypeMethodDescriptionvoid
ParagraphSplitter.runBidiOnParagraphs
(LayoutContext c) Run bidi splitting on the document's paragraphs.protected void
ParagraphSplitter.FakeParagraph.runBidiSplitter
(BidiSplitter splitter, LayoutContext c) protected void
ParagraphSplitter.Paragraph.runBidiSplitter
(BidiSplitter splitter, LayoutContext c) Here we call out to the actual BIDI algorithm.private void
ParagraphSplitter.splitParagraphs
(LayoutContext c, Node parent, ParagraphSplitter.Paragraph nearestBlock) Here we recursively split everything into paragraphs.void
ParagraphSplitter.splitRoot
(LayoutContext c, Document doc) This starts everything by recursively dividing the document into paragraphs. -
Uses of LayoutContext in com.openhtmltopdf.context
Methods in com.openhtmltopdf.context with parameters of type LayoutContextModifier and TypeMethodDescriptionContentFunctionFactory.FsIfCutOffFunction.calculate
(LayoutContext c, FSFunction function) ContentFunctionFactory.LeaderFunction.calculate
(LayoutContext c, FSFunction function) ContentFunctionFactory.PageNumberFunction.calculate
(LayoutContext c, FSFunction function) ContentFunctionFactory.TargetCounterFunction.calculate
(LayoutContext c, FSFunction function) ContentFunctionFactory.TargetTextFunction.calculate
(LayoutContext c, FSFunction function) boolean
ContentFunctionFactory.FsIfCutOffFunction.canHandle
(LayoutContext c, FSFunction function) boolean
ContentFunctionFactory.LeaderFunction.canHandle
(LayoutContext c, FSFunction function) boolean
ContentFunctionFactory.PageCounterFunction.canHandle
(LayoutContext c, FSFunction function) boolean
ContentFunctionFactory.PagesCounterFunction.canHandle
(LayoutContext c, FSFunction function) boolean
ContentFunctionFactory.TargetCounterFunction.canHandle
(LayoutContext c, FSFunction function) boolean
ContentFunctionFactory.TargetTextFunction.canHandle
(LayoutContext c, FSFunction function) ContentFunctionFactory.lookupFunction
(LayoutContext c, FSFunction function) -
Uses of LayoutContext in com.openhtmltopdf.css.extend
Methods in com.openhtmltopdf.css.extend with parameters of type LayoutContextModifier and TypeMethodDescriptionContentFunction.calculate
(LayoutContext c, FSFunction function) boolean
ContentFunction.canHandle
(LayoutContext c, FSFunction function) -
Uses of LayoutContext in com.openhtmltopdf.extend
Methods in com.openhtmltopdf.extend with parameters of type LayoutContextModifier and TypeMethodDescriptionReplacedElementFactory.createReplacedElement
(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) NOTE: Only block equivalent elements can be replaced.void
ReplacedElement.detach
(LayoutContext c) -
Uses of LayoutContext in com.openhtmltopdf.java2d
Methods in com.openhtmltopdf.java2d that return LayoutContextMethods in com.openhtmltopdf.java2d with parameters of type LayoutContextModifier and TypeMethodDescriptionJava2DReplacedElementFactory.createReplacedElement
(LayoutContext context, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) private Rectangle
Java2DRenderer.getInitialExtents
(LayoutContext c) -
Uses of LayoutContext in com.openhtmltopdf.layout
Methods in com.openhtmltopdf.layout that return LayoutContextMethods in com.openhtmltopdf.layout with parameters of type LayoutContextModifier and TypeMethodDescriptionprivate static void
InlineBoxing.addBoxId
(LayoutContext c, InlineBoxing.StateVariables current) private static void
BoxBuilder.addColumnOrColumnGroup
(LayoutContext c, TableBox table, Element e, CalculatedStyle style) private static void
BoxBuilder.addColumns
(LayoutContext c, TableBox table, TableColumn parent) private static InlineLayoutBox
InlineBoxing.addFirstLetterBox
(LayoutContext c, LineBox current, InlineLayoutBox currentIB, LineBreakContext lbContext, int maxAvailableWidth, int remainingWidth, byte textDirection) void
FootnoteManager.addFootnoteBody
(LayoutContext c, BlockBox footnoteBody, LineBox line) Adds a footnote body to the line box page, creating the footnote area as required.private static InlineLayoutBox
InlineBoxing.addOpenInlineBoxes
(LayoutContext c, LineBox line, List<InlineBox> openParents, int cbWidth, Map<InlineBox, InlineLayoutBox> iBMap) We have to convert this HTML (angle brackets replaced with square brackets):private static void
InlineBoxing.alignInlineContent
(LayoutContext c, Box box, float ascent, float descent, VerticalAlignContext vaContext) private static void
InlineBoxing.alignLine
(LayoutContext c, LineBox current, int maxAvailableWidth) static void
Breaker.breakFirstLetter
(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style) static Breaker.BreakTextResult
Breaker.breakText
(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style, boolean tryToBreakAnywhere, int lineWidth, boolean forceOutput) private PaintingInfo
Layer.calcPaintingDimension
(LayoutContext c) private static InlineBoxMeasurements
InlineBoxing.calculateInlineMeasurements
(LayoutContext c, InlineLayoutBox iB, VerticalAlignContext vaContext) void
BlockFormattingContext.clear
(LayoutContext c, Box current) private static void
BoxBuilder.createAnonymousTableContent
(LayoutContext c, BlockBox source, IdentValue next, List<Styleable> childrenForAnonymous, List<Styleable> childrenWithAnonymous) private static Styleable
BoxBuilder.createChildBlockBox
(LayoutContext c, BoxBuilder.ChildBoxInfo info, Element element, CalculatedStyle style) 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.createColumnContainer
(LayoutContext c, Styleable child, Element element, CalculatedStyle style) static StrutMetrics
InlineBoxing.createDefaultStrutMetrics
(LayoutContext c, Box container) private static void
BoxBuilder.createElementChild
(LayoutContext c, Element parent, BlockBox blockParent, Node working, List<Styleable> children, BoxBuilder.ChildBoxInfo info, BoxBuilder.CreateChildrenContext context) private FootnoteManager.FootnoteArea
FootnoteManager.createFootnoteArea
(LayoutContext c, PageBox page) 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.private static Element
BoxBuilder.createFootnoteCallAnchor
(LayoutContext c, Element parent) Used to create the anchor element to link to the footnote body for the footnote-call pseudo element.private static Element
BoxBuilder.createFootnoteTarget
(LayoutContext c, Element parent) Creates an element with id for the footnote-marker pseudo element so we can link to it from the footnote-call pseduo element.BoxBuilder.createGeneratedContent
(LayoutContext c, Element element, String peName, CalculatedStyle style, PropertyValue property, BoxBuilder.ChildBoxInfo info) Creates generated content boxes for pseudo elements such as::before
.BoxBuilder.createGeneratedContentList
(LayoutContext c, Element element, List<PropertyValue> values, String peName, CalculatedStyle style, int mode, BoxBuilder.ChildBoxInfo info, List<Styleable> result) BoxBuilder.createGeneratedMarginBoxContent
(LayoutContext c, Element element, PropertyValue property, CalculatedStyle style, BoxBuilder.ChildBoxInfo info) private static void
BoxBuilder.createInlineChildren
(LayoutContext c, Element parent, List<Styleable> children, BoxBuilder.ChildBoxInfo info, BoxBuilder.CreateChildrenContext context, Element element) private static TableCellBox
BoxBuilder.createMarginBox
(LayoutContext c, CascadedStyle cascadedStyle, boolean alwaysCreate) static TableBox
BoxBuilder.createMarginTable
(LayoutContext c, PageInfo pageInfo, MarginBoxName[] names, int height, int direction) static BlockBox
BoxBuilder.createRootBox
(LayoutContext c, Document document) boolean
Layer.crossesPageBreak
(LayoutContext c, int top, int bottom) Returns whether the a box with the given top and bottom would cross a page break.private static InlineBox
BoxBuilder.doBidi
(LayoutContext c, Text textNode, Element parent, CalculatedStyle parentStyle, InlineBox previousIB, List<Styleable> children) Attempts to divide a Text node further into directional text runs, either LTR or RTL.private static LineBreakContext.LineBreakResult
Breaker.doBreakText
(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style, boolean tryToBreakAnywhere) Breaker.doBreakText
(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style, Breaker.TextBreakerSupplier lineBreaker) private static InlineBox
BoxBuilder.doFakeBidi
(LayoutContext c, Text textNode, Element parent, CalculatedStyle parentStyle, InlineBox previousIB, List<Styleable> children) private static void
InlineBoxing.endInlineBox
(LayoutContext c, InlineBoxing.SpaceVariables space, InlineBoxing.StateVariables current, InlineBoxing.StateVariables previous, List<InlineBox> openInlineBoxes, List<Layer> pendingInlineLayers, InlineBox inlineBox, CalculatedStyle style) void
Layer.finish
(LayoutContext c) private static void
InlineBoxing.finishPendingInlineLayers
(LayoutContext c, List<Layer> layers) void
BlockFormattingContext.floatBox
(LayoutContext c, BlockBox floated) void
FloatManager.floatBox
(LayoutContext c, Layer layer, BlockFormattingContext bfc, BlockBox box) private static InlineBoxMeasurements
InlineBoxing.getInitialMeasurements
(LayoutContext c, Box container, FSFontMetrics strutM) Layer.getPaintingDimension
(LayoutContext c) static BlockBox
BoxBuilder.getRunningBlock
(LayoutContext c, PropertyValue value) private static void
BoxBuilder.insertGeneratedContent
(LayoutContext c, Element element, CalculatedStyle parentStyle, String peName, List<Styleable> children, BoxBuilder.ChildBoxInfo info) 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.isValidFootnote
(LayoutContext c, Element element, CalculatedStyle style) static void
LayoutUtil.layoutAbsolute
(LayoutContext c, LineBox currentLine, BlockBox box) private void
Layer.layoutAbsoluteChild
(LayoutContext c, Layer child) private void
Layer.layoutAbsoluteChildren
(LayoutContext c) 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) void
Layer.layoutPages
(LayoutContext c) private static InlineText
InlineBoxing.layoutText
(LayoutContext c, CalculatedStyle style, int remainingWidth, LineBreakContext lbContext, boolean needFirstLetter, byte textDirection, boolean tryToBreakAnywhere, int lineWidth, boolean forceOutput) private static void
BoxBuilder.logInvalidFootnoteStyle
(LayoutContext c, Element element, CalculatedStyle style) private static CounterFunction
BoxBuilder.makeCounterFunction
(FSFunction function, LayoutContext c, CalculatedStyle style) private static LineBox
InlineBoxing.newLine
(LayoutContext c, int y, Box box) private static LineBox
InlineBoxing.newLine
(LayoutContext c, LineBox previousLine, Box box) private void
Layer.position
(LayoutContext c) void
Layer.positionChildren
(LayoutContext c) private static void
LayoutUtil.positionFloatOnPage
(LayoutContext c, LineBox currentLine, BlockBox block, boolean movedVertically) private void
FootnoteManager.positionFootnoteArea
(LayoutContext c, FootnoteManager.FootnoteArea area, PageBox firstPage, int lineHeight, boolean allowRepeat) private static void
InlineBoxing.positionInlineBlockVertically
(LayoutContext c, VerticalAlignContext vaContext, BlockBox inlineBlock) private static void
InlineBoxing.positionInlineChildrenVertically
(LayoutContext c, InlineLayoutBox current, VerticalAlignContext vaContext) private static void
InlineBoxing.positionInlineContentVertically
(LayoutContext c, VerticalAlignContext vaContext, Box child) private static void
InlineBoxing.positionInlineVertically
(LayoutContext c, VerticalAlignContext vaContext, InlineLayoutBox iB) private static void
InlineBoxing.positionVertically
(LayoutContext c, Box container, LineBox current, MarkerData markerData) 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
FootnoteManager.removeFootnoteBodies
(LayoutContext c, List<BlockBox> footnoteBodies, LineBox line) Removes footnotes.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.private static void
BlockBoxing.repositionBox
(LayoutContext c, BlockBox child, int trimmedPageCount) private void
FootnoteManager.reserveSubsequentPagesForFootnoteArea
(LayoutContext c, FootnoteManager.FootnoteArea area, int desiredHeight, int footnoteTop, int startAt) 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.resolveElementCounters
(LayoutContext c, Node working, Element element, CalculatedStyle style) 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 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) private static void
BoxBuilder.splitParagraphs
(LayoutContext c, Document document) Split the document into paragraphs for use in analyzing bi-directional text runs.private static void
InlineBoxing.startFirstLetterInlineLayoutBox
(LayoutContext c, InlineBoxing.SpaceVariables space, InlineBoxing.StateVariables current, InlineBox inlineBox, LineBreakContext lbContext) 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.startInlineBox
(LayoutContext c, InlineBoxing.SpaceVariables space, InlineBoxing.StateVariables current, InlineBoxing.StateVariables previous, List<InlineBox> openInlineBoxes, Map<InlineBox, InlineLayoutBox> iBMap, InlineBox inlineBox, CalculatedStyle style) private static InlineBoxing.StartInlineTextResult
InlineBoxing.startInlineText
(LayoutContext c, LineBreakContext lbContext, InlineBox inlineBox, InlineBoxing.SpaceVariables space, InlineBoxing.StateVariables current, int fit, boolean trimmedLeadingSpace, boolean tryToBreakAnywhere, boolean forceOutput) Trys to consume the text in lbContext.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) BoxBuilder.wrapGeneratedContent
(LayoutContext c, Element element, String peName, CalculatedStyle style, BoxBuilder.ChildBoxInfo info, BoxBuilder.ChildBoxInfo childInfo, List<Styleable> inlineBoxes) Constructors in com.openhtmltopdf.layout with parameters of type LayoutContextModifierConstructorDescriptionBlockFormattingContext
(BlockBox block, LayoutContext c) PersistentBFC
(BlockBox master, LayoutContext c) -
Uses of LayoutContext in com.openhtmltopdf.layout.counter
Constructors in com.openhtmltopdf.layout.counter with parameters of type LayoutContextModifierConstructorDescriptionCounterContext
(LayoutContext ctx, CalculatedStyle style, Integer startIndex) A CounterContext should really be reflected in the element hierarchy, but CalculatedStyles reflect the ancestor hierarchy just as well and also handles pseudo-elements seamlessly. -
Uses of LayoutContext in com.openhtmltopdf.newtable
Methods in com.openhtmltopdf.newtable with parameters of type LayoutContextModifier and TypeMethodDescriptionprivate void
TableRowBox.alignBaselineAlignedCells
(LayoutContext c) private boolean
TableRowBox.alignMiddleAndBottomAlignedCells
(LayoutContext c) private void
TableBox.analyzePageBreaks
(LayoutContext c) void
TableBox.analyzePageBreaks
(LayoutContext c, ContentLimitContainer container) void
TableRowBox.analyzePageBreaks
(LayoutContext c, ContentLimitContainer container) int
TableCellBox.calcBaseline
(LayoutContext c) int
TableCellBox.calcBlockBaseline
(LayoutContext c) private void
TableBox.calcBorders
(LayoutContext c) void
TableSectionBox.calcBorders
(LayoutContext c) private void
TableRowBox.calcDefaultBaseline
(LayoutContext c) private long
TableBox.AutoTableLayout.calcEffectiveWidth
(LayoutContext c) private void
TableRowBox.calcExtraSpaceBottom
(LayoutContext c) private void
TableRowBox.calcExtraSpaceTop
(LayoutContext c) protected void
TableBox.calcLayoutHeight
(LayoutContext c, BorderPropertySet border, RectPropertySet margin, RectPropertySet padding) protected void
TableRowBox.calcLayoutHeight
(LayoutContext c, BorderPropertySet border, RectPropertySet margin, RectPropertySet padding) void
TableBox.AutoTableLayout.calcMinMaxWidth
(LayoutContext c) void
TableBox.calcMinMaxWidth
(LayoutContext c) void
TableBox.FixedTableLayout.calcMinMaxWidth
(LayoutContext c) void
TableBox.MarginTableLayout.calcMinMaxWidth
(LayoutContext c) void
TableBox.TableLayout.calcMinMaxWidth
(LayoutContext c) private void
TableBox.calcPageClearance
(LayoutContext c) private int
TableBox.FixedTableLayout.calcWidthArray
(LayoutContext c) int
TableRowBox.forcePageBreakBefore
(LayoutContext c, IdentValue pageBreakValue, boolean pendingPageName) private void
TableBox.AutoTableLayout.fullRecalc
(LayoutContext c) void
TableRowBox.initStaticPos
(LayoutContext c, BlockBox parent, int childOffset) boolean
TableCellBox.isPageBreaksChange
(LayoutContext c, int posDeltaY) private boolean
TableRowBox.isShouldMoveToNextPage
(LayoutContext c) void
TableBox.AutoTableLayout.layout
(LayoutContext c) void
TableBox.FixedTableLayout.layout
(LayoutContext c) void
TableBox.layout
(LayoutContext c) void
TableBox.TableLayout.layout
(LayoutContext c) void
TableCellBox.layout
(LayoutContext c) void
TableRowBox.layout
(LayoutContext c, int contentStart) void
TableSectionBox.layout
(LayoutContext c, int contentStart) private void
TableRowBox.layoutCell
(LayoutContext c, TableCellBox cell, int contentStart) protected void
TableBox.layoutChildren
(LayoutContext c, int contentStart) protected void
TableRowBox.layoutChildren
(LayoutContext c, int contentStart) protected void
TableSectionBox.layoutChildren
(LayoutContext c, int contentStart) private int
TableBox.layoutRunningFooter
(LayoutContext c) private int
TableBox.layoutRunningHeader
(LayoutContext c) private void
TableBox.layoutTable
(LayoutContext c) void
TableCellBox.moveContent
(LayoutContext c, int deltaY) void
TableSectionBox.recalcCells
(LayoutContext c) private void
TableBox.AutoTableLayout.recalcColumn
(LayoutContext c, int effCol) private void
TableBox.recalcSections
(LayoutContext c) private void
TableRowBox.relayoutCell
(LayoutContext c, TableCellBox cell, int contentStart) void
TableBox.reset
(LayoutContext c) void
TableRowBox.reset
(LayoutContext c) void
TableSectionBox.reset
(LayoutContext c) protected void
TableBox.resolveAutoMargins
(LayoutContext c, int cssWidth, RectPropertySet padding, BorderPropertySet border) private void
TableRowBox.setCellHeights
(LayoutContext c) private void
TableBox.setCellWidths
(LayoutContext c) (package private) void
TableSectionBox.setCellWidths
(LayoutContext c) void
TableCellBox.setLayoutWidth
(LayoutContext c, int width) -
Uses of LayoutContext in com.openhtmltopdf.pdfboxout
Methods in com.openhtmltopdf.pdfboxout that return LayoutContextMethods in com.openhtmltopdf.pdfboxout with parameters of type LayoutContextModifier and TypeMethodDescriptionPdfBoxReplacedElementFactory.createReplacedElement
(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) void
BookmarkElement.detach
(LayoutContext c) void
PdfBoxImageElement.detach
(LayoutContext c) void
PdfBoxObjectDrawerReplacedElement.detach
(LayoutContext c) void
PdfBoxPDFReplacedElement.detach
(LayoutContext c) void
PdfBoxSVGReplacedElement.detach
(LayoutContext c) private Rectangle
PdfBoxRenderer.getInitialExtents
(LayoutContext c) -
Uses of LayoutContext in com.openhtmltopdf.render
Methods in com.openhtmltopdf.render with parameters of type LayoutContextModifier and TypeMethodDescriptionprotected void
BlockBox.addBoxID
(LayoutContext c) void
Box.addChildForLayout
(LayoutContext c, Box child) void
InlineLayoutBox.addInlineChild
(LayoutContext c, Object child) void
InlineLayoutBox.addInlineChild
(LayoutContext c, Object child, boolean callUnmarkPending) private int
FlowingColumnContainerBox.adjustUnbalanced
(LayoutContext c, Box child, int colGap, int colWidth, int columnCount, int xStart) private void
LineBox.afterChangePage
(LayoutContext c) void
Box.analyzePageBreaks
(LayoutContext c, ContentLimitContainer container) void
LineBox.analyzePageBreaks
(LayoutContext c, ContentLimitContainer container) private void
LineBox.beforeChangePage
(LayoutContext c) int
BlockBox.calcBaseline
(LayoutContext c) BlockBox.calcBreakAtLineContext
(LayoutContext c) private void
BlockBox.calcClearance
(LayoutContext c) void
BlockBox.calcDimensions
(LayoutContext c) protected void
BlockBox.calcDimensions
(LayoutContext c, int cssWidth) private int
BlockBox.calcEffPageRelativeWidth
(LayoutContext c) private void
BlockBox.calcExtraPageClearance
(LayoutContext c) protected int
BlockBox.calcInitialBreakAtLine
(LayoutContext c) void
BlockBox.calcInitialFloatedCanvasLocation
(LayoutContext c) protected void
BlockBox.calcLayoutHeight
(LayoutContext c, BorderPropertySet border, RectPropertySet margin, RectPropertySet padding) Oh oh! Up to this method height is used to track content height.private void
InlineBox.calcMaxWidthFromLineLength
(LayoutContext c, int cbWidth, boolean trim) private void
BlockBox.calcMinMaxCSSMinMaxWidth
(LayoutContext c, RectPropertySet margin, BorderPropertySet border, RectPropertySet padding) void
BlockBox.calcMinMaxWidth
(LayoutContext c) void
InlineBox.calcMinMaxWidth
(LayoutContext c, int cbWidth, boolean trimLeadingSpace) private void
BlockBox.calcMinMaxWidthBlockChildren
(LayoutContext c) private void
BlockBox.calcMinMaxWidthInlineChildren
(LayoutContext c) private int
InlineBox.calcMinWidthFromWordLength
(LayoutContext c, int cbWidth, boolean trimLeadingSpace, boolean includeWS) private int
BlockBox.calcShrinkToFitWidth
(LayoutContext c) private void
BlockBox.calcShrinkToFitWidthIfNeeded
(LayoutContext c) void
InlineLayoutBox.calculateHeight
(LayoutContext c) void
InlineLayoutBox.calculateTextDecoration
(LayoutContext c) private void
LineBox.checkFootnoteReservedPage
(LayoutContext c, PageBox pageBoxAfter, boolean runHooks) Checks that the line box is not on a footnote reserved page and if so pushes it down to the first non-reserved page.boolean
BlockBox.checkPageContext
(LayoutContext c) void
LineBox.checkPagePosition
(LayoutContext c, boolean alwaysBreak) Checks if this line box crosses a page break and if so moves it to the next page.protected void
BlockBox.checkPopBfc
(LayoutContext c) Checks if this box established a block formatting context and if so removes the last bfc from the stack.protected void
BlockBox.checkPushBfc
(LayoutContext c) Checks if this box establishes a block formatting context and if so creates one and pushes it to the stack of bfcs.protected boolean
BlockBox.checkPushLayer
(LayoutContext c, CalculatedStyle style) private void
BlockBox.collapseBottomMargin
(LayoutContext c, boolean calculationRoot, BlockBox.MarginCollapseResult result) private void
BlockBox.collapseEmptySubtreeMargins
(LayoutContext c, BlockBox.MarginCollapseResult result) protected void
BlockBox.collapseMargins
(LayoutContext c) private void
BlockBox.collapseTopMargin
(LayoutContext c, boolean calculationRoot, BlockBox.MarginCollapseResult result) void
void
InlineLayoutBox.connectChildrenToCurrentLayer
(LayoutContext c) void
BlockBox.createMarkerData
(LayoutContext c) private void
BlockBox.createReplaced
(LayoutContext c) Creates the replaced element as required.boolean
Box.crossesPageBreak
(LayoutContext c) Whether this box would cross a page break.void
Box.detach
(LayoutContext c) BlockBox.dump
(LayoutContext c, String indent, int which) abstract String
Box.dump
(LayoutContext c, String indent, int which) InlineLayoutBox.dump
(LayoutContext c, String indent, int which) LineBox.dump
(LayoutContext c, String indent, int which) protected void
Box.dumpBoxes
(LayoutContext c, String indent, List<Box> boxes, int which, StringBuilder result) void
BlockBox.ensureChildren
(LayoutContext c) void
Box.forcePageBreakAfter
(LayoutContext c, IdentValue pageBreakValue) Forces a page break after this box.int
Box.forcePageBreakBefore
(LayoutContext c, IdentValue pageBreakValue, boolean pendingPageName) int
Box.forcePageBreakBefore
(LayoutContext c, IdentValue pageBreakValue, boolean pendingPageName, int absY) protected int
BlockBox.getAvailableWidth
(LayoutContext c) private int
InlineBox.getInlineMBP
(LayoutContext c, int cbWidth) private int
InlineBox.getMaxCharWidth
(LayoutContext c, String s) ContentLimitContainer.getPage
(LayoutContext c, int absY) int
InlineBox.getSpaceWidth
(LayoutContext c) private int
InlineBox.getTextWidth
(LayoutContext c, String s) int
InlineBox.getTrailingSpaceWidth
(LayoutContext c) void
Box.initContainingLayer
(LayoutContext c) void
BlockBox.initStaticPos
(LayoutContext c, BlockBox parent, int childOffset) boolean
BlockBox.isContainsInlineContent
(LayoutContext c) boolean
BlockBox.isCurrentBreakAtLineContext
(LayoutContext c) boolean
BlockBox.isNeedsKeepWithInline
(LayoutContext c) private boolean
BlockBox.isNoBottomPaddingOrBorder
(LayoutContext c) private boolean
BlockBox.isNoTopPaddingOrBorder
(LayoutContext c) boolean
BlockBox.isPageBreakNeededBecauseOfMinHeight
(LayoutContext context) Using the css: -fs-page-break-min-height: 5cm; on a block element you can force a pagebreak before this block, if not enough space (e.g.private boolean
BlockBox.isVerticalMarginsAdjoin
(LayoutContext c) private void
BlockBox.justifyText
(LayoutContext c) void
AnonymousBlockBox.layout
(LayoutContext c) void
BlockBox.layout
(LayoutContext c) void
BlockBox.layout
(LayoutContext c, int contentStart) void
FlowingColumnContainerBox.layout
(LayoutContext c, int contentStart) void
PageBox.layout
(LayoutContext c) protected void
BlockBox.layoutChildren
(LayoutContext c, int contentStart) protected void
BlockBox.layoutInlineChildren
(LayoutContext c, int contentStart, int breakAtLine, boolean tryAgain) private void
PageBox.layoutMarginAreas
(LayoutContext c) private MarkerData.ImageMarker
BlockBox.makeImageMarker
(LayoutContext c, StrutMetrics structMetrics, String image) private MarkerData.TextMarker
BlockBox.makeTextMarker
(LayoutContext c, IdentValue listStyle) void
BlockBox.positionAbsoluteOnPage
(LayoutContext c) protected void
BlockBox.propagateExtraSpace
(LayoutContext c, ContentLimitContainer parentContainer, ContentLimitContainer currentContainer, int extraTop, int extraBottom) void
InlineLayoutBox.prunePending
(LayoutContext c) void
LineBox.prunePendingInlineBoxes
(LayoutContext c) private void
BlockBox.recalcMargin
(LayoutContext c) void
BlockBox.reset
(LayoutContext c) void
Box.reset
(LayoutContext c) Responsible for resetting the state of the box before a repeat call toBlockBox.layout(LayoutContext)
or other layout methods.void
LineBox.reset
(LayoutContext c) protected void
Box.resetChildren
(LayoutContext c) void
Box.resetChildren
(LayoutContext c, int start, int end) protected void
InlineLayoutBox.resetChildren
(LayoutContext c) protected void
BlockBox.resolveAutoMargins
(LayoutContext c, int cssWidth, RectPropertySet padding, BorderPropertySet border) private void
PageBox.retrievePageMetadata
(LayoutContext c) private void
BlockBox.satisfyWidowsAndOrphans
(LayoutContext c, int contentStart, boolean tryAgain) TERMINOLOGY: Orphans refers to the number of lines of content in this box before the first page break.private void
BlockBox.setCollapsedBottomMargin
(LayoutContext c, RectPropertySet margin, BlockBox.MarginCollapseResult collapsedMargin) void
FlowingColumnContainerBox.setOnlyChild
(LayoutContext c, FlowingColumnBox child) private void
BlockBox.sizeReplacedElement
(LayoutContext c, ReplacedElement re) Size a replaced element taking into account size properties including min/max, border-box/content-box and the natural size/aspect ratio of the replaced object.void
AnonymousBlockBox.styleText
(LayoutContext c) void
BlockBox.styleText
(LayoutContext c) void
BlockBox.styleText
(LayoutContext c, CalculatedStyle style) void
InlineText.trimTrailingSpace
(LayoutContext c) void
LineBox.trimTrailingSpace
(LayoutContext c) void
InlineLayoutBox.unmarkPending
(LayoutContext c) void
ContentLimitContainer.updateBottom
(LayoutContext c, int absY) void
ContentLimitContainer.updateTop
(LayoutContext c, int absY) Constructors in com.openhtmltopdf.render with parameters of type LayoutContextModifierConstructorDescriptionContentLimitContainer
(LayoutContext c, int startAbsY) InlineLayoutBox
(LayoutContext c, Element elem, CalculatedStyle style, int cbWidth) -
Uses of LayoutContext in com.openhtmltopdf.simple.extend
Methods in com.openhtmltopdf.simple.extend with parameters of type LayoutContextModifier and TypeMethodDescriptionNoReplacedElementFactory.createReplacedElement
(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) -
Uses of LayoutContext in com.openhtmltopdf.swing
Methods in com.openhtmltopdf.swing with parameters of type LayoutContextModifier and TypeMethodDescriptionvoid
EmptyReplacedElement.detach
(LayoutContext c) void
ImageReplacedElement.detach
(LayoutContext c)