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 int
CalculatedStyle.getCSSMaxHeight
(CssContext c, Box box) Aims to get the correct resolved max-height for a box in dots unit.static int
CalculatedStyle.getCSSMaxWidth
(CssContext c, Box box) Aims to get the correct resolved max-width for a box in dots unit.boolean
CalculatedStyle.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) void
OutputDevice.drawDebugOutline
(RenderingContext c, Box box, FSColor color) void
OutputDevice.paintBackground
(RenderingContext c, Box box) void
OutputDevice.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 Box
Layer._end
private final Box
FloatManager._master
private Box
Layer._master
private final Box
VerticalAlignContext.ChildContextData._root
private Box
Layer._selectionEnd
private Box
Layer._selectionStart
Fields 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 Box
Layer.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 TypeMethodDescriptionvoid
void
private static void
InlineBoxing.alignInlineContent
(LayoutContext c, Box box, float ascent, float descent, VerticalAlignContext vaContext) private void
FloatManager.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 boolean
VerticalAlignContext.ChildContextData.canBeMoved
(Box box) void
BlockFormattingContext.clear
(LayoutContext c, Box current) void
FloatManager.clear
(CssContext cssCtx, BlockFormattingContext bfc, Box box) void
BoxCollector.collect
(CssContext c, Shape clip, Layer layer, Box container, List<Box> blockContent, List<Box> inlineContent, BoxRangeLists rangeLists) private static void
BoxBuilder.createAnonymousBlock
(SharedContext c, Box parent, List<Styleable> inline, List<InlineBox> savedParents) private static void
BoxBuilder.createAnonymousBlock
(SharedContext c, Box parent, List<Styleable> inline, List<InlineBox> savedParents, IdentValue display) VerticalAlignContext.createChild
(Box root) static StrutMetrics
InlineBoxing.createDefaultStrutMetrics
(LayoutContext c, Box container) void
Layer.ensureHasPage
(CssContext c, Box box) private static LineBox
BlockBoxing.getFirstLine
(Box box) Layer.getFirstPage
(CssContext c, Box box) private static InlineBoxMeasurements
InlineBoxing.getInitialMeasurements
(LayoutContext c, Box container, FSFontMetrics strutM) Layer.getLastPage
(CssContext c, Box box) private static void
BoxBuilder.insertAnonymousBlocks
(SharedContext c, Box parent, List<Styleable> children, boolean layoutRunningBlocks) private boolean
BoxCollector.intersectsAggregateBounds
(Shape clip, Box box) boolean
BoxCollector.intersectsAny
(CssContext c, Shape clip, Box master) private boolean
BoxCollector.intersectsAny
(CssContext c, Shape clip, Box master, Box container) private void
FloatManager.moveClear
(CssContext cssCtx, BlockFormattingContext bfc, Box current, List<FloatManager.BoxOffset> floats) private void
FloatManager.moveFloatBelow
(CssContext cssCtx, BlockFormattingContext bfc, Box current, List<FloatManager.BoxOffset> floats) private void
VerticalAlignContext.ChildContextData.moveInlineContents
(Box box, int ty) private static LineBox
InlineBoxing.newLine
(LayoutContext c, int y, Box box) private static LineBox
InlineBoxing.newLine
(LayoutContext c, LineBox previousLine, Box box) void
static int
InlineBoxing.positionHorizontally
(CssContext c, Box current, int start) static int
InlineBoxing.positionHorizontallyRTL
(CssContext c, Box current, int start, int width) Attempts to layout inline boxes from right to left.private static void
InlineBoxing.positionInlineContentVertically
(LayoutContext c, VerticalAlignContext vaContext, Box child) private static void
InlineBoxing.positionVertically
(LayoutContext c, Box container, LineBox current, MarkerData markerData) void
void
LayoutContext.pushLayerIsolated
(Box master) private void
BoxCollector.saveRangeData
(CssContext c, Box container, List<Box> blockContent, List<Box> inlineContent, BoxRangeLists rangeLists, boolean isBlock, int blockStart, int inlineStart, int blockRangeStart, int inlineRangeStart) void
void
Layer.setSelectionEnd
(Box selectionEnd) void
Layer.setSelectionStart
(Box selectionStart) Method parameters in com.openhtmltopdf.layout with type arguments of type BoxModifier and TypeMethodDescriptionvoid
BoxCollector.collect
(CssContext c, Shape clip, Layer layer, Box container, List<Box> blockContent, List<Box> inlineContent, BoxRangeLists rangeLists) void
BoxCollector.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 void
BoxCollector.collectInlineLayer
(CssContext c, Shape clip, Layer layer, List<Box> blockContent, List<Box> inlineContent, BoxRangeLists rangeLists) private void
Layer.paintBackgroundsAndBorders
(RenderingContext c, List<Box> blocks, Map<TableCellBox, List<CollapsedBorderSide>> collapsedTableBorders, BoxRangeLists rangeLists) Deprecated.private void
Layer.paintInlineContent
(RenderingContext c, List<Box> lines, BoxRangeLists rangeLists) Deprecated.private void
Layer.paintListMarkers
(RenderingContext c, List<Box> blocks, BoxRangeLists rangeLists) Deprecated.private void
Layer.paintReplacedElements
(RenderingContext c, List<Box> blocks, BoxRangeLists rangeLists) Deprecated.private void
Layer.paintSelection
(RenderingContext c, List<Box> lines) Deprecated.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) private void
BoxCollector.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 TypeClassDescriptionclass
class
class
class
-
Uses of Box in com.openhtmltopdf.pdfboxout
Fields in com.openhtmltopdf.pdfboxout declared as BoxModifier and TypeFieldDescriptionprivate final Box
PdfBoxFastLinkManager._root
private Box
PdfBoxFastOutputDevice._root
private final Box
PdfBoxLinkManager._root
Deprecated.private Box
PdfBoxSlowOutputDevice._root
private final Box
PdfBoxAccessibilityHelper._rootBox
(package private) Box
PdfBoxAccessibilityHelper.AbstractStructualElement.box
(package private) Box
PdfBoxFastLinkManager.LinkDetails.box
final Box
PdfBoxForm.Control.box
(package private) Box
PdfBoxLinkManager.LinkDetails.box
Methods 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 TypeMethodDescriptionvoid
PdfBoxPerDocumentFormState.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
.void
PdfBoxPerDocumentFormState.addFormIfRequired
(Box box, PdfBoxOutputDevice od) Adds a form to a map to be used later byprocessControls
.void
PdfBoxAccessibilityHelper.addLink
(Box anchor, Box target, org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation pdAnnotation, org.apache.pdfbox.pdmodel.PDPage page) private void
PdfBoxFastLinkManager.addLinkToPage
(org.apache.pdfbox.pdmodel.PDPage page, AnnotationContainer annot, Box anchor, Box target) private void
PdfBoxFastLinkManager.addUriAsLink
(RenderingContext c, Box box, org.apache.pdfbox.pdmodel.PDPage page, float pageHeight, AffineTransform transform, Element elem, NamespaceHandler handler, String uri, Shape linkShape) private void
PdfBoxLinkManager.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 Rectangle2D
PdfBoxFastLinkManager.calcTotalLinkArea
(RenderingContext c, Box box, float pageHeight, AffineTransform transform) private Rectangle2D
PdfBoxLinkManager.calcTotalLinkArea
(RenderingContext c, Box box, float pageHeight, AffineTransform transform) Deprecated.private Rectangle2D
PdfBoxFastLinkManager.checkLinkArea
(org.apache.pdfbox.pdmodel.PDPage page, RenderingContext c, Box box, float pageHeight, AffineTransform transform, Shape linkShape) private Rectangle2D
PdfBoxLinkManager.checkLinkArea
(org.apache.pdfbox.pdmodel.PDPage page, RenderingContext c, Box box, float pageHeight, AffineTransform transform, Shape linkShape) Deprecated.private String
static PdfBoxPDFReplacedElement
PdfBoxPDFReplacedElement.create
(org.apache.pdfbox.pdmodel.PDDocument target, byte[] pdfBytes, Element e, Box box, CssContext ctx, SharedContext shared) private org.apache.pdfbox.cos.COSDictionary
PdfBoxAccessibilityHelper.createBackgroundArtifact
(StructureType type, Box box) static org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageXYZDestination
PdfBoxBookmarkManager.createBoxDestination
(RenderingContext c, org.apache.pdfbox.pdmodel.PDDocument writer, PdfBoxFastOutputDevice od, float dotsPerPoint, Box root, Box box) Creates aPDPageXYZDestination
with 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.PDPageXYZDestination
PdfBoxFastLinkManager.createDestination
(RenderingContext c, Box box) private org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageXYZDestination
PdfBoxLinkManager.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.COSDictionary
PdfBoxAccessibilityHelper.createPaginationArtifact
(StructureType type, Box box) PdfBoxAccessibilityHelper.createStructureItem
(StructureType type, Box box) static Rectangle2D
PdfBoxFastLinkManager.createTargetArea
(RenderingContext c, Box box, float pageHeight, AffineTransform transform, Box _root, PdfBoxOutputDevice _od) static Rectangle2D
PdfBoxLinkManager.createTargetArea
(RenderingContext c, Box box, float pageHeight, AffineTransform transform, Box _root, PdfBoxOutputDevice _od) Deprecated.private void
PdfBoxAccessibilityHelper.ensureAncestorTree
(PdfBoxAccessibilityHelper.AbstractTreeItem child, Box parent) private void
PdfBoxAccessibilityHelper.ensureParent
(Box box, PdfBoxAccessibilityHelper.AbstractTreeItem child) void
PdfBoxFastOutputDevice.finish
(RenderingContext c, Box root) void
PdfBoxOutputDevice.finish
(RenderingContext c, Box root) void
PdfBoxSlowOutputDevice.finish
(RenderingContext c, Box root) int
PdfBoxFastOutputDevice.getPageRefY
(Box box) int
PdfBoxOutputDevice.getPageRefY
(Box box) int
PdfBoxSlowOutputDevice.getPageRefY
(Box box) static org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureElement
PdfBoxAccessibilityHelper.getStructualElementForBox
(Box targetBox) Given a box, gets its structual element.private static String
PdfBoxAccessibilityHelper.guessBoxTag
(Box box) void
PdfBoxFastOutputDevice.paintBackground
(RenderingContext c, Box box) We use paintBackground to do extra stuff such as processing links, forms and form controls.void
PdfBoxOutputDevice.paintBackground
(RenderingContext c, Box box) We use paintBackground to do extra stuff such as processing links, forms and form controls.void
PdfBoxSlowOutputDevice.paintBackground
(RenderingContext c, Box box) We use paintBackground to do extra stuff such as processing links, forms and form controls.int
PdfBoxForm.process
(org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acro, int startId, Box root) private void
PdfBoxForm.processCheckboxControl
(PdfBoxForm.ControlFontPair pair, org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acro, int i, PdfBoxForm.Control ctrl, Box root) void
PdfBoxPerDocumentFormState.processControls
(SharedContext sharedContext, org.apache.pdfbox.pdmodel.PDDocument writer, Box root) private void
PdfBoxForm.processHiddenControl
(PdfBoxForm.ControlFontPair pair, PdfBoxForm.Control ctrl, org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acro, int i, Box root) private void
PdfBoxFastLinkManager.processLink
(RenderingContext c, Box box, org.apache.pdfbox.pdmodel.PDPage page, float pageHeight, AffineTransform transform) private void
PdfBoxLinkManager.processLink
(RenderingContext c, Box box, org.apache.pdfbox.pdmodel.PDPage page, float pageHeight, AffineTransform transform) Deprecated.void
PdfBoxFastLinkManager.processLinkLater
(RenderingContext c, Box box, org.apache.pdfbox.pdmodel.PDPage page, float pageHeight, AffineTransform transform) void
PdfBoxLinkManager.processLinkLater
(RenderingContext c, Box box, org.apache.pdfbox.pdmodel.PDPage page, float pageHeight, AffineTransform transform) Deprecated.private void
PdfBoxForm.processMultiSelectControl
(PdfBoxForm.ControlFontPair pair, PdfBoxForm.Control ctrl, org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acro, int i, Box root) private void
PdfBoxForm.processRadioButtonGroup
(List<PdfBoxForm.Control> group, org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acro, int i, Box root) private void
PdfBoxForm.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 void
PdfBoxForm.processSubmitControl
(org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acro, int i, PdfBoxForm.Control ctrl, Box root) private void
PdfBoxForm.processTextControl
(PdfBoxForm.ControlFontPair pair, PdfBoxForm.Control ctrl, org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acro, int i, Box root) void
void
void
private void
PdfBoxAccessibilityHelper.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 void
PdfBoxBookmarkManager.writeBookmark
(RenderingContext c, Box root, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode parent, PdfBoxBookmarkManager.Bookmark bookmark) private void
PdfBoxSlowOutputDevice.writeBookmark
(RenderingContext c, Box root, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode parent, PdfBoxSlowOutputDevice.Bookmark bookmark) private void
PdfBoxBookmarkManager.writeBookmarks
(RenderingContext c, Box root, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode parent, List<PdfBoxBookmarkManager.Bookmark> bookmarks) private void
PdfBoxSlowOutputDevice.writeBookmarks
(RenderingContext c, Box root, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode parent, List<PdfBoxSlowOutputDevice.Bookmark> bookmarks) void
PdfBoxBookmarkManager.writeOutline
(RenderingContext c, Box root) private void
PdfBoxSlowOutputDevice.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.private
PdfBoxPDFReplacedElement
(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 TypeClassDescriptionclass
An anonymous block box as defined in the CSS spec.class
A block box as defined in the CSS spec.class
class
class
ABox
which contains the portion of an inline element layed out on a single line.class
A line box contains a single line of text (or other inline content).class
A dummy box representing one side of the margin area of a page.class
A dummy box representing the viewportFields in com.openhtmltopdf.render declared as BoxModifier and TypeFieldDescriptionprivate Box
Box._containingBlock
private Box
Box._parent
private Box
BlockBox._staticEquivalent
private final Box
FlowingColumnContainerBox.ColumnBreakOpportunity.box
private final Box
FlowingColumnBox.parent
Fields in com.openhtmltopdf.render with type parameters of type BoxModifier and TypeFieldDescriptionBox._boxes
LineBox._nonFlowContent
FlowingColumnContainerBox.ColumnBreakOpportunity.ancestors
Box.ChildIteratorOfType.iter
FlowingColumnContainerBox.ColumnBreakStore.processedContainers
Methods 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 Box
Box.getClipParent()
Box.getContainingBlock()
BlockBox.getDocumentParent()
Box.getDocumentParent()
protected Box
protected Box
Box.getNextSibling()
Box.getParent()
FlowingColumnBox.getParent()
protected Box
Box.getPrevious
(Box child) protected Box
InlineLayoutBox.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 TypeMethodDescriptionvoid
Add a break opportunity.void
void
Box.addChildForLayout
(LayoutContext c, Box child) private int
FlowingColumnContainerBox.adjustUnbalanced
(LayoutContext c, Box child, int colGap, int colWidth, int columnCount, int xStart) boolean
FlowingColumnContainerBox.ColumnBreakStore.checkContainerShouldProcess
(Box container) Whether an ancestor box needs to be added to the list of ancestors.void
AbstractOutputDevice.drawDebugOutline
(RenderingContext c, Box box, FSColor color) int
BlockBox.findOffset
(Box box) protected Box
protected Box
protected Box
Box.getPrevious
(Box child) protected Box
InlineLayoutBox.getPrevious
(Box child) private boolean
InlineLayoutBox.isEndingBox
(Box b) (package private) static FlowingColumnContainerBox.ColumnBreakOpportunity
void
AbstractOutputDevice.paintBackground
(RenderingContext c, Box box) void
AbstractOutputDevice.paintBorder
(RenderingContext c, Box box) boolean
Box.removeChild
(Box target) Removes a child box if it is indeed a child and adjusts the index of subsequent children.boolean
InlineLayoutBox.removeChild
(Box child) Removes a child box if it is indeed a child and adjusts the index of subsequent children.private void
FlowingColumnContainerBox.reposition
(Box box, int xAdjust, int yAdjust) void
Box.setContainingBlock
(Box containingBlock) void
void
BlockBox.setStaticEquivalent
(Box staticEquivalent) Method parameters in com.openhtmltopdf.render with type arguments of type BoxModifier and TypeMethodDescriptionvoid
Box.addAllChildren
(List<Box> children) void
InlineLayoutBox.addAllChildren
(List<? super Box> list, Layer layer) void
LineBox.addAllChildren
(List<? super Box> list, Layer layer) void
Add a break opportunity.private AnonymousBlockBox
InlineLayoutBox.addFollowingBlockBoxes
(BlockBox container, List<Box> result) private void
InlineLayoutBox.addToContentList
(List<Box> list) Box.ancestorsWhile
(Predicate<Box> predicate) Creates a list of ancestors by walking up the chain of parent, grandparent, etc.private boolean
InlineLayoutBox.containsEnd
(List<Box> result) protected void
Box.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.ColumnBreakOpportunity
private void
FlowingColumnContainerBox.repositionAncestors
(List<Box> ancestors, int xAdjust, int yAdjust) Constructors in com.openhtmltopdf.render with parameters of type BoxModifierConstructorDescriptionprivate
ColumnBreakOpportunity
(Box box, List<Box> ancestors) FlowingColumnBox
(Box parent) Constructor parameters in com.openhtmltopdf.render with type arguments of type BoxModifierConstructorDescriptionprivate
ChildIteratorOfType
(Iterator<Box> parent, Class<T> clazz) private
ColumnBreakOpportunity
(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 Box
PaintPopTransformLayer._master
private final Box
PaintPushTransformLayer._master
private final Box
PaintLayerBackgroundAndBorder.master
private final Box
PaintRootElementBackground.root
Methods 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 TypeMethodDescriptionboolean
PagedBoxCollector.AddBlockToShadowPage.add
(PagedBoxCollector collector, PagedBoxCollector.PageResult shadowPageResult, Box container, Shape clip, Layer layer) boolean
PagedBoxCollector.AddFloatToShadowPage.add
(PagedBoxCollector collector, PagedBoxCollector.PageResult shadowPageResult, Box container, Shape clip, Layer layer) boolean
PagedBoxCollector.AddInlineToShadowPage.add
(PagedBoxCollector collector, PagedBoxCollector.PageResult shadowPageResult, Box container, Shape clip, Layer layer) boolean
PagedBoxCollector.AddToShadowPage.add
(PagedBoxCollector collector, PagedBoxCollector.PageResult shadowPageResult, Box container, Shape clip, Layer layer) private void
PagedBoxCollector.addBlock
(Box container, PagedBoxCollector.PageResult pageResult) Adds block box to appropriate flat box lists.private void
PagedBoxCollector.addBlockToAll
(CssContext c, Layer layer, Box container, int pgStart, int pgEnd, Shape ourClip, List<PagedBoxCollector.PageResult> clipPages, boolean includeShadowPages) private void
PagedBoxCollector.addBlockToShadowPage
(CssContext c, Layer layer, Box container, int pgStart, int pgEnd, Shape ourClip, List<PagedBoxCollector.PageResult> clipPages, int shadowPageNumber) private void
PagedBoxCollector.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 void
PagedBoxCollector.addTableHeaderFooter
(CssContext c, Layer layer, Box container, int shadowPageNumber) protected void
DisplayListCollector.addTransformItem
(Box master, List<PagedBoxCollector.PageInfo> pages, DisplayListContainer dlPages) private static void
TransformCreator.applyTransformFunctions
(float flipFactor, List<PropertyValue> transformList, AffineTransform result, Box box, CssContext ctx) private boolean
PagedBoxCollector.boxIntersects
(CssContext c, Shape clip, Box box, Rectangle boxBounds) void
PagedBoxCollector.collect
(CssContext c, Layer layer, Box container, int shadowPageNumber) The main box collection method.void
PagedBoxCollector.collect
(CssContext c, Layer layer, Box container, int pgStart, int pgEnd, int shadowPageNumber) static AffineTransform
TransformCreator.createDocumentCoordinatesTransform
(Box master, CssContext c, AffineTransform _parentCtm) Creates an absolute transform in document coordinates.static AffineTransform
TransformCreator.createPageCoordinatesTranform
(RenderingContext c, Box box, PageBox page, int shadowPageNumber) Creates a transform that can be applied to a page, either PDF or Java2D.static AffineTransform
TransformCreator.createPageMarginCoordinatesTransform
(RenderingContext c, Box box, PageBox page, int xTranslate, int yTranslate) private static void
TransformCreator.createTransform
(CssContext c, Box box, PageBox page, AffineTransform result, TransformCreator.TransformYOrigin transformYOrigin, int shadowPageNumber) page
may be null in the case thattransformYOrigin
isDOCUMENT_TOP
.static Rectangle
PagedBoxCollector.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 Rectangle
PagedBoxCollector.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 int
PagedBoxCollector.findEndPage
(CssContext c, Box container, AffineTransform transform) static int
PagedBoxCollector.findEndPage
(CssContext c, Box container, List<PageBox> pages) protected int
PagedBoxCollector.findStartPage
(CssContext c, Box container, AffineTransform transform) static int
PagedBoxCollector.findStartPage
(CssContext c, Box container, List<PageBox> pages) private static Rectangle
PagedBoxCollector.getBoxRect
(CssContext c, Box container) private static float
TransformCreator.getPageTranslateX
(float absTranslateX, int shadowPageNumber, PageBox page, CssContext c, Box box) private boolean
PagedBoxCollector.intersectsAggregateBounds
(CssContext c, Shape clip, Box box) private boolean
PagedBoxCollector.intersectsAny
(CssContext c, Shape clip, Box master, Box container) private boolean
PagedBoxCollector.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 void
DisplayListPainter.popTransform
(RenderingContext c, Box master) private void
DisplayListPainter.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 boolean
SimpleBoxCollector.addBlockToLists
(RenderingContext c, Layer layer, Box container, Shape ourClip) Adds block box to appropriate flat box lists.void
SimpleBoxCollector.collect
(RenderingContext c, Layer layer, Box container) private void
SimplePainter.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 Point
BatikSVGImage.parseDimensions
(Element e, Box box, CssContext ctx) private Integer
BatikSVGImage.parseLength
(String attrValue, CSSName property, Box box, CssContext ctx) private Point
BatikSVGImage.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 Box
DescendantBoxSpliterator.current()
static Box
BoxUtil.getBodyBoxOrSomething
(Box root) static Box
BoxUtil.getBodyOrNull
(Box root) Looks at the direct children of root to find one with an element with node name body.private Box
DescendantBoxSpliterator.getNext()
private Box
DescendantBoxSpliterator.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 void
static String
LambdaUtil.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 String
LambdaUtil.boxDescription
(Box box) Null-safe box description including object id, layer, containing layer and impl class.static String
LambdaUtil.descendantDump
(Box root) Creates an indented dump of the box tree.private static void
LambdaUtil.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 Box
BoxUtil.getBodyBoxOrSomething
(Box root) static Box
BoxUtil.getBodyOrNull
(Box root) Looks at the direct children of root to find one with an element with node name body.private boolean
DescendantBoxSpliterator.hasChildren
(Box bx) private static boolean
Method parameters in com.openhtmltopdf.util with type arguments of type BoxModifier and TypeMethodDescriptionboolean
DescendantBoxSpliterator.tryAdvance
(Consumer<? super Box> action) Constructors in com.openhtmltopdf.util with parameters of type Box