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.voidParagraphSplitter. 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 LayoutContext Modifier and Type Method Description 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 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.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 static voidBreaker. breakFirstLetter(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style)static voidBreaker. breakText(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style)voidBlockFormattingContext. clear(LayoutContext c, Box current)static voidBoxBuilder. createChildren(LayoutContext c, BlockBox parent)static StrutMetricsInlineBoxing. createDefaultStrutMetrics(LayoutContext c, Box container)static TableBoxBoxBuilder. createMarginTable(LayoutContext c, PageInfo pageInfo, MarginBoxName[] names, int height, int direction)static BlockBoxBoxBuilder. createRootBox(LayoutContext c, Document document)booleanLayer. crossesPageBreak(LayoutContext c, int top, int bottom)static voidBreaker. doBreakText(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style, Breaker.TextBreakerSupplier characterBreaker, Breaker.TextBreakerSupplier lineBreaker, boolean tryToBreakAnywhere)voidLayer. finish(LayoutContext c)voidBlockFormattingContext. floatBox(LayoutContext c, BlockBox floated)voidFloatManager. floatBox(LayoutContext c, Layer layer, BlockFormattingContext bfc, BlockBox box)DimensionLayer. getPaintingDimension(LayoutContext c)static BlockBoxBoxBuilder. getRunningBlock(LayoutContext c, PropertyValue value)static voidLayoutUtil. layoutAbsolute(LayoutContext c, LineBox currentLine, BlockBox box)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, List pendingFloats)voidLayer. layoutPages(LayoutContext c)voidLayer. positionChildren(LayoutContext c)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.newtable
Methods in com.openhtmltopdf.newtable with parameters of type LayoutContext Modifier and Type Method Description voidTableBox. analyzePageBreaks(LayoutContext c, ContentLimitContainer container)voidTableRowBox. analyzePageBreaks(LayoutContext c, ContentLimitContainer container)intTableCellBox. calcBaseline(LayoutContext c)intTableCellBox. calcBlockBaseline(LayoutContext c)voidTableSectionBox. calcBorders(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. calcMinMaxWidth(LayoutContext c)intTableRowBox. forcePageBreakBefore(LayoutContext c, IdentValue pageBreakValue, boolean pendingPageName)voidTableRowBox. initStaticPos(LayoutContext c, BlockBox parent, int childOffset)booleanTableCellBox. isPageBreaksChange(LayoutContext c, int posDeltaY)voidTableBox. layout(LayoutContext c)voidTableCellBox. layout(LayoutContext c)voidTableRowBox. layout(LayoutContext c, int contentStart)voidTableSectionBox. layout(LayoutContext c, int contentStart)protected voidTableBox. layoutChildren(LayoutContext c, int contentStart)protected voidTableRowBox. layoutChildren(LayoutContext c, int contentStart)protected voidTableSectionBox. layoutChildren(LayoutContext c, int contentStart)voidTableCellBox. moveContent(LayoutContext c, int deltaY)voidTableSectionBox. recalcCells(LayoutContext c)voidTableBox. reset(LayoutContext c)voidTableRowBox. reset(LayoutContext c)voidTableSectionBox. reset(LayoutContext c)protected voidTableBox. resolveAutoMargins(LayoutContext c, int cssWidth, RectPropertySet padding, BorderPropertySet border)voidTableCellBox. setLayoutWidth(LayoutContext c, int width) -
Uses of LayoutContext in com.openhtmltopdf.render
Methods in com.openhtmltopdf.render with parameters of type LayoutContext Modifier and Type Method Description voidBox. addChildForLayout(LayoutContext c, Box child)voidInlineLayoutBox. addInlineChild(LayoutContext c, Object child)voidInlineLayoutBox. addInlineChild(LayoutContext c, Object child, boolean callUnmarkPending)voidBox. analyzePageBreaks(LayoutContext c, ContentLimitContainer container)voidLineBox. analyzePageBreaks(LayoutContext c, ContentLimitContainer container)intBlockBox. calcBaseline(LayoutContext c)BreakAtLineContextBlockBox. calcBreakAtLineContext(LayoutContext c)voidBlockBox. calcDimensions(LayoutContext c)protected voidBlockBox. calcDimensions(LayoutContext c, int cssWidth)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.voidBlockBox. calcMinMaxWidth(LayoutContext c)voidInlineBox. calcMinMaxWidth(LayoutContext c, int cbWidth, boolean trimLeadingSpace)voidInlineLayoutBox. calculateHeight(LayoutContext c)voidInlineLayoutBox. calculateTextDecoration(LayoutContext c)booleanBlockBox. checkPageContext(LayoutContext c)voidLineBox. checkPagePosition(LayoutContext c, boolean alwaysBreak)voidBox. connectChildrenToCurrentLayer(LayoutContext c)voidInlineLayoutBox. connectChildrenToCurrentLayer(LayoutContext c)voidBlockBox. createMarkerData(LayoutContext c)booleanBox. crossesPageBreak(LayoutContext c)voidBox. detach(LayoutContext c)StringBlockBox. dump(LayoutContext c, String indent, int which)abstract StringBox. dump(LayoutContext c, String indent, int which)StringInlineLayoutBox. dump(LayoutContext c, String indent, int which)StringLineBox. dump(LayoutContext c, String indent, int which)protected voidBox. dumpBoxes(LayoutContext c, String indent, List<Box> boxes, int which, StringBuilder result)voidBlockBox. ensureChildren(LayoutContext c)voidBox. forcePageBreakAfter(LayoutContext c, IdentValue pageBreakValue)intBox. forcePageBreakBefore(LayoutContext c, IdentValue pageBreakValue, boolean pendingPageName)protected intBlockBox. getAvailableWidth(LayoutContext c)PageBoxContentLimitContainer. getPage(LayoutContext c, int absY)intInlineBox. getSpaceWidth(LayoutContext c)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)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.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)voidBlockBox. positionAbsoluteOnPage(LayoutContext c)protected voidBlockBox. propagateExtraSpace(LayoutContext c, ContentLimitContainer parentContainer, ContentLimitContainer currentContainer, int extraTop, int extraBottom)voidBlockBox. reset(LayoutContext c)voidBox. reset(LayoutContext c)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)voidBox. restyle(LayoutContext c)voidInlineLayoutBox. restyle(LayoutContext c)voidLineBox. restyle(LayoutContext c)protected voidBox. restyleChildren(LayoutContext c)protected voidInlineLayoutBox. restyleChildren(LayoutContext c)voidFlowingColumnContainerBox. setOnlyChild(LayoutContext c, FlowingColumnBox child)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, 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 FormFieldXhtmlForm. addComponent(Element e, LayoutContext context, BlockBox box)ReplacedElementNoReplacedElementFactory. createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) -
Uses of LayoutContext in com.openhtmltopdf.simple.extend.form
Methods in com.openhtmltopdf.simple.extend.form that return LayoutContext Modifier and Type Method Description LayoutContextFormField. getContext()Methods in com.openhtmltopdf.simple.extend.form with parameters of type LayoutContext Modifier and Type Method Description static FormFieldFormFieldFactory. create(XhtmlForm form, LayoutContext context, BlockBox box)Constructors in com.openhtmltopdf.simple.extend.form with parameters of type LayoutContext Constructor Description AbstractButtonField(Element e, XhtmlForm form, LayoutContext context, BlockBox box)FormField(Element e, XhtmlForm form, LayoutContext context, BlockBox box)InputField(Element e, XhtmlForm form, LayoutContext context, BlockBox box) -
Uses of LayoutContext in com.openhtmltopdf.swing
Methods in com.openhtmltopdf.swing with parameters of type LayoutContext Modifier and Type Method Description ReplacedElementSwingReplacedElementFactory. createReplacedElement(LayoutContext context, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)Deprecated.NOTE: Only block equivalent elements can be replaced.voidDeferredImageReplacedElement. detach(LayoutContext c)voidEmptyReplacedElement. detach(LayoutContext c)voidImageReplacedElement. detach(LayoutContext c)voidSwingReplacedElement. detach(LayoutContext c)protected ElementSwingReplacedElementFactory. getParentForm(Element e, LayoutContext context)Deprecated.protected ReplacedElementSwingReplacedElementFactory. replaceImage(UserAgentCallback uac, LayoutContext context, Element elem, int cssWidth, int cssHeight)Deprecated.Handles replacement of image elements in the document. -
Uses of LayoutContext in com.openhtmltopdf.test
Methods in com.openhtmltopdf.test with parameters of type LayoutContext Modifier and Type Method Description abstract booleanElementReplacer. accept(LayoutContext context, Element element)booleanSwingImageReplacer. accept(LayoutContext context, Element element)DimensionXLayout. getIntrinsicDimensions(LayoutContext c, Element elem)Gets the intrinsicDimensions attribute of the XLayout objectabstract ReplacedElementElementReplacer. replace(LayoutContext context, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)ReplacedElementSwingImageReplacer. replace(LayoutContext context, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)protected ReplacedElementSwingImageReplacer. replaceImage(UserAgentCallback uac, LayoutContext context, Element elem, int cssWidth, int cssHeight)Handles replacement of image elements in the document.
-