public class PagedBoxCollector extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PagedBoxCollector.PageFinder |
static class |
PagedBoxCollector.PageInfo |
static class |
PagedBoxCollector.PageResult |
| Modifier and Type | Field and Description |
|---|---|
static int |
PAGE_ALL
Add collected boxes to all pages, including inserted shadow pages.
|
static int |
PAGE_BASE_ONLY
Add collected items to base page only, ignoring inserted shadow pages.
|
| Constructor and Description |
|---|
PagedBoxCollector(List<PageBox> pages,
int minPage,
int maxPage)
A more efficient paged box collector that can only find boxes on pages minPage to
maxPage inclusive.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collect(CssContext c,
Layer layer) |
void |
collect(CssContext c,
Layer layer,
Box container,
int shadowPageNumber)
The main box collection method.
|
void |
collect(CssContext c,
Layer layer,
Box container,
int pgStart,
int pgEnd,
int shadowPageNumber) |
void |
collectFloats(CssContext c,
Layer layer) |
static Rectangle |
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 |
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 |
findEndPage(CssContext c,
Box container,
AffineTransform transform) |
static int |
findEndPage(CssContext c,
Box container,
List<PageBox> pages) |
protected int |
findEndPage(CssContext c,
Rectangle bounds,
AffineTransform transform) |
static List<PagedBoxCollector.PageInfo> |
findLayerPages(CssContext c,
Layer layer,
List<PageBox> pages)
Returns the pages a layer appears on including inserted overflow pages.
|
static Rectangle |
findLayerRect(CssContext c,
Layer layer) |
static int |
findPageForY(CssContext c,
double y,
List<PageBox> pages) |
protected int |
findStartPage(CssContext c,
Box container,
AffineTransform transform) |
static int |
findStartPage(CssContext c,
Box container,
List<PageBox> pages) |
protected int |
findStartPage(CssContext c,
Rectangle bounds,
AffineTransform transform) |
protected int |
getMaxPageNumber() |
protected int |
getMinPageNumber() |
protected PageBox |
getPageBox(int pageNo) |
protected PagedBoxCollector.PageResult |
getPageResult(int pageNo) |
static int |
getShadowPageForBounds(CssContext c,
Rectangle bounds,
PageBox page) |
protected int |
getValidMaxPageNumber(int pageNo) |
protected int |
getValidMinPageNumber(int pageNo) |
public static final int PAGE_BASE_ONLY
public static final int PAGE_ALL
public void collect(CssContext c, Layer layer)
public void collectFloats(CssContext c, Layer layer)
public void collect(CssContext c, Layer layer, Box container, int shadowPageNumber)
overflow:hiddenblocks.c - layer - container - public void collect(CssContext c, Layer layer, Box container, int pgStart, int pgEnd, int shadowPageNumber)
public static int findPageForY(CssContext c, double y, List<PageBox> pages)
public static int getShadowPageForBounds(CssContext c, Rectangle bounds, PageBox page)
public static Rectangle findAdjustedBoundsForBorderBox(CssContext c, Box container, List<PageBox> pages)
public static Rectangle findAdjustedBoundsForContentBox(CssContext c, Box container)
protected int findStartPage(CssContext c, Rectangle bounds, AffineTransform transform)
protected int findEndPage(CssContext c, Rectangle bounds, AffineTransform transform)
protected int findStartPage(CssContext c, Box container, AffineTransform transform)
protected int findEndPage(CssContext c, Box container, AffineTransform transform)
protected PagedBoxCollector.PageResult getPageResult(int pageNo)
protected int getMaxPageNumber()
protected int getMinPageNumber()
protected int getValidMinPageNumber(int pageNo)
protected int getValidMaxPageNumber(int pageNo)
protected PageBox getPageBox(int pageNo)
public static Rectangle findLayerRect(CssContext c, Layer layer)
public static List<PagedBoxCollector.PageInfo> findLayerPages(CssContext c, Layer layer, List<PageBox> pages)
public static int findStartPage(CssContext c, Box container, List<PageBox> pages)
public static int findEndPage(CssContext c, Box container, List<PageBox> pages)
Copyright © 2004–2025. All rights reserved.