Class DisplayListCollector
java.lang.Object
com.openhtmltopdf.render.displaylist.DisplayListCollector
public class DisplayListCollector extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDisplayListCollector.CollectFlags -
Constructor Summary
Constructors Constructor Description DisplayListCollector(List<PageBox> pages) -
Method Summary
Modifier and Type Method Description protected voidaddItem(DisplayListOperation item, int pgStart, int pgEnd, DisplayListContainer dlPages)Adds a paint operation to a selection of pages, from pgStart to pgEnd inclusive.protected voidaddItem(DisplayListOperation item, List<PagedBoxCollector.PageInfo> pages, DisplayListContainer dlPages)protected voidaddTransformItem(Box master, List<PagedBoxCollector.PageInfo> pages, DisplayListContainer dlPages)protected voidcollect(RenderingContext c, Layer layer, DisplayListContainer dlPages, Set<DisplayListCollector.CollectFlags> flags)The main method to create a list of paint instruction for each page.static Map<TableCellBox,List<CollapsedBorderSide>>collectCollapsedTableBorders(RenderingContext c, List<TableCellBox> tcells)DisplayListContainer.DisplayListPageContainercollectInlineBlock(RenderingContext c, BlockBox bb, EnumSet<DisplayListCollector.CollectFlags> noneOf, int shadowPageNo)DisplayListContainercollectRoot(RenderingContext c, Layer rootLayer)Use this method to collect all boxes recursively into a list of paint instructions for each page.protected PagedBoxCollectorcreateBoundedBoxCollector(int pgStart, int pgEnd)protected intfindEndPage(RenderingContext c, Layer layer)protected intfindStartPage(RenderingContext c, Layer layer)protected voidprocessPage(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.
-
Constructor Details
-
Method Details
-
addItem
protected void addItem(DisplayListOperation item, int pgStart, int pgEnd, DisplayListContainer dlPages)Adds a paint operation to a selection of pages, from pgStart to pgEnd inclusive. -
addItem
protected void addItem(DisplayListOperation item, List<PagedBoxCollector.PageInfo> pages, DisplayListContainer dlPages) -
addTransformItem
protected void addTransformItem(Box master, List<PagedBoxCollector.PageInfo> pages, DisplayListContainer dlPages) -
collectRoot
Use this method to collect all boxes recursively into a list of paint instructions for each page. -
collect
protected void collect(RenderingContext c, Layer layer, DisplayListContainer dlPages, Set<DisplayListCollector.CollectFlags> flags)The main method to create a list of paint instruction for each page. -
processPage
protected void 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. -
collectCollapsedTableBorders
public static Map<TableCellBox,List<CollapsedBorderSide>> collectCollapsedTableBorders(RenderingContext c, List<TableCellBox> tcells) -
collectInlineBlock
public DisplayListContainer.DisplayListPageContainer collectInlineBlock(RenderingContext c, BlockBox bb, EnumSet<DisplayListCollector.CollectFlags> noneOf, int shadowPageNo) -
createBoundedBoxCollector
-
findStartPage
-
findEndPage
-