Uses of Class
com.openhtmltopdf.layout.LayoutContext
-
-
Uses of LayoutContext in com.openhtmltopdf.bidi
Methods in com.openhtmltopdf.bidi with parameters of type LayoutContext Modifier and Type Method Description voidParagraphSplitter. runBidiOnParagraphs(LayoutContext c)Run bidi splitting on the document's paragraphs.protected voidParagraphSplitter.FakeParagraph. runBidiSplitter(BidiSplitter splitter, LayoutContext c)protected voidParagraphSplitter.Paragraph. runBidiSplitter(BidiSplitter splitter, LayoutContext c)Here we call out to the actual BIDI algorithm.private voidParagraphSplitter. splitParagraphs(LayoutContext c, org.w3c.dom.Node parent, ParagraphSplitter.Paragraph nearestBlock)Here we recursively split everything into paragraphs.voidParagraphSplitter. splitRoot(LayoutContext c, org.w3c.dom.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 LayoutContext Modifier and Type Method Description java.lang.StringContentFunctionFactory.FsIfCutOffFunction. calculate(LayoutContext c, FSFunction function)java.lang.StringContentFunctionFactory.LeaderFunction. calculate(LayoutContext c, FSFunction function)java.lang.StringContentFunctionFactory.PageNumberFunction. calculate(LayoutContext c, FSFunction function)java.lang.StringContentFunctionFactory.TargetCounterFunction. calculate(LayoutContext c, FSFunction function)java.lang.StringContentFunctionFactory.TargetTextFunction. calculate(LayoutContext c, FSFunction function)booleanContentFunctionFactory.FsIfCutOffFunction. canHandle(LayoutContext c, FSFunction function)booleanContentFunctionFactory.LeaderFunction. canHandle(LayoutContext c, FSFunction function)booleanContentFunctionFactory.PageCounterFunction. canHandle(LayoutContext c, FSFunction function)booleanContentFunctionFactory.PagesCounterFunction. canHandle(LayoutContext c, FSFunction function)booleanContentFunctionFactory.TargetCounterFunction. canHandle(LayoutContext c, FSFunction function)booleanContentFunctionFactory.TargetTextFunction. canHandle(LayoutContext c, FSFunction function)ContentFunctionContentFunctionFactory. lookupFunction(LayoutContext c, FSFunction function) -
Uses of LayoutContext in com.openhtmltopdf.css.extend
Methods in com.openhtmltopdf.css.extend with parameters of type LayoutContext Modifier and Type Method Description java.lang.StringContentFunction. calculate(LayoutContext c, FSFunction function)booleanContentFunction. canHandle(LayoutContext c, FSFunction function) -
Uses of LayoutContext in com.openhtmltopdf.extend
Methods in com.openhtmltopdf.extend with parameters of type LayoutContext Modifier and Type Method Description ReplacedElementReplacedElementFactory. createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)NOTE: Only block equivalent elements can be replaced.voidReplacedElement. detach(LayoutContext c) -
Uses of LayoutContext in com.openhtmltopdf.java2d
Methods in com.openhtmltopdf.java2d that return LayoutContext Modifier and Type Method Description private LayoutContextJava2DRenderer. newLayoutContext()Methods in com.openhtmltopdf.java2d with parameters of type LayoutContext Modifier and Type Method Description ReplacedElementJava2DReplacedElementFactory. createReplacedElement(LayoutContext context, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)private java.awt.RectangleJava2DRenderer. getInitialExtents(LayoutContext c) -
Uses of LayoutContext in com.openhtmltopdf.layout
Methods in com.openhtmltopdf.layout that return LayoutContext Modifier and Type Method Description LayoutContextSharedContext. newLayoutContextInstance()Methods in com.openhtmltopdf.layout with parameters of type LayoutContext Modifier and Type Method Description private static voidInlineBoxing. addBoxId(LayoutContext c, InlineBoxing.StateVariables current)private static voidBoxBuilder. addColumnOrColumnGroup(LayoutContext c, TableBox table, org.w3c.dom.Element e, CalculatedStyle style)private static voidBoxBuilder. addColumns(LayoutContext c, TableBox table, TableColumn parent)private static InlineLayoutBoxInlineBoxing. addFirstLetterBox(LayoutContext c, LineBox current, InlineLayoutBox currentIB, LineBreakContext lbContext, int maxAvailableWidth, int remainingWidth, byte textDirection)voidFootnoteManager. addFootnoteBody(LayoutContext c, BlockBox footnoteBody, LineBox line)Adds a footnote body to the line box page, creating the footnote area as required.private static InlineLayoutBoxInlineBoxing. addOpenInlineBoxes(LayoutContext c, LineBox line, java.util.List<InlineBox> openParents, int cbWidth, java.util.Map<InlineBox,InlineLayoutBox> iBMap)We have to convert this HTML (angle brackets replaced with square brackets):private static voidInlineBoxing. alignInlineContent(LayoutContext c, Box box, float ascent, float descent, VerticalAlignContext vaContext)private static voidInlineBoxing. alignLine(LayoutContext c, LineBox current, int maxAvailableWidth)static voidBreaker. breakFirstLetter(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style)static Breaker.BreakTextResultBreaker. breakText(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style, boolean tryToBreakAnywhere, int lineWidth, boolean forceOutput)private PaintingInfoLayer. calcPaintingDimension(LayoutContext c)private static InlineBoxMeasurementsInlineBoxing. calculateInlineMeasurements(LayoutContext c, InlineLayoutBox iB, VerticalAlignContext vaContext)voidBlockFormattingContext. clear(LayoutContext c, Box current)private static voidBoxBuilder. createAnonymousTableContent(LayoutContext c, BlockBox source, IdentValue next, java.util.List<Styleable> childrenForAnonymous, java.util.List<Styleable> childrenWithAnonymous)private static StyleableBoxBuilder. createChildBlockBox(LayoutContext c, BoxBuilder.ChildBoxInfo info, org.w3c.dom.Element element, CalculatedStyle style)static voidBoxBuilder. createChildren(LayoutContext c, BlockBox parent)private static voidBoxBuilder. createChildren(LayoutContext c, BlockBox blockParent, org.w3c.dom.Element parent, java.util.List<Styleable> children, BoxBuilder.ChildBoxInfo info, boolean inline)private static voidBoxBuilder. createColumnContainer(LayoutContext c, Styleable child, org.w3c.dom.Element element, CalculatedStyle style)static StrutMetricsInlineBoxing. createDefaultStrutMetrics(LayoutContext c, Box container)private static voidBoxBuilder. createElementChild(LayoutContext c, org.w3c.dom.Element parent, BlockBox blockParent, org.w3c.dom.Node working, java.util.List<Styleable> children, BoxBuilder.ChildBoxInfo info, BoxBuilder.CreateChildrenContext context)private FootnoteManager.FootnoteAreaFootnoteManager. createFootnoteArea(LayoutContext c, PageBox page)private BlockBoxFootnoteManager. createFootnoteAreaBlock(LayoutContext c, PageBox footnoteCallPage)Sets up the footnote area.private static BlockBoxBoxBuilder. createFootnoteBody(LayoutContext c, org.w3c.dom.Element element, CalculatedStyle style)Creates the footnote body to put at the bottom of the page inside a page's footnote area.private static org.w3c.dom.ElementBoxBuilder. createFootnoteCallAnchor(LayoutContext c, org.w3c.dom.Element parent)Used to create the anchor element to link to the footnote body for the footnote-call pseudo element.private static org.w3c.dom.ElementBoxBuilder. createFootnoteTarget(LayoutContext c, org.w3c.dom.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.private static java.util.List<Styleable>BoxBuilder. createGeneratedContent(LayoutContext c, org.w3c.dom.Element element, java.lang.String peName, CalculatedStyle style, PropertyValue property, BoxBuilder.ChildBoxInfo info)Creates generated content boxes for pseudo elements such as::before.private static java.util.List<Styleable>BoxBuilder. createGeneratedContentList(LayoutContext c, org.w3c.dom.Element element, java.util.List<PropertyValue> values, java.lang.String peName, CalculatedStyle style, int mode, BoxBuilder.ChildBoxInfo info, java.util.List<Styleable> result)private static java.util.List<Styleable>BoxBuilder. createGeneratedMarginBoxContent(LayoutContext c, org.w3c.dom.Element element, PropertyValue property, CalculatedStyle style, BoxBuilder.ChildBoxInfo info)private static voidBoxBuilder. createInlineChildren(LayoutContext c, org.w3c.dom.Element parent, java.util.List<Styleable> children, BoxBuilder.ChildBoxInfo info, BoxBuilder.CreateChildrenContext context, org.w3c.dom.Element element)private static TableCellBoxBoxBuilder. createMarginBox(LayoutContext c, CascadedStyle cascadedStyle, boolean alwaysCreate)static TableBoxBoxBuilder. createMarginTable(LayoutContext c, PageInfo pageInfo, MarginBoxName[] names, int height, int direction)static BlockBoxBoxBuilder. createRootBox(LayoutContext c, org.w3c.dom.Document document)booleanLayer. 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 InlineBoxBoxBuilder. doBidi(LayoutContext c, org.w3c.dom.Text textNode, org.w3c.dom.Element parent, CalculatedStyle parentStyle, InlineBox previousIB, java.util.List<Styleable> children)Attempts to divide a Text node further into directional text runs, either LTR or RTL.private static LineBreakContext.LineBreakResultBreaker. doBreakText(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style, boolean tryToBreakAnywhere)static LineBreakContext.LineBreakResultBreaker. doBreakText(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style, Breaker.TextBreakerSupplier lineBreaker)private static InlineBoxBoxBuilder. doFakeBidi(LayoutContext c, org.w3c.dom.Text textNode, org.w3c.dom.Element parent, CalculatedStyle parentStyle, InlineBox previousIB, java.util.List<Styleable> children)private static voidInlineBoxing. endInlineBox(LayoutContext c, InlineBoxing.SpaceVariables space, InlineBoxing.StateVariables current, InlineBoxing.StateVariables previous, java.util.List<InlineBox> openInlineBoxes, java.util.List<Layer> pendingInlineLayers, InlineBox inlineBox, CalculatedStyle style)voidLayer. finish(LayoutContext c)private static voidInlineBoxing. finishPendingInlineLayers(LayoutContext c, java.util.List<Layer> layers)voidBlockFormattingContext. floatBox(LayoutContext c, BlockBox floated)voidFloatManager. floatBox(LayoutContext c, Layer layer, BlockFormattingContext bfc, BlockBox box)private static InlineBoxMeasurementsInlineBoxing. getInitialMeasurements(LayoutContext c, Box container, FSFontMetrics strutM)java.awt.DimensionLayer. getPaintingDimension(LayoutContext c)static BlockBoxBoxBuilder. getRunningBlock(LayoutContext c, PropertyValue value)private static voidBoxBuilder. insertGeneratedContent(LayoutContext c, org.w3c.dom.Element element, CalculatedStyle parentStyle, java.lang.String peName, java.util.List<Styleable> children, BoxBuilder.ChildBoxInfo info)private static booleanInlineBoxing. isAlwaysBreak(LayoutContext c, BlockBox parent, int breakAtLine, int lineOffset)private static booleanBlockBoxing. isPageBreakBetweenChildBoxes(BlockBoxing.AbstractRelayoutDataList relayoutDataList, int runStart, int runEnd, LayoutContext c, BlockBox block)private static booleanBoxBuilder. isValidFootnote(LayoutContext c, org.w3c.dom.Element element, CalculatedStyle style)static voidLayoutUtil. layoutAbsolute(LayoutContext c, LineBox currentLine, BlockBox box)private voidLayer. layoutAbsoluteChild(LayoutContext c, Layer child)private voidLayer. layoutAbsoluteChildren(LayoutContext c)private static voidBlockBoxing. layoutBlockChild(LayoutContext c, BlockBox parent, BlockBox child, boolean needPageClear, int childOffset, int trimmedPageCount, LayoutState layoutState)private static voidBlockBoxing. layoutBlockChild0(LayoutContext c, BlockBox parent, BlockBox child, boolean needPageClear, int childOffset, int trimmedPageCount)static voidBlockBoxing. layoutContent(LayoutContext c, BlockBox block, int contentStart)static voidInlineBoxing. layoutContent(LayoutContext c, BlockBox box, int initialY, int breakAtLine)static FloatLayoutResultLayoutUtil. layoutFloated(LayoutContext c, LineBox currentLine, BlockBox block, int avail, java.util.List<FloatLayoutResult> pendingFloats)private static voidInlineBoxing. layoutInlineBlockContent(LayoutContext c, BlockBox containingBlock, BlockBox inlineBlock, int initialY)voidLayer. layoutPages(LayoutContext c)private static InlineTextInlineBoxing. layoutText(LayoutContext c, CalculatedStyle style, int remainingWidth, LineBreakContext lbContext, boolean needFirstLetter, byte textDirection, boolean tryToBreakAnywhere, int lineWidth, boolean forceOutput)private static voidBoxBuilder. logInvalidFootnoteStyle(LayoutContext c, org.w3c.dom.Element element, CalculatedStyle style)private static CounterFunctionBoxBuilder. makeCounterFunction(FSFunction function, LayoutContext c, CalculatedStyle style)private static LineBoxInlineBoxing. newLine(LayoutContext c, int y, Box box)private static LineBoxInlineBoxing. newLine(LayoutContext c, LineBox previousLine, Box box)private voidLayer. position(LayoutContext c)voidLayer. positionChildren(LayoutContext c)private static voidLayoutUtil. positionFloatOnPage(LayoutContext c, LineBox currentLine, BlockBox block, boolean movedVertically)private voidFootnoteManager. positionFootnoteArea(LayoutContext c, FootnoteManager.FootnoteArea area, PageBox firstPage, int lineHeight, boolean allowRepeat)private static voidInlineBoxing. positionInlineBlockVertically(LayoutContext c, VerticalAlignContext vaContext, BlockBox inlineBlock)private static voidInlineBoxing. positionInlineChildrenVertically(LayoutContext c, InlineLayoutBox current, VerticalAlignContext vaContext)private static voidInlineBoxing. positionInlineContentVertically(LayoutContext c, VerticalAlignContext vaContext, Box child)private static voidInlineBoxing. positionInlineVertically(LayoutContext c, VerticalAlignContext vaContext, InlineLayoutBox iB)private static voidInlineBoxing. positionVertically(LayoutContext c, Box container, LineBox current, MarkerData markerData)private static intInlineBoxing. processOutOfFlowContent(LayoutContext c, LineBox current, BlockBox block, int available, java.util.List<FloatLayoutResult> pendingFloats)private static java.lang.IntegerBlockBoxing. processPageBreakAvoidRun(LayoutContext c, BlockBox block, java.util.List<Box> localChildren, int offset, BlockBoxing.AbstractRelayoutDataList relayoutDataList, BlockBox childBox)private static intBlockBoxing. relayoutRun(LayoutContext c, java.util.List<Box> localChildren, BlockBox block, BlockBoxing.AbstractRelayoutDataList relayoutDataList, int start, int end, boolean onNewPage)voidFootnoteManager. removeFootnoteBodies(LayoutContext c, java.util.List<BlockBox> footnoteBodies, LineBox line)Removes footnotes.private static BlockBoxBoxBuilder. reorderTableContent(LayoutContext c, TableBox table)Reorganizes a table so that the header is the first row group and the footer the last.private static voidBlockBoxing. repositionBox(LayoutContext c, BlockBox child, int trimmedPageCount)private voidFootnoteManager. reserveSubsequentPagesForFootnoteArea(LayoutContext c, FootnoteManager.FootnoteArea area, int desiredHeight, int footnoteTop, int startAt)private static voidLayoutUtil. resetAndFloatBlock(LayoutContext c, LineBox currentLine, BlockBox block)private static voidBoxBuilder. resolveChildren(LayoutContext c, BlockBox owner, java.util.List<Styleable> children, BoxBuilder.ChildBoxInfo info)private static voidBoxBuilder. resolveChildTableContent(LayoutContext c, BlockBox parent, java.util.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 voidBoxBuilder. resolveElementCounters(LayoutContext c, org.w3c.dom.Node working, org.w3c.dom.Element element, CalculatedStyle style)private static voidBoxBuilder. resolveTableContent(LayoutContext c, BlockBox parent, java.util.List<Styleable> children, BoxBuilder.ChildBoxInfo info)Handles the situation when our current parent is table related.private static voidInlineBoxing. saveLine(LineBox current, LayoutContext c, BlockBox block, int minHeight, int maxAvailableWidth, java.util.List<FloatLayoutResult> pendingFloats, boolean hasFirstLinePCs, java.util.List<Layer> pendingInlineLayers, MarkerData markerData, int contentStart, boolean alwaysBreak)private static voidBoxBuilder. splitParagraphs(LayoutContext c, org.w3c.dom.Document document)Split the document into paragraphs for use in analyzing bi-directional text runs.private static voidInlineBoxing. startFirstLetterInlineLayoutBox(LayoutContext c, InlineBoxing.SpaceVariables space, InlineBoxing.StateVariables current, InlineBox inlineBox, LineBreakContext lbContext)private static voidInlineBoxing. startInlineBlock(LayoutContext c, BlockBox box, int initialY, int breakAtLine, byte blockLayoutDirection, InlineBoxing.SpaceVariables space, InlineBoxing.StateVariables current, InlineBoxing.StateVariables previous, int contentStart, java.util.List<InlineBox> openInlineBoxes, java.util.Map<InlineBox,InlineLayoutBox> iBMap, int minimumLineHeight, MarkerData markerData, java.util.List<FloatLayoutResult> pendingFloats, boolean hasFirstLinePEs, java.util.List<Layer> pendingInlineLayers, int lineOffset, BlockBox child)private static voidInlineBoxing. startInlineBox(LayoutContext c, InlineBoxing.SpaceVariables space, InlineBoxing.StateVariables current, InlineBoxing.StateVariables previous, java.util.List<InlineBox> openInlineBoxes, java.util.Map<InlineBox,InlineLayoutBox> iBMap, InlineBox inlineBox, CalculatedStyle style)private static InlineBoxing.StartInlineTextResultInlineBoxing. 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 voidInlineBoxing. startNewInlineLine(LayoutContext c, BlockBox box, int breakAtLine, byte blockLayoutDirection, InlineBoxing.SpaceVariables space, InlineBoxing.StateVariables current, InlineBoxing.StateVariables previous, int contentStart, java.util.List<InlineBox> openInlineBoxes, java.util.Map<InlineBox,InlineLayoutBox> iBMap, int minimumLineHeight, MarkerData markerData, java.util.List<FloatLayoutResult> pendingFloats, boolean hasFirstLinePEs, java.util.List<Layer> pendingInlineLayers, int lineOffset, InlineBox inlineBox, LineBreakContext lbContext)private static java.util.List<Styleable>BoxBuilder. wrapGeneratedContent(LayoutContext c, org.w3c.dom.Element element, java.lang.String peName, CalculatedStyle style, BoxBuilder.ChildBoxInfo info, BoxBuilder.ChildBoxInfo childInfo, java.util.List<Styleable> inlineBoxes)Constructors in com.openhtmltopdf.layout with parameters of type LayoutContext Constructor Description BlockFormattingContext(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 LayoutContext Constructor Description CounterContext(LayoutContext ctx, CalculatedStyle style, java.lang.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 LayoutContext Modifier and Type Method Description private voidTableRowBox. alignBaselineAlignedCells(LayoutContext c)private booleanTableRowBox. alignMiddleAndBottomAlignedCells(LayoutContext c)private voidTableBox. analyzePageBreaks(LayoutContext c)voidTableBox. analyzePageBreaks(LayoutContext c, ContentLimitContainer container)voidTableRowBox. analyzePageBreaks(LayoutContext c, ContentLimitContainer container)intTableCellBox. calcBaseline(LayoutContext c)intTableCellBox. calcBlockBaseline(LayoutContext c)private voidTableBox. calcBorders(LayoutContext c)voidTableSectionBox. calcBorders(LayoutContext c)private voidTableRowBox. calcDefaultBaseline(LayoutContext c)private longTableBox.AutoTableLayout. calcEffectiveWidth(LayoutContext c)private voidTableRowBox. calcExtraSpaceBottom(LayoutContext c)private voidTableRowBox. calcExtraSpaceTop(LayoutContext c)protected voidTableBox. calcLayoutHeight(LayoutContext c, BorderPropertySet border, RectPropertySet margin, RectPropertySet padding)protected voidTableRowBox. calcLayoutHeight(LayoutContext c, BorderPropertySet border, RectPropertySet margin, RectPropertySet padding)voidTableBox.AutoTableLayout. calcMinMaxWidth(LayoutContext c)voidTableBox. calcMinMaxWidth(LayoutContext c)voidTableBox.FixedTableLayout. calcMinMaxWidth(LayoutContext c)voidTableBox.MarginTableLayout. calcMinMaxWidth(LayoutContext c)voidTableBox.TableLayout. calcMinMaxWidth(LayoutContext c)private voidTableBox. calcPageClearance(LayoutContext c)private intTableBox.FixedTableLayout. calcWidthArray(LayoutContext c)intTableRowBox. forcePageBreakBefore(LayoutContext c, IdentValue pageBreakValue, boolean pendingPageName)private voidTableBox.AutoTableLayout. fullRecalc(LayoutContext c)voidTableRowBox. initStaticPos(LayoutContext c, BlockBox parent, int childOffset)booleanTableCellBox. isPageBreaksChange(LayoutContext c, int posDeltaY)private booleanTableRowBox. isShouldMoveToNextPage(LayoutContext c)voidTableBox.AutoTableLayout. layout(LayoutContext c)voidTableBox.FixedTableLayout. layout(LayoutContext c)voidTableBox. layout(LayoutContext c)voidTableBox.TableLayout. layout(LayoutContext c)voidTableCellBox. layout(LayoutContext c)voidTableRowBox. layout(LayoutContext c, int contentStart)voidTableSectionBox. layout(LayoutContext c, int contentStart)private voidTableRowBox. layoutCell(LayoutContext c, TableCellBox cell, int contentStart)protected voidTableBox. layoutChildren(LayoutContext c, int contentStart)protected voidTableRowBox. layoutChildren(LayoutContext c, int contentStart)protected voidTableSectionBox. layoutChildren(LayoutContext c, int contentStart)private intTableBox. layoutRunningFooter(LayoutContext c)private intTableBox. layoutRunningHeader(LayoutContext c)private voidTableBox. layoutTable(LayoutContext c)voidTableCellBox. moveContent(LayoutContext c, int deltaY)voidTableSectionBox. recalcCells(LayoutContext c)private voidTableBox.AutoTableLayout. recalcColumn(LayoutContext c, int effCol)private voidTableBox. recalcSections(LayoutContext c)private voidTableRowBox. relayoutCell(LayoutContext c, TableCellBox cell, int contentStart)voidTableBox. reset(LayoutContext c)voidTableRowBox. reset(LayoutContext c)voidTableSectionBox. reset(LayoutContext c)protected voidTableBox. resolveAutoMargins(LayoutContext c, int cssWidth, RectPropertySet padding, BorderPropertySet border)private voidTableRowBox. setCellHeights(LayoutContext c)private voidTableBox. setCellWidths(LayoutContext c)(package private) voidTableSectionBox. setCellWidths(LayoutContext c)voidTableCellBox. setLayoutWidth(LayoutContext c, int width) -
Uses of LayoutContext in com.openhtmltopdf.pdfboxout
Methods in com.openhtmltopdf.pdfboxout that return LayoutContext Modifier and Type Method Description private LayoutContextPdfBoxRenderer. newLayoutContext()Methods in com.openhtmltopdf.pdfboxout with parameters of type LayoutContext Modifier and Type Method Description ReplacedElementPdfBoxReplacedElementFactory. createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)voidBookmarkElement. detach(LayoutContext c)voidPdfBoxImageElement. detach(LayoutContext c)voidPdfBoxObjectDrawerReplacedElement. detach(LayoutContext c)voidPdfBoxPDFReplacedElement. detach(LayoutContext c)voidPdfBoxSVGReplacedElement. detach(LayoutContext c)private java.awt.RectanglePdfBoxRenderer. getInitialExtents(LayoutContext c) -
Uses of LayoutContext in com.openhtmltopdf.render
Methods in com.openhtmltopdf.render with parameters of type LayoutContext Modifier and Type Method Description protected voidBlockBox. addBoxID(LayoutContext c)voidBox. addChildForLayout(LayoutContext c, Box child)voidInlineLayoutBox. addInlineChild(LayoutContext c, java.lang.Object child)voidInlineLayoutBox. addInlineChild(LayoutContext c, java.lang.Object child, boolean callUnmarkPending)private intFlowingColumnContainerBox. adjustUnbalanced(LayoutContext c, Box child, int colGap, int colWidth, int columnCount, int xStart)private voidLineBox. afterChangePage(LayoutContext c)voidBox. analyzePageBreaks(LayoutContext c, ContentLimitContainer container)voidLineBox. analyzePageBreaks(LayoutContext c, ContentLimitContainer container)private voidLineBox. beforeChangePage(LayoutContext c)intBlockBox. calcBaseline(LayoutContext c)BreakAtLineContextBlockBox. calcBreakAtLineContext(LayoutContext c)private voidBlockBox. calcClearance(LayoutContext c)voidBlockBox. calcDimensions(LayoutContext c)protected voidBlockBox. calcDimensions(LayoutContext c, int cssWidth)private intBlockBox. calcEffPageRelativeWidth(LayoutContext c)private voidBlockBox. calcExtraPageClearance(LayoutContext c)protected intBlockBox. calcInitialBreakAtLine(LayoutContext c)voidBlockBox. calcInitialFloatedCanvasLocation(LayoutContext c)protected voidBlockBox. calcLayoutHeight(LayoutContext c, BorderPropertySet border, RectPropertySet margin, RectPropertySet padding)Oh oh! Up to this method height is used to track content height.private voidInlineBox. calcMaxWidthFromLineLength(LayoutContext c, int cbWidth, boolean trim)private voidBlockBox. calcMinMaxCSSMinMaxWidth(LayoutContext c, RectPropertySet margin, BorderPropertySet border, RectPropertySet padding)voidBlockBox. calcMinMaxWidth(LayoutContext c)voidInlineBox. calcMinMaxWidth(LayoutContext c, int cbWidth, boolean trimLeadingSpace)private voidBlockBox. calcMinMaxWidthBlockChildren(LayoutContext c)private voidBlockBox. calcMinMaxWidthInlineChildren(LayoutContext c)private intInlineBox. calcMinWidthFromWordLength(LayoutContext c, int cbWidth, boolean trimLeadingSpace, boolean includeWS)private intBlockBox. calcShrinkToFitWidth(LayoutContext c)private voidBlockBox. calcShrinkToFitWidthIfNeeded(LayoutContext c)voidInlineLayoutBox. calculateHeight(LayoutContext c)voidInlineLayoutBox. calculateTextDecoration(LayoutContext c)private voidLineBox. 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.booleanBlockBox. checkPageContext(LayoutContext c)voidLineBox. checkPagePosition(LayoutContext c, boolean alwaysBreak)Checks if this line box crosses a page break and if so moves it to the next page.protected voidBlockBox. checkPopBfc(LayoutContext c)Checks if this box established a block formatting context and if so removes the last bfc from the stack.protected voidBlockBox. 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 booleanBlockBox. checkPushLayer(LayoutContext c, CalculatedStyle style)private voidBlockBox. collapseBottomMargin(LayoutContext c, boolean calculationRoot, BlockBox.MarginCollapseResult result)private voidBlockBox. collapseEmptySubtreeMargins(LayoutContext c, BlockBox.MarginCollapseResult result)protected voidBlockBox. collapseMargins(LayoutContext c)private voidBlockBox. collapseTopMargin(LayoutContext c, boolean calculationRoot, BlockBox.MarginCollapseResult result)voidBox. connectChildrenToCurrentLayer(LayoutContext c)voidInlineLayoutBox. connectChildrenToCurrentLayer(LayoutContext c)voidBlockBox. createMarkerData(LayoutContext c)private voidBlockBox. createReplaced(LayoutContext c)Creates the replaced element as required.booleanBox. crossesPageBreak(LayoutContext c)Whether this box would cross a page break.voidBox. detach(LayoutContext c)java.lang.StringBlockBox. dump(LayoutContext c, java.lang.String indent, int which)abstract java.lang.StringBox. dump(LayoutContext c, java.lang.String indent, int which)java.lang.StringInlineLayoutBox. dump(LayoutContext c, java.lang.String indent, int which)java.lang.StringLineBox. dump(LayoutContext c, java.lang.String indent, int which)protected voidBox. dumpBoxes(LayoutContext c, java.lang.String indent, java.util.List<Box> boxes, int which, java.lang.StringBuilder result)voidBlockBox. ensureChildren(LayoutContext c)voidBox. forcePageBreakAfter(LayoutContext c, IdentValue pageBreakValue)Forces a page break after this box.intBox. forcePageBreakBefore(LayoutContext c, IdentValue pageBreakValue, boolean pendingPageName)intBox. forcePageBreakBefore(LayoutContext c, IdentValue pageBreakValue, boolean pendingPageName, int absY)protected intBlockBox. getAvailableWidth(LayoutContext c)private intInlineBox. getInlineMBP(LayoutContext c, int cbWidth)private intInlineBox. getMaxCharWidth(LayoutContext c, java.lang.String s)PageBoxContentLimitContainer. getPage(LayoutContext c, int absY)intInlineBox. getSpaceWidth(LayoutContext c)private intInlineBox. getTextWidth(LayoutContext c, java.lang.String s)intInlineBox. getTrailingSpaceWidth(LayoutContext c)voidBox. initContainingLayer(LayoutContext c)voidBlockBox. initStaticPos(LayoutContext c, BlockBox parent, int childOffset)booleanBlockBox. isContainsInlineContent(LayoutContext c)booleanBlockBox. isCurrentBreakAtLineContext(LayoutContext c)booleanBlockBox. isNeedsKeepWithInline(LayoutContext c)private booleanBlockBox. isNoBottomPaddingOrBorder(LayoutContext c)private booleanBlockBox. isNoTopPaddingOrBorder(LayoutContext c)booleanBlockBox. 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 booleanBlockBox. isVerticalMarginsAdjoin(LayoutContext c)private voidBlockBox. justifyText(LayoutContext c)voidAnonymousBlockBox. layout(LayoutContext c)voidBlockBox. layout(LayoutContext c)voidBlockBox. layout(LayoutContext c, int contentStart)voidFlowingColumnContainerBox. layout(LayoutContext c, int contentStart)voidPageBox. layout(LayoutContext c)protected voidBlockBox. layoutChildren(LayoutContext c, int contentStart)protected voidBlockBox. layoutInlineChildren(LayoutContext c, int contentStart, int breakAtLine, boolean tryAgain)private voidPageBox. layoutMarginAreas(LayoutContext c)private MarkerData.ImageMarkerBlockBox. makeImageMarker(LayoutContext c, StrutMetrics structMetrics, java.lang.String image)private MarkerData.TextMarkerBlockBox. makeTextMarker(LayoutContext c, IdentValue listStyle)voidBlockBox. positionAbsoluteOnPage(LayoutContext c)protected voidBlockBox. propagateExtraSpace(LayoutContext c, ContentLimitContainer parentContainer, ContentLimitContainer currentContainer, int extraTop, int extraBottom)voidInlineLayoutBox. prunePending(LayoutContext c)voidLineBox. prunePendingInlineBoxes(LayoutContext c)private voidBlockBox. recalcMargin(LayoutContext c)voidBlockBox. reset(LayoutContext c)voidBox. reset(LayoutContext c)Responsible for resetting the state of the box before a repeat call toBlockBox.layout(LayoutContext)or other layout methods.voidLineBox. reset(LayoutContext c)protected voidBox. resetChildren(LayoutContext c)voidBox. resetChildren(LayoutContext c, int start, int end)protected voidInlineLayoutBox. resetChildren(LayoutContext c)protected voidBlockBox. resolveAutoMargins(LayoutContext c, int cssWidth, RectPropertySet padding, BorderPropertySet border)private voidPageBox. retrievePageMetadata(LayoutContext c)private voidBlockBox. 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 voidBlockBox. setCollapsedBottomMargin(LayoutContext c, RectPropertySet margin, BlockBox.MarginCollapseResult collapsedMargin)voidFlowingColumnContainerBox. setOnlyChild(LayoutContext c, FlowingColumnBox child)private voidBlockBox. 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.voidAnonymousBlockBox. styleText(LayoutContext c)voidBlockBox. styleText(LayoutContext c)voidBlockBox. styleText(LayoutContext c, CalculatedStyle style)voidInlineText. trimTrailingSpace(LayoutContext c)voidLineBox. trimTrailingSpace(LayoutContext c)voidInlineLayoutBox. unmarkPending(LayoutContext c)voidContentLimitContainer. updateBottom(LayoutContext c, int absY)voidContentLimitContainer. updateTop(LayoutContext c, int absY)Constructors in com.openhtmltopdf.render with parameters of type LayoutContext Constructor Description ContentLimitContainer(LayoutContext c, int startAbsY)InlineLayoutBox(LayoutContext c, org.w3c.dom.Element elem, CalculatedStyle style, int cbWidth) -
Uses of LayoutContext in com.openhtmltopdf.simple.extend
Methods in com.openhtmltopdf.simple.extend with parameters of type LayoutContext Modifier and Type Method Description ReplacedElementNoReplacedElementFactory. 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 LayoutContext Modifier and Type Method Description voidEmptyReplacedElement. detach(LayoutContext c)voidImageReplacedElement. detach(LayoutContext c)
-