Uses of Class
com.openhtmltopdf.render.Box
-
-
Uses of Box in com.openhtmltopdf.css.style
Methods in com.openhtmltopdf.css.style with parameters of type Box Modifier and Type Method Description static 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 Box Modifier and Type Method Description SVGDrawer.SVGImage
SVGDrawer. buildSVGImage(org.w3c.dom.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)
java.lang.Object
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 Box Modifier and Type Method Description java.lang.Object
Java2DOutputDevice. startStructure(StructureType type, Box box)
Constructors in com.openhtmltopdf.java2d with parameters of type Box Constructor Description Java2DSVGReplacedElement(org.w3c.dom.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 Box Modifier and Type Field Description private Box
Layer. _end
private Box
FloatManager. _master
private Box
Layer. _master
private Box
VerticalAlignContext.ChildContextData. _root
private Box
Layer. _selectionEnd
private Box
Layer. _selectionStart
Fields in com.openhtmltopdf.layout with type parameters of type Box Modifier and Type Field Description private java.util.Map<java.lang.String,Box>
SharedContext. idMap
Methods in com.openhtmltopdf.layout that return Box Modifier and Type Method Description Box
Layer. find(CssContext cssCtx, int absX, int absY, boolean findAnonymous)
Deprecated.private Box
Layer. find(CssContext cssCtx, int absX, int absY, java.util.List<Layer> layers, boolean findAnonymous)
Deprecated.Box
SharedContext. getBoxById(java.lang.String id)
Box
Layer. getEnd()
Box
FloatManager. getMaster()
Box
Layer. getMaster()
Box
Layer. getSelectionEnd()
Box
Layer. getSelectionStart()
Methods in com.openhtmltopdf.layout that return types with arguments of type Box Modifier and Type Method Description java.util.Map<java.lang.String,Box>
SharedContext. getIdMap()
Methods in com.openhtmltopdf.layout with parameters of type Box Modifier and Type Method Description void
LayoutContext. addBoxId(java.lang.String id, Box box)
void
SharedContext. addBoxId(java.lang.String id, Box box)
private static void
InlineBoxing. alignInlineContent(LayoutContext c, Box box, float ascent, float descent, VerticalAlignContext vaContext)
private void
FloatManager. applyLineHeightHack(CssContext cssCtx, Box line, java.awt.Rectangle bounds)
protected java.util.List<java.awt.geom.AffineTransform>
Layer. applyTranform(RenderingContext c, Box box)
Deprecated.static java.util.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, java.awt.Shape clip, Layer layer, Box container, java.util.List<Box> blockContent, java.util.List<Box> inlineContent, BoxRangeLists rangeLists)
private static void
BoxBuilder. createAnonymousBlock(SharedContext c, Box parent, java.util.List<Styleable> inline, java.util.List<InlineBox> savedParents)
private static void
BoxBuilder. createAnonymousBlock(SharedContext c, Box parent, java.util.List<Styleable> inline, java.util.List<InlineBox> savedParents, IdentValue display)
VerticalAlignContext
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)
PageBox
Layer. getFirstPage(CssContext c, Box box)
private static InlineBoxMeasurements
InlineBoxing. getInitialMeasurements(LayoutContext c, Box container, FSFontMetrics strutM)
PageBox
Layer. getLastPage(CssContext c, Box box)
private static void
BoxBuilder. insertAnonymousBlocks(SharedContext c, Box parent, java.util.List<Styleable> children, boolean layoutRunningBlocks)
private boolean
BoxCollector. intersectsAggregateBounds(java.awt.Shape clip, Box box)
boolean
BoxCollector. intersectsAny(CssContext c, java.awt.Shape clip, Box master)
private boolean
BoxCollector. intersectsAny(CssContext c, java.awt.Shape clip, Box master, Box container)
private void
FloatManager. moveClear(CssContext cssCtx, BlockFormattingContext bfc, Box current, java.util.List<FloatManager.BoxOffset> floats)
private void
FloatManager. moveFloatBelow(CssContext cssCtx, BlockFormattingContext bfc, Box current, java.util.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
FloatManager.FloatOperation. operate(Box floater)
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
LayoutContext. pushLayer(Box master)
void
LayoutContext. pushLayerIsolated(Box master)
private void
BoxCollector. saveRangeData(CssContext c, Box container, java.util.List<Box> blockContent, java.util.List<Box> inlineContent, BoxRangeLists rangeLists, boolean isBlock, int blockStart, int inlineStart, int blockRangeStart, int inlineRangeStart)
void
Layer. setEnd(Box end)
void
Layer. setSelectionEnd(Box selectionEnd)
void
Layer. setSelectionStart(Box selectionStart)
Method parameters in com.openhtmltopdf.layout with type arguments of type Box Modifier and Type Method Description void
BoxCollector. collect(CssContext c, java.awt.Shape clip, Layer layer, Box container, java.util.List<Box> blockContent, java.util.List<Box> inlineContent, BoxRangeLists rangeLists)
void
BoxCollector. collect(CssContext c, java.awt.Shape clip, Layer layer, java.util.List<Box> blockContent, java.util.List<Box> inlineContent, BoxRangeLists rangeLists)
private java.util.Map<TableCellBox,java.util.List<CollapsedBorderSide>>
Layer. collectCollapsedTableBorders(RenderingContext c, java.util.List<Box> blocks)
Deprecated.private void
BoxCollector. collectInlineLayer(CssContext c, java.awt.Shape clip, Layer layer, java.util.List<Box> blockContent, java.util.List<Box> inlineContent, BoxRangeLists rangeLists)
private void
Layer. paintBackgroundsAndBorders(RenderingContext c, java.util.List<Box> blocks, java.util.Map<TableCellBox,java.util.List<CollapsedBorderSide>> collapsedTableBorders, BoxRangeLists rangeLists)
Deprecated.private void
Layer. paintInlineContent(RenderingContext c, java.util.List<Box> lines, BoxRangeLists rangeLists)
Deprecated.private void
Layer. paintListMarkers(RenderingContext c, java.util.List<Box> blocks, BoxRangeLists rangeLists)
Deprecated.private void
Layer. paintReplacedElements(RenderingContext c, java.util.List<Box> blocks, BoxRangeLists rangeLists)
Deprecated.private void
Layer. paintSelection(RenderingContext c, java.util.List<Box> lines)
Deprecated.private static java.lang.Integer
BlockBoxing. processPageBreakAvoidRun(LayoutContext c, BlockBox block, java.util.List<Box> localChildren, int offset, BlockBoxing.AbstractRelayoutDataList relayoutDataList, BlockBox childBox)
private static int
BlockBoxing. relayoutRun(LayoutContext c, java.util.List<Box> localChildren, BlockBox block, BlockBoxing.AbstractRelayoutDataList relayoutDataList, int start, int end, boolean onNewPage)
private void
BoxCollector. saveRangeData(CssContext c, Box container, java.util.List<Box> blockContent, java.util.List<Box> inlineContent, BoxRangeLists rangeLists, boolean isBlock, int blockStart, int inlineStart, int blockRangeStart, int inlineRangeStart)
Constructors in com.openhtmltopdf.layout with parameters of type Box Constructor Description ChildContextData(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.newtable Modifier and Type Class Description class
TableBox
class
TableCellBox
class
TableRowBox
class
TableSectionBox
-
Uses of Box in com.openhtmltopdf.pdfboxout
Fields in com.openhtmltopdf.pdfboxout declared as Box Modifier and Type Field Description private Box
PdfBoxFastLinkManager. _root
private Box
PdfBoxFastOutputDevice. _root
private Box
PdfBoxLinkManager. _root
Deprecated.private Box
PdfBoxSlowOutputDevice. _root
private Box
PdfBoxAccessibilityHelper. _rootBox
(package private) Box
PdfBoxAccessibilityHelper.AbstractStructualElement. box
(package private) Box
PdfBoxFastLinkManager.LinkDetails. box
Box
PdfBoxForm.Control. box
(package private) Box
PdfBoxLinkManager.LinkDetails. box
Methods in com.openhtmltopdf.pdfboxout that return types with arguments of type Box Modifier and Type Method Description private PagePosition<Box>
PdfBoxFastOutputDevice. calcPDFPagePosition(CssContext c, java.lang.String id, Box box)
private PagePosition<Box>
PdfBoxSlowOutputDevice. calcPDFPagePosition(CssContext c, java.lang.String id, Box box)
java.util.List<PagePosition<Box>>
PdfBoxFastOutputDevice. findPagePositionsByID(CssContext c, java.util.regex.Pattern pattern)
java.util.List<PagePosition<Box>>
PdfBoxOutputDevice. findPagePositionsByID(CssContext c, java.util.regex.Pattern pattern)
java.util.List<PagePosition<Box>>
PdfBoxRenderer. findPagePositionsByID(java.util.regex.Pattern pattern)
java.util.List<PagePosition<Box>>
PdfBoxSlowOutputDevice. findPagePositionsByID(CssContext c, java.util.regex.Pattern pattern)
Methods in com.openhtmltopdf.pdfboxout with parameters of type Box Modifier and Type Method Description void
PdfBoxPerDocumentFormState. addControlIfRequired(Box box, org.apache.pdfbox.pdmodel.PDPage page, java.awt.geom.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, java.awt.geom.AffineTransform transform, org.w3c.dom.Element elem, NamespaceHandler handler, java.lang.String uri, java.awt.Shape linkShape)
private void
PdfBoxLinkManager. addUriAsLink(RenderingContext c, Box box, org.apache.pdfbox.pdmodel.PDPage page, float pageHeight, java.awt.geom.AffineTransform transform, org.w3c.dom.Element elem, NamespaceHandler handler, java.lang.String uri, java.awt.Shape linkShape)
Deprecated.private PagePosition<Box>
PdfBoxFastOutputDevice. calcPDFPagePosition(CssContext c, java.lang.String id, Box box)
private PagePosition<Box>
PdfBoxSlowOutputDevice. calcPDFPagePosition(CssContext c, java.lang.String id, Box box)
private java.awt.geom.Rectangle2D
PdfBoxFastLinkManager. calcTotalLinkArea(RenderingContext c, Box box, float pageHeight, java.awt.geom.AffineTransform transform)
private java.awt.geom.Rectangle2D
PdfBoxLinkManager. calcTotalLinkArea(RenderingContext c, Box box, float pageHeight, java.awt.geom.AffineTransform transform)
Deprecated.private java.awt.geom.Rectangle2D
PdfBoxFastLinkManager. checkLinkArea(org.apache.pdfbox.pdmodel.PDPage page, RenderingContext c, Box box, float pageHeight, java.awt.geom.AffineTransform transform, java.awt.Shape linkShape)
private java.awt.geom.Rectangle2D
PdfBoxLinkManager. checkLinkArea(org.apache.pdfbox.pdmodel.PDPage page, RenderingContext c, Box box, float pageHeight, java.awt.geom.AffineTransform transform, java.awt.Shape linkShape)
Deprecated.private java.lang.String
PdfBoxAccessibilityHelper.GenericStructualElement. chooseTag(Box box)
static PdfBoxPDFReplacedElement
PdfBoxPDFReplacedElement. create(org.apache.pdfbox.pdmodel.PDDocument target, byte[] pdfBytes, org.w3c.dom.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.private PdfBoxAccessibilityHelper.FigureContentItem
PdfBoxAccessibilityHelper. createFigureContentStructureItem(StructureType type, Box box)
private PdfBoxAccessibilityHelper.GenericContentItem
PdfBoxAccessibilityHelper. createListItemLabelMarkedContent(StructureType type, Box box)
private PdfBoxAccessibilityHelper.GenericContentItem
PdfBoxAccessibilityHelper. createMarkedContentStructureItem(StructureType type, Box box)
private org.apache.pdfbox.cos.COSDictionary
PdfBoxAccessibilityHelper. createPaginationArtifact(StructureType type, Box box)
private PdfBoxAccessibilityHelper.AbstractStructualElement
PdfBoxAccessibilityHelper. createStructureItem(StructureType type, Box box)
static java.awt.geom.Rectangle2D
PdfBoxFastLinkManager. createTargetArea(RenderingContext c, Box box, float pageHeight, java.awt.geom.AffineTransform transform, Box _root, PdfBoxOutputDevice _od)
static java.awt.geom.Rectangle2D
PdfBoxLinkManager. createTargetArea(RenderingContext c, Box box, float pageHeight, java.awt.geom.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 java.lang.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, java.awt.geom.AffineTransform transform)
private void
PdfBoxLinkManager. processLink(RenderingContext c, Box box, org.apache.pdfbox.pdmodel.PDPage page, float pageHeight, java.awt.geom.AffineTransform transform)
Deprecated.void
PdfBoxFastLinkManager. processLinkLater(RenderingContext c, Box box, org.apache.pdfbox.pdmodel.PDPage page, float pageHeight, java.awt.geom.AffineTransform transform)
void
PdfBoxLinkManager. processLinkLater(RenderingContext c, Box box, org.apache.pdfbox.pdmodel.PDPage page, float pageHeight, java.awt.geom.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(java.util.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
PdfBoxFastOutputDevice. setRoot(Box root)
void
PdfBoxOutputDevice. setRoot(Box root)
void
PdfBoxSlowOutputDevice. setRoot(Box root)
private void
PdfBoxAccessibilityHelper. setupStructureElement(PdfBoxAccessibilityHelper.AbstractStructualElement child, Box box)
PdfBoxAccessibilityHelper.Token
PdfBoxAccessibilityHelper. startStructure(StructureType type, Box box)
java.lang.Object
PdfBoxFastOutputDevice. startStructure(StructureType type, Box box)
java.lang.Object
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, java.util.List<PdfBoxBookmarkManager.Bookmark> bookmarks)
private void
PdfBoxSlowOutputDevice. writeBookmarks(RenderingContext c, Box root, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode parent, java.util.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 Box Constructor Description Control(Box box, org.apache.pdfbox.pdmodel.PDPage page, java.awt.geom.AffineTransform transform, RenderingContext c, float pageHeight)
PdfBoxAccessibilityHelper(PdfBoxFastOutputDevice od, Box root, org.w3c.dom.Document doc)
PdfBoxFastLinkManager(SharedContext ctx, float dotsPerPoint, Box root, PdfBoxFastOutputDevice od)
PdfBoxLinkManager(SharedContext ctx, float dotsPerPoint, Box root, PdfBoxOutputDevice od)
Deprecated.PdfBoxPDFReplacedElement(org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject srcForm, org.w3c.dom.Element e, Box box, CssContext ctx, SharedContext shared, float w, float h)
PdfBoxSVGReplacedElement(org.w3c.dom.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.render Modifier and Type Class Description class
AnonymousBlockBox
An anonymous block box as defined in the CSS spec.class
BlockBox
A block box as defined in the CSS spec.class
FlowingColumnBox
class
FlowingColumnContainerBox
class
InlineLayoutBox
ABox
which contains the portion of an inline element layed out on a single line.class
LineBox
A line box contains a single line of text (or other inline content).class
MarginBox
A dummy box representing one side of the margin area of a page.class
ViewportBox
A dummy box representing the viewportFields in com.openhtmltopdf.render declared as Box Modifier and Type Field Description private Box
Box. _containingBlock
private Box
Box. _parent
private Box
BlockBox. _staticEquivalent
private Box
FlowingColumnContainerBox.ColumnBreakOpportunity. box
private Box
FlowingColumnBox. parent
Fields in com.openhtmltopdf.render with type parameters of type Box Modifier and Type Field Description private java.util.List<Box>
Box. _boxes
private java.util.List<Box>
LineBox. _nonFlowContent
private java.util.List<Box>
FlowingColumnContainerBox.ColumnBreakOpportunity. ancestors
private java.util.Iterator<Box>
Box.ChildIteratorOfType. iter
private java.util.Set<Box>
FlowingColumnContainerBox.ColumnBreakStore. processedContainers
Methods in com.openhtmltopdf.render that return Box Modifier and Type Method Description Box
AnonymousBlockBox. find(CssContext cssCtx, int absX, int absY, boolean findAnonymous)
Box
Box. find(CssContext cssCtx, int absX, int absY, boolean findAnonymous)
Box
InlineLayoutBox. find(CssContext cssCtx, int absX, int absY, boolean findAnonymous)
Box
LineBox. find(CssContext cssCtx, int absX, int absY, boolean findAnonymous)
Box
Box. findAncestor(java.util.function.Predicate<Box> predicate)
Walks up the ancestor tree to the root testing ancestors agains the predicate.Box
RenderingContext. getBoxById(java.lang.String id)
Box
Box. getChild(int i)
private Box
Box. getClipParent()
Box
Box. getContainingBlock()
Box
BlockBox. getDocumentParent()
Box
Box. getDocumentParent()
protected Box
Box. getNext(Box child)
protected Box
InlineLayoutBox. getNext(Box child)
Box
Box. getNextSibling()
Box
Box. getParent()
Box
FlowingColumnBox. getParent()
protected Box
Box. getPrevious(Box child)
protected Box
InlineLayoutBox. getPrevious(Box child)
Box
Box. getPreviousSibling()
Box
BlockBox. getStaticEquivalent()
Box
Box. rootBox()
Returns the highest ancestor box.Methods in com.openhtmltopdf.render that return types with arguments of type Box Modifier and Type Method Description java.util.List<Box>
Box. ancestors()
Get all ancestors, up until the root box.java.util.List<Box>
Box. ancestorsWhile(java.util.function.Predicate<Box> predicate)
Creates a list of ancestors by walking up the chain of parent, grandparent, etc.java.util.Iterator<Box>
Box. getChildIterator()
java.util.List<Box>
Box. getChildren()
java.util.List<Box>
Box. getElementBoxes(org.w3c.dom.Element elem)
java.util.List<Box>
InlineLayoutBox. getElementBoxes(org.w3c.dom.Element elem)
java.util.List<Box>
InlineLayoutBox. getElementWithContent()
java.util.List<Box>
LineBox. getNonFlowContent()
Methods in com.openhtmltopdf.render with parameters of type Box Modifier and Type Method Description void
FlowingColumnContainerBox.ColumnBreakStore. addBreak(Box box, java.util.List<Box> ancestors)
Add a break opportunity.void
Box. addChild(Box child)
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
Box. getNext(Box child)
protected Box
InlineLayoutBox. getNext(Box child)
protected Box
Box. getPrevious(Box child)
protected Box
InlineLayoutBox. getPrevious(Box child)
private boolean
InlineLayoutBox. isEndingBox(Box b)
(package private) static FlowingColumnContainerBox.ColumnBreakOpportunity
FlowingColumnContainerBox.ColumnBreakOpportunity. of(Box box, java.util.List<Box> ancestors)
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
Box. setParent(Box box)
void
BlockBox. setStaticEquivalent(Box staticEquivalent)
Method parameters in com.openhtmltopdf.render with type arguments of type Box Modifier and Type Method Description void
Box. addAllChildren(java.util.List<Box> children)
void
InlineLayoutBox. addAllChildren(java.util.List<? super Box> list, Layer layer)
void
LineBox. addAllChildren(java.util.List<? super Box> list, Layer layer)
void
FlowingColumnContainerBox.ColumnBreakStore. addBreak(Box box, java.util.List<Box> ancestors)
Add a break opportunity.private AnonymousBlockBox
InlineLayoutBox. addFollowingBlockBoxes(BlockBox container, java.util.List<Box> result)
private void
InlineLayoutBox. addToContentList(java.util.List<Box> list)
java.util.List<Box>
Box. ancestorsWhile(java.util.function.Predicate<Box> predicate)
Creates a list of ancestors by walking up the chain of parent, grandparent, etc.private boolean
InlineLayoutBox. containsEnd(java.util.List<Box> result)
protected void
Box. dumpBoxes(LayoutContext c, java.lang.String indent, java.util.List<Box> boxes, int which, java.lang.StringBuilder result)
Box
Box. findAncestor(java.util.function.Predicate<Box> predicate)
Walks up the ancestor tree to the root testing ancestors agains the predicate.(package private) static FlowingColumnContainerBox.ColumnBreakOpportunity
FlowingColumnContainerBox.ColumnBreakOpportunity. of(Box box, java.util.List<Box> ancestors)
private void
FlowingColumnContainerBox. repositionAncestors(java.util.List<Box> ancestors, int xAdjust, int yAdjust)
Constructors in com.openhtmltopdf.render with parameters of type Box Constructor Description ColumnBreakOpportunity(Box box, java.util.List<Box> ancestors)
FlowingColumnBox(Box parent)
Constructor parameters in com.openhtmltopdf.render with type arguments of type Box Constructor Description ChildIteratorOfType(java.util.Iterator<Box> parent, java.lang.Class<T> clazz)
ColumnBreakOpportunity(Box box, java.util.List<Box> ancestors)
-
Uses of Box in com.openhtmltopdf.render.displaylist
Fields in com.openhtmltopdf.render.displaylist declared as Box Modifier and Type Field Description private Box
PaintPopTransformLayer. _master
private Box
PaintPushTransformLayer. _master
private Box
PaintLayerBackgroundAndBorder. master
private Box
PaintRootElementBackground. root
Methods in com.openhtmltopdf.render.displaylist that return Box Modifier and Type Method Description Box
PaintLayerBackgroundAndBorder. getMaster()
Box
PaintPopTransformLayer. getMaster()
Box
PaintPushTransformLayer. getMaster()
Box
PaintRootElementBackground. getRoot()
Methods in com.openhtmltopdf.render.displaylist with parameters of type Box Modifier and Type Method Description boolean
PagedBoxCollector.AddBlockToShadowPage. add(PagedBoxCollector collector, PagedBoxCollector.PageResult shadowPageResult, Box container, java.awt.Shape clip, Layer layer)
boolean
PagedBoxCollector.AddFloatToShadowPage. add(PagedBoxCollector collector, PagedBoxCollector.PageResult shadowPageResult, Box container, java.awt.Shape clip, Layer layer)
boolean
PagedBoxCollector.AddInlineToShadowPage. add(PagedBoxCollector collector, PagedBoxCollector.PageResult shadowPageResult, Box container, java.awt.Shape clip, Layer layer)
boolean
PagedBoxCollector.AddToShadowPage. add(PagedBoxCollector collector, PagedBoxCollector.PageResult shadowPageResult, Box container, java.awt.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, java.awt.Shape ourClip, java.util.List<PagedBoxCollector.PageResult> clipPages, boolean includeShadowPages)
private void
PagedBoxCollector. addBlockToShadowPage(CssContext c, Layer layer, Box container, int pgStart, int pgEnd, java.awt.Shape ourClip, java.util.List<PagedBoxCollector.PageResult> clipPages, int shadowPageNumber)
private void
PagedBoxCollector. addBoxToShadowPages(CssContext c, Box container, int pageNumber, PagedBoxCollector.PageResult pageResult, java.awt.Shape ourClip, java.util.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, java.util.List<PagedBoxCollector.PageInfo> pages, DisplayListContainer dlPages)
private static void
TransformCreator. applyTransformFunctions(float flipFactor, java.util.List<PropertyValue> transformList, java.awt.geom.AffineTransform result, Box box, CssContext ctx)
private boolean
PagedBoxCollector. boxIntersects(CssContext c, java.awt.Shape clip, Box box, java.awt.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 java.awt.geom.AffineTransform
TransformCreator. createDocumentCoordinatesTransform(Box master, CssContext c, java.awt.geom.AffineTransform _parentCtm)
Creates an absolute transform in document coordinates.static java.awt.geom.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 java.awt.geom.AffineTransform
TransformCreator. createPageMarginCoordinatesTransform(RenderingContext c, Box box, PageBox page, int xTranslate, int yTranslate)
private static void
TransformCreator. createTransform(CssContext c, Box box, PageBox page, java.awt.geom.AffineTransform result, TransformCreator.TransformYOrigin transformYOrigin, int shadowPageNumber)
page
may be null in the case thattransformYOrigin
isDOCUMENT_TOP
.static java.awt.Rectangle
PagedBoxCollector. findAdjustedBoundsForBorderBox(CssContext c, Box container, java.util.List<PageBox> pages)
Finds the document coordinates border box bounds of a box adjusted for transform and clipped according to overflow hidden.static java.awt.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, java.awt.geom.AffineTransform transform)
static int
PagedBoxCollector. findEndPage(CssContext c, Box container, java.util.List<PageBox> pages)
protected int
PagedBoxCollector. findStartPage(CssContext c, Box container, java.awt.geom.AffineTransform transform)
static int
PagedBoxCollector. findStartPage(CssContext c, Box container, java.util.List<PageBox> pages)
private static java.awt.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, java.awt.Shape clip, Box box)
private boolean
PagedBoxCollector. intersectsAny(CssContext c, java.awt.Shape clip, Box master, Box container)
private boolean
PagedBoxCollector. intersectsBorderBoxBounds(CssContext c, java.awt.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 Box Constructor Description PaintLayerBackgroundAndBorder(Box master)
PaintPopTransformLayer(Box master)
PaintPushTransformLayer(Box master, int shadowPage)
PaintRootElementBackground(Box root)
-
Uses of Box in com.openhtmltopdf.render.simplepainter
Methods in com.openhtmltopdf.render.simplepainter with parameters of type Box Modifier and Type Method Description private boolean
SimpleBoxCollector. addBlockToLists(RenderingContext c, Layer layer, Box container, java.awt.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 Box Modifier and Type Field Description private Box
PDFTranscoder. box
Methods in com.openhtmltopdf.svgsupport with parameters of type Box Modifier and Type Method Description SVGDrawer.SVGImage
BatikSVGDrawer. buildSVGImage(org.w3c.dom.Element svgElement, Box box, CssContext c, double cssWidth, double cssHeight, double dotsPerPixel)
private java.awt.Point
BatikSVGImage. parseDimensions(org.w3c.dom.Element e, Box box, CssContext ctx)
private java.lang.Integer
BatikSVGImage. parseLength(java.lang.String attrValue, CSSName property, Box box, CssContext ctx)
private java.awt.Point
BatikSVGImage. parseWidthHeightAttributes(org.w3c.dom.Element e, Box box, CssContext ctx)
Constructors in com.openhtmltopdf.svgsupport with parameters of type Box Constructor Description BatikSVGImage(org.w3c.dom.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 Box Modifier and Type Field Description private java.util.Deque<Box>
DescendantBoxSpliterator. unprocessed
Methods in com.openhtmltopdf.util that return Box Modifier and Type Method Description private 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(java.util.List<? extends java.lang.Object> inlineChilds)
Methods in com.openhtmltopdf.util that return types with arguments of type Box Modifier and Type Method Description static java.util.stream.Stream<Box>
LambdaUtil. ancestors(Box bx)
Null-safe way to look up the ancestor tree as a stream.static java.util.stream.Stream<Box>
LambdaUtil. descendants(Box parent)
A stream of all descendant boxes not including InlineText or InlineBox objects.static java.util.List<Box>
LambdaUtil. descendantsList(Box parent)
java.util.Spliterator<Box>
DescendantBoxSpliterator. trySplit()
Methods in com.openhtmltopdf.util with parameters of type Box Modifier and Type Method Description private void
DescendantBoxSpliterator. add(Box bx)
static java.lang.String
LambdaUtil. ancestorDump(Box bx)
Ancestor dump to string including starting box and referenced layers.static java.util.stream.Stream<Box>
LambdaUtil. ancestors(Box bx)
Null-safe way to look up the ancestor tree as a stream.static java.lang.String
LambdaUtil. boxDescription(Box box)
Null-safe box description including object id, layer, containing layer and impl class.static java.lang.String
LambdaUtil. descendantDump(Box root)
Creates an indented dump of the box tree.private static void
LambdaUtil. descendantDump(Box parent, int indent, java.util.List<LambdaUtil.DescendantContent> out)
static java.util.stream.Stream<Box>
LambdaUtil. descendants(Box parent)
A stream of all descendant boxes not including InlineText or InlineBox objects.static java.util.List<Box>
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
BoxUtil. isBody(Box child)
Method parameters in com.openhtmltopdf.util with type arguments of type Box Modifier and Type Method Description boolean
DescendantBoxSpliterator. tryAdvance(java.util.function.Consumer<? super Box> action)
Constructors in com.openhtmltopdf.util with parameters of type Box Constructor Description DescendantBoxSpliterator(Box parent)
-