Uses of Class
com.openhtmltopdf.render.Box
Packages that use Box
Package
Description
-
Uses of Box in com.openhtmltopdf.css.style
Methods in com.openhtmltopdf.css.style with parameters of type BoxModifier and TypeMethodDescriptionstatic intCalculatedStyle.getCSSMaxHeight(CssContext c, Box box) Aims to get the correct resolved max-height for a box in dots unit.static intCalculatedStyle.getCSSMaxWidth(CssContext c, Box box) Aims to get the correct resolved max-width for a box in dots unit.booleanCalculatedStyle.isVisible(RenderingContext renderingContext, Box thisElement) Determine if the element is visible. -
Uses of Box in com.openhtmltopdf.extend
Methods in com.openhtmltopdf.extend with parameters of type BoxModifier and TypeMethodDescriptionSVGDrawer.buildSVGImage(Element svgElement, Box box, CssContext cssContext, double cssWidth, double cssHeight, double dotsPerPixel) voidOutputDevice.drawDebugOutline(RenderingContext c, Box box, FSColor color) voidOutputDevice.paintBackground(RenderingContext c, Box box) voidOutputDevice.paintBorder(RenderingContext c, Box box) OutputDevice.startStructure(StructureType type, Box box) Propagate the structure heirachy to allow for PDF/UA compliance. -
Uses of Box in com.openhtmltopdf.java2d
Methods in com.openhtmltopdf.java2d with parameters of type BoxConstructors in com.openhtmltopdf.java2d with parameters of type BoxModifierConstructorDescriptionJava2DSVGReplacedElement(Element e, SVGDrawer svgImpl, int width, int height, Box box, CssContext c) -
Uses of Box in com.openhtmltopdf.layout
Fields in com.openhtmltopdf.layout declared as BoxModifier and TypeFieldDescriptionprivate BoxLayer._endprivate final BoxFloatManager._masterprivate BoxLayer._masterprivate final BoxVerticalAlignContext.ChildContextData._rootprivate BoxLayer._selectionEndprivate BoxLayer._selectionStartFields in com.openhtmltopdf.layout with type parameters of type BoxMethods in com.openhtmltopdf.layout that return BoxModifier and TypeMethodDescriptionLayer.find(CssContext cssCtx, int absX, int absY, boolean findAnonymous) Deprecated.private BoxLayer.find(CssContext cssCtx, int absX, int absY, List<Layer> layers, boolean findAnonymous) Deprecated.SharedContext.getBoxById(String id) Layer.getEnd()FloatManager.getMaster()Layer.getMaster()Layer.getSelectionEnd()Layer.getSelectionStart()Methods in com.openhtmltopdf.layout that return types with arguments of type BoxMethods in com.openhtmltopdf.layout with parameters of type BoxModifier and TypeMethodDescriptionvoidvoidprivate static voidInlineBoxing.alignInlineContent(LayoutContext c, Box box, float ascent, float descent, VerticalAlignContext vaContext) private voidFloatManager.applyLineHeightHack(CssContext cssCtx, Box line, Rectangle bounds) protected List<AffineTransform> Layer.applyTranform(RenderingContext c, Box box) Deprecated.static List<TextDecoration> InlineBoxing.calculateTextDecorations(Box box, int baseline, FSFontMetrics fm) private booleanVerticalAlignContext.ChildContextData.canBeMoved(Box box) voidBlockFormattingContext.clear(LayoutContext c, Box current) voidFloatManager.clear(CssContext cssCtx, BlockFormattingContext bfc, Box box) voidBoxCollector.collect(CssContext c, Shape clip, Layer layer, Box container, List<Box> blockContent, List<Box> inlineContent, BoxRangeLists rangeLists) private static voidBoxBuilder.createAnonymousBlock(SharedContext c, Box parent, List<Styleable> inline, List<InlineBox> savedParents) private static voidBoxBuilder.createAnonymousBlock(SharedContext c, Box parent, List<Styleable> inline, List<InlineBox> savedParents, IdentValue display) VerticalAlignContext.createChild(Box root) static StrutMetricsInlineBoxing.createDefaultStrutMetrics(LayoutContext c, Box container) voidLayer.ensureHasPage(CssContext c, Box box) private static LineBoxBlockBoxing.getFirstLine(Box box) Layer.getFirstPage(CssContext c, Box box) private static InlineBoxMeasurementsInlineBoxing.getInitialMeasurements(LayoutContext c, Box container, FSFontMetrics strutM) Layer.getLastPage(CssContext c, Box box) private static voidBoxBuilder.insertAnonymousBlocks(SharedContext c, Box parent, List<Styleable> children, boolean layoutRunningBlocks) private booleanBoxCollector.intersectsAggregateBounds(Shape clip, Box box) booleanBoxCollector.intersectsAny(CssContext c, Shape clip, Box master) private booleanBoxCollector.intersectsAny(CssContext c, Shape clip, Box master, Box container) private voidFloatManager.moveClear(CssContext cssCtx, BlockFormattingContext bfc, Box current, List<FloatManager.BoxOffset> floats) private voidFloatManager.moveFloatBelow(CssContext cssCtx, BlockFormattingContext bfc, Box current, List<FloatManager.BoxOffset> floats) private voidVerticalAlignContext.ChildContextData.moveInlineContents(Box box, int ty) private static LineBoxInlineBoxing.newLine(LayoutContext c, int y, Box box) private static LineBoxInlineBoxing.newLine(LayoutContext c, LineBox previousLine, Box box) voidstatic intInlineBoxing.positionHorizontally(CssContext c, Box current, int start) static intInlineBoxing.positionHorizontallyRTL(CssContext c, Box current, int start, int width) Attempts to layout inline boxes from right to left.private static voidInlineBoxing.positionInlineContentVertically(LayoutContext c, VerticalAlignContext vaContext, Box child) private static voidInlineBoxing.positionVertically(LayoutContext c, Box container, LineBox current, MarkerData markerData) voidvoidLayoutContext.pushLayerIsolated(Box master) private voidBoxCollector.saveRangeData(CssContext c, Box container, List<Box> blockContent, List<Box> inlineContent, BoxRangeLists rangeLists, boolean isBlock, int blockStart, int inlineStart, int blockRangeStart, int inlineRangeStart) voidvoidLayer.setSelectionEnd(Box selectionEnd) voidLayer.setSelectionStart(Box selectionStart) Method parameters in com.openhtmltopdf.layout with type arguments of type BoxModifier and TypeMethodDescriptionvoidBoxCollector.collect(CssContext c, Shape clip, Layer layer, Box container, List<Box> blockContent, List<Box> inlineContent, BoxRangeLists rangeLists) voidBoxCollector.collect(CssContext c, Shape clip, Layer layer, List<Box> blockContent, List<Box> inlineContent, BoxRangeLists rangeLists) private Map<TableCellBox, List<CollapsedBorderSide>> Layer.collectCollapsedTableBorders(RenderingContext c, List<Box> blocks) Deprecated.private voidBoxCollector.collectInlineLayer(CssContext c, Shape clip, Layer layer, List<Box> blockContent, List<Box> inlineContent, BoxRangeLists rangeLists) private voidLayer.paintBackgroundsAndBorders(RenderingContext c, List<Box> blocks, Map<TableCellBox, List<CollapsedBorderSide>> collapsedTableBorders, BoxRangeLists rangeLists) Deprecated.private voidLayer.paintInlineContent(RenderingContext c, List<Box> lines, BoxRangeLists rangeLists) Deprecated.private voidLayer.paintListMarkers(RenderingContext c, List<Box> blocks, BoxRangeLists rangeLists) Deprecated.private voidLayer.paintReplacedElements(RenderingContext c, List<Box> blocks, BoxRangeLists rangeLists) Deprecated.private voidLayer.paintSelection(RenderingContext c, List<Box> lines) Deprecated.private static IntegerBlockBoxing.processPageBreakAvoidRun(LayoutContext c, BlockBox block, List<Box> localChildren, int offset, BlockBoxing.AbstractRelayoutDataList relayoutDataList, BlockBox childBox) private static intBlockBoxing.relayoutRun(LayoutContext c, List<Box> localChildren, BlockBox block, BlockBoxing.AbstractRelayoutDataList relayoutDataList, int start, int end, boolean onNewPage) private voidBoxCollector.saveRangeData(CssContext c, Box container, List<Box> blockContent, List<Box> inlineContent, BoxRangeLists rangeLists, boolean isBlock, int blockStart, int inlineStart, int blockRangeStart, int inlineRangeStart) Constructors in com.openhtmltopdf.layout with parameters of type BoxModifierConstructorDescriptionChildContextData(Box root, VerticalAlignContext vaContext) FloatManager(Box master) Layer(Layer parent, Box master, CssContext c) Creates a child layer.Layer(Box master, CssContext c) Creates the root layer.Layer(Box master, CssContext c, boolean isolated) -
Uses of Box in com.openhtmltopdf.newtable
Subclasses of Box in com.openhtmltopdf.newtableModifier and TypeClassDescriptionclassclassclassclass -
Uses of Box in com.openhtmltopdf.pdfboxout
Fields in com.openhtmltopdf.pdfboxout declared as BoxModifier and TypeFieldDescriptionprivate final BoxPdfBoxFastLinkManager._rootprivate BoxPdfBoxFastOutputDevice._rootprivate final BoxPdfBoxLinkManager._rootDeprecated.private BoxPdfBoxSlowOutputDevice._rootprivate final BoxPdfBoxAccessibilityHelper._rootBox(package private) BoxPdfBoxAccessibilityHelper.AbstractStructualElement.box(package private) BoxPdfBoxFastLinkManager.LinkDetails.boxfinal BoxPdfBoxForm.Control.box(package private) BoxPdfBoxLinkManager.LinkDetails.boxMethods in com.openhtmltopdf.pdfboxout that return types with arguments of type BoxModifier and TypeMethodDescriptionprivate PagePosition<Box> PdfBoxFastOutputDevice.calcPDFPagePosition(CssContext c, String id, Box box) private PagePosition<Box> PdfBoxSlowOutputDevice.calcPDFPagePosition(CssContext c, String id, Box box) PdfBoxFastOutputDevice.findPagePositionsByID(CssContext c, Pattern pattern) PdfBoxOutputDevice.findPagePositionsByID(CssContext c, Pattern pattern) PdfBoxRenderer.findPagePositionsByID(Pattern pattern) PdfBoxSlowOutputDevice.findPagePositionsByID(CssContext c, Pattern pattern) Methods in com.openhtmltopdf.pdfboxout with parameters of type BoxModifier and TypeMethodDescriptionvoidPdfBoxPerDocumentFormState.addControlIfRequired(Box box, org.apache.pdfbox.pdmodel.PDPage page, AffineTransform transform, RenderingContext c, float pageHeight) Adds a control to a list to be used later byprocessControls.voidPdfBoxPerDocumentFormState.addFormIfRequired(Box box, PdfBoxOutputDevice od) Adds a form to a map to be used later byprocessControls.voidPdfBoxAccessibilityHelper.addLink(Box anchor, Box target, org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation pdAnnotation, org.apache.pdfbox.pdmodel.PDPage page) private voidPdfBoxFastLinkManager.addLinkToPage(org.apache.pdfbox.pdmodel.PDPage page, AnnotationContainer annot, Box anchor, Box target) private voidPdfBoxFastLinkManager.addUriAsLink(RenderingContext c, Box box, org.apache.pdfbox.pdmodel.PDPage page, float pageHeight, AffineTransform transform, Element elem, NamespaceHandler handler, String uri, Shape linkShape) private voidPdfBoxLinkManager.addUriAsLink(RenderingContext c, Box box, org.apache.pdfbox.pdmodel.PDPage page, float pageHeight, AffineTransform transform, Element elem, NamespaceHandler handler, String uri, Shape linkShape) Deprecated.private PagePosition<Box> PdfBoxFastOutputDevice.calcPDFPagePosition(CssContext c, String id, Box box) private PagePosition<Box> PdfBoxSlowOutputDevice.calcPDFPagePosition(CssContext c, String id, Box box) private Rectangle2DPdfBoxFastLinkManager.calcTotalLinkArea(RenderingContext c, Box box, float pageHeight, AffineTransform transform) private Rectangle2DPdfBoxLinkManager.calcTotalLinkArea(RenderingContext c, Box box, float pageHeight, AffineTransform transform) Deprecated.private Rectangle2DPdfBoxFastLinkManager.checkLinkArea(org.apache.pdfbox.pdmodel.PDPage page, RenderingContext c, Box box, float pageHeight, AffineTransform transform, Shape linkShape) private Rectangle2DPdfBoxLinkManager.checkLinkArea(org.apache.pdfbox.pdmodel.PDPage page, RenderingContext c, Box box, float pageHeight, AffineTransform transform, Shape linkShape) Deprecated.private Stringstatic PdfBoxPDFReplacedElementPdfBoxPDFReplacedElement.create(org.apache.pdfbox.pdmodel.PDDocument target, byte[] pdfBytes, Element e, Box box, CssContext ctx, SharedContext shared) private org.apache.pdfbox.cos.COSDictionaryPdfBoxAccessibilityHelper.createBackgroundArtifact(StructureType type, Box box) static org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageXYZDestinationPdfBoxBookmarkManager.createBoxDestination(RenderingContext c, org.apache.pdfbox.pdmodel.PDDocument writer, PdfBoxFastOutputDevice od, float dotsPerPoint, Box root, Box box) Creates aPDPageXYZDestinationwith the Y set to the min Y of the border box and the X and Z set to null.private org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageXYZDestinationPdfBoxFastLinkManager.createDestination(RenderingContext c, Box box) private org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageXYZDestinationPdfBoxLinkManager.createDestination(RenderingContext c, Box box) Deprecated.PdfBoxAccessibilityHelper.createFigureContentStructureItem(StructureType type, Box box) PdfBoxAccessibilityHelper.createListItemLabelMarkedContent(StructureType type, Box box) PdfBoxAccessibilityHelper.createMarkedContentStructureItem(StructureType type, Box box) private org.apache.pdfbox.cos.COSDictionaryPdfBoxAccessibilityHelper.createPaginationArtifact(StructureType type, Box box) PdfBoxAccessibilityHelper.createStructureItem(StructureType type, Box box) static Rectangle2DPdfBoxFastLinkManager.createTargetArea(RenderingContext c, Box box, float pageHeight, AffineTransform transform, Box _root, PdfBoxOutputDevice _od) static Rectangle2DPdfBoxLinkManager.createTargetArea(RenderingContext c, Box box, float pageHeight, AffineTransform transform, Box _root, PdfBoxOutputDevice _od) Deprecated.private voidPdfBoxAccessibilityHelper.ensureAncestorTree(PdfBoxAccessibilityHelper.AbstractTreeItem child, Box parent) private voidPdfBoxAccessibilityHelper.ensureParent(Box box, PdfBoxAccessibilityHelper.AbstractTreeItem child) voidPdfBoxFastOutputDevice.finish(RenderingContext c, Box root) voidPdfBoxOutputDevice.finish(RenderingContext c, Box root) voidPdfBoxSlowOutputDevice.finish(RenderingContext c, Box root) intPdfBoxFastOutputDevice.getPageRefY(Box box) intPdfBoxOutputDevice.getPageRefY(Box box) intPdfBoxSlowOutputDevice.getPageRefY(Box box) static org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureElementPdfBoxAccessibilityHelper.getStructualElementForBox(Box targetBox) Given a box, gets its structual element.private static StringPdfBoxAccessibilityHelper.guessBoxTag(Box box) voidPdfBoxFastOutputDevice.paintBackground(RenderingContext c, Box box) We use paintBackground to do extra stuff such as processing links, forms and form controls.voidPdfBoxOutputDevice.paintBackground(RenderingContext c, Box box) We use paintBackground to do extra stuff such as processing links, forms and form controls.voidPdfBoxSlowOutputDevice.paintBackground(RenderingContext c, Box box) We use paintBackground to do extra stuff such as processing links, forms and form controls.intPdfBoxForm.process(org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acro, int startId, Box root) private voidPdfBoxForm.processCheckboxControl(PdfBoxForm.ControlFontPair pair, org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acro, int i, PdfBoxForm.Control ctrl, Box root) voidPdfBoxPerDocumentFormState.processControls(SharedContext sharedContext, org.apache.pdfbox.pdmodel.PDDocument writer, Box root) private voidPdfBoxForm.processHiddenControl(PdfBoxForm.ControlFontPair pair, PdfBoxForm.Control ctrl, org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acro, int i, Box root) private voidPdfBoxFastLinkManager.processLink(RenderingContext c, Box box, org.apache.pdfbox.pdmodel.PDPage page, float pageHeight, AffineTransform transform) private voidPdfBoxLinkManager.processLink(RenderingContext c, Box box, org.apache.pdfbox.pdmodel.PDPage page, float pageHeight, AffineTransform transform) Deprecated.voidPdfBoxFastLinkManager.processLinkLater(RenderingContext c, Box box, org.apache.pdfbox.pdmodel.PDPage page, float pageHeight, AffineTransform transform) voidPdfBoxLinkManager.processLinkLater(RenderingContext c, Box box, org.apache.pdfbox.pdmodel.PDPage page, float pageHeight, AffineTransform transform) Deprecated.private voidPdfBoxForm.processMultiSelectControl(PdfBoxForm.ControlFontPair pair, PdfBoxForm.Control ctrl, org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acro, int i, Box root) private voidPdfBoxForm.processRadioButtonGroup(List<PdfBoxForm.Control> group, org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acro, int i, Box root) private voidPdfBoxForm.processSelectControl(PdfBoxForm.ControlFontPair pair, PdfBoxForm.Control ctrl, org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acro, int i, Box root) Processes select controls and the custom openhtmltopdf-combo control.private voidPdfBoxForm.processSubmitControl(org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acro, int i, PdfBoxForm.Control ctrl, Box root) private voidPdfBoxForm.processTextControl(PdfBoxForm.ControlFontPair pair, PdfBoxForm.Control ctrl, org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acro, int i, Box root) voidvoidvoidprivate voidPdfBoxAccessibilityHelper.setupStructureElement(PdfBoxAccessibilityHelper.AbstractStructualElement child, Box box) PdfBoxAccessibilityHelper.startStructure(StructureType type, Box box) PdfBoxFastOutputDevice.startStructure(StructureType type, Box box) PdfBoxSlowOutputDevice.startStructure(StructureType type, Box box) private voidPdfBoxBookmarkManager.writeBookmark(RenderingContext c, Box root, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode parent, PdfBoxBookmarkManager.Bookmark bookmark) private voidPdfBoxSlowOutputDevice.writeBookmark(RenderingContext c, Box root, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode parent, PdfBoxSlowOutputDevice.Bookmark bookmark) private voidPdfBoxBookmarkManager.writeBookmarks(RenderingContext c, Box root, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode parent, List<PdfBoxBookmarkManager.Bookmark> bookmarks) private voidPdfBoxSlowOutputDevice.writeBookmarks(RenderingContext c, Box root, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode parent, List<PdfBoxSlowOutputDevice.Bookmark> bookmarks) voidPdfBoxBookmarkManager.writeOutline(RenderingContext c, Box root) private voidPdfBoxSlowOutputDevice.writeOutline(RenderingContext c, Box root) Constructors in com.openhtmltopdf.pdfboxout with parameters of type BoxModifierConstructorDescriptionControl(Box box, org.apache.pdfbox.pdmodel.PDPage page, AffineTransform transform, RenderingContext c, float pageHeight) PdfBoxAccessibilityHelper(PdfBoxFastOutputDevice od, Box root, Document doc) PdfBoxFastLinkManager(SharedContext ctx, float dotsPerPoint, Box root, PdfBoxFastOutputDevice od) PdfBoxLinkManager(SharedContext ctx, float dotsPerPoint, Box root, PdfBoxOutputDevice od) Deprecated.privatePdfBoxPDFReplacedElement(org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject srcForm, Element e, Box box, CssContext ctx, SharedContext shared, float w, float h) PdfBoxSVGReplacedElement(Element e, SVGDrawer svgImpl, int cssWidth, int cssHeight, Box box, CssContext css, SharedContext c) -
Uses of Box in com.openhtmltopdf.render
Subclasses of Box in com.openhtmltopdf.renderModifier and TypeClassDescriptionclassAn anonymous block box as defined in the CSS spec.classA block box as defined in the CSS spec.classclassclassABoxwhich contains the portion of an inline element layed out on a single line.classA line box contains a single line of text (or other inline content).classA dummy box representing one side of the margin area of a page.classA dummy box representing the viewportFields in com.openhtmltopdf.render declared as BoxModifier and TypeFieldDescriptionprivate BoxBox._containingBlockprivate BoxBox._parentprivate BoxBlockBox._staticEquivalentprivate final BoxFlowingColumnContainerBox.ColumnBreakOpportunity.boxprivate final BoxFlowingColumnBox.parentFields in com.openhtmltopdf.render with type parameters of type BoxModifier and TypeFieldDescriptionBox._boxesLineBox._nonFlowContentFlowingColumnContainerBox.ColumnBreakOpportunity.ancestorsBox.ChildIteratorOfType.iterFlowingColumnContainerBox.ColumnBreakStore.processedContainersMethods in com.openhtmltopdf.render that return BoxModifier and TypeMethodDescriptionAnonymousBlockBox.find(CssContext cssCtx, int absX, int absY, boolean findAnonymous) Box.find(CssContext cssCtx, int absX, int absY, boolean findAnonymous) InlineLayoutBox.find(CssContext cssCtx, int absX, int absY, boolean findAnonymous) LineBox.find(CssContext cssCtx, int absX, int absY, boolean findAnonymous) Box.findAncestor(Predicate<Box> predicate) Walks up the ancestor tree to the root testing ancestors agains the predicate.RenderingContext.getBoxById(String id) Box.getChild(int i) private BoxBox.getClipParent()Box.getContainingBlock()BlockBox.getDocumentParent()Box.getDocumentParent()protected Boxprotected BoxBox.getNextSibling()Box.getParent()FlowingColumnBox.getParent()protected BoxBox.getPrevious(Box child) protected BoxInlineLayoutBox.getPrevious(Box child) Box.getPreviousSibling()BlockBox.getStaticEquivalent()Box.rootBox()Returns the highest ancestor box.Methods in com.openhtmltopdf.render that return types with arguments of type BoxModifier and TypeMethodDescriptionBox.ancestors()Get all ancestors, up until the root box.Box.ancestorsWhile(Predicate<Box> predicate) Creates a list of ancestors by walking up the chain of parent, grandparent, etc.Box.getChildIterator()Box.getChildren()Box.getElementBoxes(Element elem) InlineLayoutBox.getElementBoxes(Element elem) InlineLayoutBox.getElementWithContent()LineBox.getNonFlowContent()Methods in com.openhtmltopdf.render with parameters of type BoxModifier and TypeMethodDescriptionvoidAdd a break opportunity.voidvoidBox.addChildForLayout(LayoutContext c, Box child) private intFlowingColumnContainerBox.adjustUnbalanced(LayoutContext c, Box child, int colGap, int colWidth, int columnCount, int xStart) booleanFlowingColumnContainerBox.ColumnBreakStore.checkContainerShouldProcess(Box container) Whether an ancestor box needs to be added to the list of ancestors.voidAbstractOutputDevice.drawDebugOutline(RenderingContext c, Box box, FSColor color) intBlockBox.findOffset(Box box) protected Boxprotected Boxprotected BoxBox.getPrevious(Box child) protected BoxInlineLayoutBox.getPrevious(Box child) private booleanInlineLayoutBox.isEndingBox(Box b) (package private) static FlowingColumnContainerBox.ColumnBreakOpportunityvoidAbstractOutputDevice.paintBackground(RenderingContext c, Box box) voidAbstractOutputDevice.paintBorder(RenderingContext c, Box box) booleanBox.removeChild(Box target) Removes a child box if it is indeed a child and adjusts the index of subsequent children.booleanInlineLayoutBox.removeChild(Box child) Removes a child box if it is indeed a child and adjusts the index of subsequent children.private voidFlowingColumnContainerBox.reposition(Box box, int xAdjust, int yAdjust) voidBox.setContainingBlock(Box containingBlock) voidvoidBlockBox.setStaticEquivalent(Box staticEquivalent) Method parameters in com.openhtmltopdf.render with type arguments of type BoxModifier and TypeMethodDescriptionvoidBox.addAllChildren(List<Box> children) voidInlineLayoutBox.addAllChildren(List<? super Box> list, Layer layer) voidLineBox.addAllChildren(List<? super Box> list, Layer layer) voidAdd a break opportunity.private AnonymousBlockBoxInlineLayoutBox.addFollowingBlockBoxes(BlockBox container, List<Box> result) private voidInlineLayoutBox.addToContentList(List<Box> list) Box.ancestorsWhile(Predicate<Box> predicate) Creates a list of ancestors by walking up the chain of parent, grandparent, etc.private booleanInlineLayoutBox.containsEnd(List<Box> result) protected voidBox.dumpBoxes(LayoutContext c, String indent, List<Box> boxes, int which, StringBuilder result) Box.findAncestor(Predicate<Box> predicate) Walks up the ancestor tree to the root testing ancestors agains the predicate.(package private) static FlowingColumnContainerBox.ColumnBreakOpportunityprivate voidFlowingColumnContainerBox.repositionAncestors(List<Box> ancestors, int xAdjust, int yAdjust) Constructors in com.openhtmltopdf.render with parameters of type BoxModifierConstructorDescriptionprivateColumnBreakOpportunity(Box box, List<Box> ancestors) FlowingColumnBox(Box parent) Constructor parameters in com.openhtmltopdf.render with type arguments of type BoxModifierConstructorDescriptionprivateChildIteratorOfType(Iterator<Box> parent, Class<T> clazz) privateColumnBreakOpportunity(Box box, List<Box> ancestors) -
Uses of Box in com.openhtmltopdf.render.displaylist
Fields in com.openhtmltopdf.render.displaylist declared as BoxModifier and TypeFieldDescriptionprivate final BoxPaintPopTransformLayer._masterprivate final BoxPaintPushTransformLayer._masterprivate final BoxPaintLayerBackgroundAndBorder.masterprivate final BoxPaintRootElementBackground.rootMethods in com.openhtmltopdf.render.displaylist that return BoxModifier and TypeMethodDescriptionPaintLayerBackgroundAndBorder.getMaster()PaintPopTransformLayer.getMaster()PaintPushTransformLayer.getMaster()PaintRootElementBackground.getRoot()Methods in com.openhtmltopdf.render.displaylist with parameters of type BoxModifier and TypeMethodDescriptionbooleanPagedBoxCollector.AddBlockToShadowPage.add(PagedBoxCollector collector, PagedBoxCollector.PageResult shadowPageResult, Box container, Shape clip, Layer layer) booleanPagedBoxCollector.AddFloatToShadowPage.add(PagedBoxCollector collector, PagedBoxCollector.PageResult shadowPageResult, Box container, Shape clip, Layer layer) booleanPagedBoxCollector.AddInlineToShadowPage.add(PagedBoxCollector collector, PagedBoxCollector.PageResult shadowPageResult, Box container, Shape clip, Layer layer) booleanPagedBoxCollector.AddToShadowPage.add(PagedBoxCollector collector, PagedBoxCollector.PageResult shadowPageResult, Box container, Shape clip, Layer layer) private voidPagedBoxCollector.addBlock(Box container, PagedBoxCollector.PageResult pageResult) Adds block box to appropriate flat box lists.private voidPagedBoxCollector.addBlockToAll(CssContext c, Layer layer, Box container, int pgStart, int pgEnd, Shape ourClip, List<PagedBoxCollector.PageResult> clipPages, boolean includeShadowPages) private voidPagedBoxCollector.addBlockToShadowPage(CssContext c, Layer layer, Box container, int pgStart, int pgEnd, Shape ourClip, List<PagedBoxCollector.PageResult> clipPages, int shadowPageNumber) private voidPagedBoxCollector.addBoxToShadowPages(CssContext c, Box container, int pageNumber, PagedBoxCollector.PageResult pageResult, Shape ourClip, List<PagedBoxCollector.PageResult> clipPages, Layer layer, PagedBoxCollector.AddToShadowPage addToMethod) Adds box to inserted shadow pages as needed.private voidPagedBoxCollector.addTableHeaderFooter(CssContext c, Layer layer, Box container, int shadowPageNumber) protected voidDisplayListCollector.addTransformItem(Box master, List<PagedBoxCollector.PageInfo> pages, DisplayListContainer dlPages) private static voidTransformCreator.applyTransformFunctions(float flipFactor, List<PropertyValue> transformList, AffineTransform result, Box box, CssContext ctx) private booleanPagedBoxCollector.boxIntersects(CssContext c, Shape clip, Box box, Rectangle boxBounds) voidPagedBoxCollector.collect(CssContext c, Layer layer, Box container, int shadowPageNumber) The main box collection method.voidPagedBoxCollector.collect(CssContext c, Layer layer, Box container, int pgStart, int pgEnd, int shadowPageNumber) static AffineTransformTransformCreator.createDocumentCoordinatesTransform(Box master, CssContext c, AffineTransform _parentCtm) Creates an absolute transform in document coordinates.static AffineTransformTransformCreator.createPageCoordinatesTranform(RenderingContext c, Box box, PageBox page, int shadowPageNumber) Creates a transform that can be applied to a page, either PDF or Java2D.static AffineTransformTransformCreator.createPageMarginCoordinatesTransform(RenderingContext c, Box box, PageBox page, int xTranslate, int yTranslate) private static voidTransformCreator.createTransform(CssContext c, Box box, PageBox page, AffineTransform result, TransformCreator.TransformYOrigin transformYOrigin, int shadowPageNumber) pagemay be null in the case thattransformYOriginisDOCUMENT_TOP.static RectanglePagedBoxCollector.findAdjustedBoundsForBorderBox(CssContext c, Box container, List<PageBox> pages) Finds the document coordinates border box bounds of a box adjusted for transform and clipped according to overflow hidden.static RectanglePagedBoxCollector.findAdjustedBoundsForContentBox(CssContext c, Box container) Finds the document coordinates content box bounds of a box adjusted for transform and clipped according to overflow hidden.protected intPagedBoxCollector.findEndPage(CssContext c, Box container, AffineTransform transform) static intPagedBoxCollector.findEndPage(CssContext c, Box container, List<PageBox> pages) protected intPagedBoxCollector.findStartPage(CssContext c, Box container, AffineTransform transform) static intPagedBoxCollector.findStartPage(CssContext c, Box container, List<PageBox> pages) private static RectanglePagedBoxCollector.getBoxRect(CssContext c, Box container) private static floatTransformCreator.getPageTranslateX(float absTranslateX, int shadowPageNumber, PageBox page, CssContext c, Box box) private booleanPagedBoxCollector.intersectsAggregateBounds(CssContext c, Shape clip, Box box) private booleanPagedBoxCollector.intersectsAny(CssContext c, Shape clip, Box master, Box container) private booleanPagedBoxCollector.intersectsBorderBoxBounds(CssContext c, Shape clip, Box box) Returns whether a box (out to the outside edge of border) is partially or fully in a clip shape.private voidDisplayListPainter.popTransform(RenderingContext c, Box master) private voidDisplayListPainter.pushTransform(RenderingContext c, Box master, int shadowPage) Constructors in com.openhtmltopdf.render.displaylist with parameters of type BoxModifierConstructorDescriptionPaintLayerBackgroundAndBorder(Box master) PaintPopTransformLayer(Box master) PaintPushTransformLayer(Box master, int shadowPage) -
Uses of Box in com.openhtmltopdf.render.simplepainter
Methods in com.openhtmltopdf.render.simplepainter with parameters of type BoxModifier and TypeMethodDescriptionprivate booleanSimpleBoxCollector.addBlockToLists(RenderingContext c, Layer layer, Box container, Shape ourClip) Adds block box to appropriate flat box lists.voidSimpleBoxCollector.collect(RenderingContext c, Layer layer, Box container) private voidSimplePainter.paintLayerBackgroundAndBorder(RenderingContext c, Box master) -
Uses of Box in com.openhtmltopdf.svgsupport
Fields in com.openhtmltopdf.svgsupport declared as BoxMethods in com.openhtmltopdf.svgsupport with parameters of type BoxModifier and TypeMethodDescriptionBatikSVGDrawer.buildSVGImage(Element svgElement, Box box, CssContext c, double cssWidth, double cssHeight, double dotsPerPixel) private PointBatikSVGImage.parseDimensions(Element e, Box box, CssContext ctx) private IntegerBatikSVGImage.parseLength(String attrValue, CSSName property, Box box, CssContext ctx) private PointBatikSVGImage.parseWidthHeightAttributes(Element e, Box box, CssContext ctx) Constructors in com.openhtmltopdf.svgsupport with parameters of type BoxModifierConstructorDescriptionBatikSVGImage(Element svgElement, Box box, double cssWidth, double cssHeight, double cssMaxWidth, double cssMaxHeight, double dotsPerPixel, CssContext ctx) PDFTranscoder(Box box, double dotsPerPixel, double width, double height) -
Uses of Box in com.openhtmltopdf.util
Fields in com.openhtmltopdf.util with type parameters of type BoxMethods in com.openhtmltopdf.util that return BoxModifier and TypeMethodDescriptionprivate BoxDescendantBoxSpliterator.current()static BoxBoxUtil.getBodyBoxOrSomething(Box root) static BoxBoxUtil.getBodyOrNull(Box root) Looks at the direct children of root to find one with an element with node name body.private BoxDescendantBoxSpliterator.getNext()private BoxDescendantBoxSpliterator.getNextInlineChild(List<? extends Object> inlineChilds) Methods in com.openhtmltopdf.util that return types with arguments of type BoxModifier and TypeMethodDescriptionNull-safe way to look up the ancestor tree as a stream.LambdaUtil.descendants(Box parent) A stream of all descendant boxes not including InlineText or InlineBox objects.LambdaUtil.descendantsList(Box parent) DescendantBoxSpliterator.trySplit()Methods in com.openhtmltopdf.util with parameters of type BoxModifier and TypeMethodDescriptionprivate voidstatic StringLambdaUtil.ancestorDump(Box bx) Ancestor dump to string including starting box and referenced layers.Null-safe way to look up the ancestor tree as a stream.static StringLambdaUtil.boxDescription(Box box) Null-safe box description including object id, layer, containing layer and impl class.static StringLambdaUtil.descendantDump(Box root) Creates an indented dump of the box tree.private static voidLambdaUtil.descendantDump(Box parent, int indent, List<LambdaUtil.DescendantContent> out) LambdaUtil.descendants(Box parent) A stream of all descendant boxes not including InlineText or InlineBox objects.LambdaUtil.descendantsList(Box parent) static BoxBoxUtil.getBodyBoxOrSomething(Box root) static BoxBoxUtil.getBodyOrNull(Box root) Looks at the direct children of root to find one with an element with node name body.private booleanDescendantBoxSpliterator.hasChildren(Box bx) private static booleanMethod parameters in com.openhtmltopdf.util with type arguments of type BoxModifier and TypeMethodDescriptionbooleanDescendantBoxSpliterator.tryAdvance(Consumer<? super Box> action) Constructors in com.openhtmltopdf.util with parameters of type Box