Uses of Class
com.openhtmltopdf.layout.Layer
Packages that use Layer
Package
Description
-
Uses of Layer in com.openhtmltopdf.layout
Fields in com.openhtmltopdf.layout declared as LayerModifier and TypeFieldDescriptionprivate Layer
Layer._parent
private Layer
LayoutContext._rootDocumentLayer
private Layer
LayoutContext._rootLayer
Fields in com.openhtmltopdf.layout with type parameters of type LayerMethods in com.openhtmltopdf.layout that return LayerModifier and TypeMethodDescriptionLayer.findRoot()
LayoutContext.getLayer()
Layer.getParent()
LayoutContext.getRootDocumentLayer()
LayoutContext.getRootLayer()
Methods in com.openhtmltopdf.layout that return types with arguments of type LayerModifier and TypeMethodDescriptionLayer.collectLayers
(int which) Called recusively to collect all descendant layers in a layer tree so they can be painted in correct order.Layer.getChildren()
The resulting list should not be modified.Layer.getSortedLayers
(int which) Layer.getStackingContextLayers
(int which) Methods in com.openhtmltopdf.layout with parameters of type LayerModifier and TypeMethodDescriptionvoid
void
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 void
BoxCollector.collectInlineLayer
(CssContext c, Shape clip, Layer layer, List<Box> blockContent, List<Box> inlineContent, BoxRangeLists rangeLists) void
FloatManager.floatBox
(LayoutContext c, Layer layer, BlockFormattingContext bfc, BlockBox box) private void
Layer.layoutAbsoluteChild
(LayoutContext c, Layer child) void
private void
private void
FloatManager.save
(BlockBox current, Layer layer, BlockFormattingContext bfc, FloatManager.FloatDirection direction) void
LayoutContext.setRootDocumentLayer
(Layer rootDocumentLayer) Method parameters in com.openhtmltopdf.layout with type arguments of type LayerModifier and TypeMethodDescriptionprivate Box
Layer.find
(CssContext cssCtx, int absX, int absY, List<Layer> layers, boolean findAnonymous) Deprecated.private static void
InlineBoxing.finishPendingInlineLayers
(LayoutContext c, List<Layer> layers) private void
Layer.paintLayers
(RenderingContext c, List<Layer> layers) Deprecated.Constructors in com.openhtmltopdf.layout with parameters of type LayerModifierConstructorDescriptionLayer
(Layer parent, Box master, CssContext c) Creates a child layer. -
Uses of Layer in com.openhtmltopdf.pdfboxout
Methods in com.openhtmltopdf.pdfboxout that return types with arguments of type LayerModifier and TypeMethodDescriptionprivate List
<PagePosition<Layer>> PdfBoxRenderer.getLayerPagePositions
(Layer layer, List<PageBox> pages, RenderingContext ctx) PdfBoxRenderer.getLayerPositions
(Layer layer) Returns a list of page positions for a single layer.PdfBoxRenderer.getLayersPositions()
Returns a list of page positions for all layers in the document.Methods in com.openhtmltopdf.pdfboxout with parameters of type LayerModifier and TypeMethodDescriptionprivate int
PdfBoxRenderer.findEndPage
(RenderingContext c, Layer layer, List<PageBox> pages) Returns the end page number for a layer.private int
PdfBoxRenderer.findStartPage
(RenderingContext c, Layer layer, List<PageBox> pages) Returns the start page for a layer.private List
<PagePosition<Layer>> PdfBoxRenderer.getLayerPagePositions
(Layer layer, List<PageBox> pages, RenderingContext ctx) PdfBoxRenderer.getLayerPositions
(Layer layer) Returns a list of page positions for a single layer. -
Uses of Layer in com.openhtmltopdf.render
Fields in com.openhtmltopdf.render declared as LayerModifier and TypeFieldDescriptionprivate Layer
Box._containingLayer
private Layer
FloatedBoxData._drawingLayer
private Layer
Box._layer
private Layer
RenderingContext.rootLayer
Methods in com.openhtmltopdf.render that return LayerModifier and TypeMethodDescriptionBox.getContainingLayer()
FloatedBoxData.getDrawingLayer()
Box.getLayer()
RenderingContext.getRootLayer()
Methods in com.openhtmltopdf.render with parameters of type LayerModifier and TypeMethodDescriptionvoid
InlineLayoutBox.addAllChildren
(List<? super Box> list, Layer layer) void
LineBox.addAllChildren
(List<? super Box> list, Layer layer) private Rectangle
Box.calcClipBox
(RenderingContext c, Layer layer) Box.getClipBox
(RenderingContext c, Layer layer) Gets the combined clip of this box relative to the containing layer.Box.getParentClipBox
(RenderingContext c, Layer layer) Gets the layer relative clip for the parent box.void
Box.setContainingLayer
(Layer containingLayer) void
FloatedBoxData.setDrawingLayer
(Layer drawingLayer) void
void
RenderingContext.setRootLayer
(Layer rootLayer) -
Uses of Layer in com.openhtmltopdf.render.displaylist
Fields in com.openhtmltopdf.render.displaylist declared as LayerMethods in com.openhtmltopdf.render.displaylist that return LayerMethods in com.openhtmltopdf.render.displaylist with parameters of type LayerModifier 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.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.addLineBoxToAll
(CssContext c, Layer layer, LineBox container, int basePageNumber, boolean includeShadowPages) Adds a line box to the base page if needed and any shadow pages as needed.private void
PagedBoxCollector.addLineBoxToShadowPage
(CssContext c, Layer layer, LineBox container, int basePageNumber, int shadowPageNumber) private void
PagedBoxCollector.addTableHeaderFooter
(CssContext c, Layer layer, Box container, int shadowPageNumber) protected void
DisplayListCollector.collect
(RenderingContext c, Layer layer, DisplayListContainer dlPages, Set<DisplayListCollector.CollectFlags> flags) The main method to create a list of paint instruction for each page.void
PagedBoxCollector.collect
(CssContext c, Layer layer) 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) private void
DisplayListCollector.collectFloatAsLayer
(RenderingContext c, Layer layer, BlockBox floater, DisplayListContainer.DisplayListPageContainer pageInstructions, int pageNumber, int shadowPageNumber) This method can be reached by two code paths:collectRoot -: collect -: processPage -: collectFloatAsLayer -: processPage collectRoot -: collect -: processShadowPages -: foreach(shadowPage) -: processPage -: collectFloatAsLayer -: processPage
Therefore, it is important to be careful when expecting a base page or shadow page.void
PagedBoxCollector.collectFloats
(CssContext c, Layer layer) private void
PagedBoxCollector.collectInline
(CssContext c, Layer layer) private void
DisplayListCollector.collectLayerBackgroundAndBorder
(RenderingContext c, Layer layer, DisplayListContainer dlPages, int pgStart, int pgEnd) private void
DisplayListCollector.collectReplacedElementLayer
(RenderingContext c, Layer layer, DisplayListContainer dlPages, int pgStart, int pgEnd) DisplayListCollector.collectRoot
(RenderingContext c, Layer rootLayer) Use this method to collect all boxes recursively into a list of paint instructions for each page.protected int
DisplayListCollector.findEndPage
(RenderingContext c, Layer layer) static List
<PagedBoxCollector.PageInfo> PagedBoxCollector.findLayerPages
(CssContext c, Layer layer, List<PageBox> pages) Returns the pages a layer appears on including inserted overflow pages.static Rectangle
PagedBoxCollector.findLayerRect
(CssContext c, Layer layer) protected int
DisplayListCollector.findStartPage
(RenderingContext c, Layer layer) private void
DisplayListPainter.paintFixed
(RenderingContext c, Layer layer) protected void
DisplayListCollector.processPage
(RenderingContext c, Layer layer, PagedBoxCollector.PageResult pg, DisplayListContainer.DisplayListPageContainer dlPageList, boolean includeFloats, int pageNumber, int shadowPageNumber) Convert a list of boxes to a list of paint instructions for a page.private void
DisplayListCollector.processShadowPages
(RenderingContext c, Layer layer, int pageNumber, PagedBoxCollector.PageResult pg, DisplayListContainer.DisplayListPageContainer dlPageList, boolean includeFloats) If we have cut-off boxes we have to process them as separate pages.Method parameters in com.openhtmltopdf.render.displaylist with type arguments of type LayerModifier and TypeMethodDescriptionprivate void
DisplayListCollector.collectLayers
(RenderingContext c, List<Layer> layers, DisplayListContainer dlPages, Set<DisplayListCollector.CollectFlags> flags) Constructors in com.openhtmltopdf.render.displaylist with parameters of type Layer -
Uses of Layer in com.openhtmltopdf.render.simplepainter
Methods in com.openhtmltopdf.render.simplepainter with parameters of type LayerModifier and TypeMethodDescriptionprivate boolean
SimpleBoxCollector.addBlockToLists
(RenderingContext c, Layer layer, Box container, Shape ourClip) Adds block box to appropriate flat box lists.private void
SimpleBoxCollector.addLineBox
(RenderingContext c, Layer layer, LineBox container) void
SimpleBoxCollector.collect
(RenderingContext c, Layer layer) void
SimpleBoxCollector.collect
(RenderingContext c, Layer layer, Box container) private void
SimpleBoxCollector.collectInline
(RenderingContext c, Layer layer) void
SimplePainter.paintLayer
(RenderingContext c, Layer layer) Method parameters in com.openhtmltopdf.render.simplepainter with type arguments of type LayerModifier and TypeMethodDescriptionprivate void
SimplePainter.paintLayers
(RenderingContext c, List<Layer> layers) -
Uses of Layer in com.openhtmltopdf.util
Methods in com.openhtmltopdf.util with parameters of type LayerModifier and TypeMethodDescriptionstatic String
LambdaUtil.layerDescription
(Layer layer) Null-safe layer description including object id, toString and master box description.