| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private static interface | PagedBoxCollector.
The joys of lambda style programming in Java 6! |
| private static class | |
| public static class | |
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final PagedBoxCollector. | |
| public static final int | PAGE_ALL
Add collected boxes to all pages, including inserted shadow pages. |
| public static final int | PAGE_BASE_ONLY
Add collected items to base page only, ignoring inserted shadow pages. |
| private final List | |
| private final List | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | 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 |
|---|---|
| private void | addBlock(Box container, PagedBoxCollector.
Adds block box to appropriate flat box lists. |
| private void | addBlockToAll(CssContext c, Layer layer, Box container, int pgStart, int pgEnd, Shape ourClip, List<PagedBoxCollector.
|
| private void | addBlockToShadowPage(CssContext c, Layer layer, Box container, int pgStart, int pgEnd, Shape ourClip, List<PagedBoxCollector.
|
| private void | addBoxToShadowPages(CssContext c, Box container, int pageNumber, PagedBoxCollector.
Adds box to inserted shadow pages as needed. |
| private void | 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 | addLineBoxToShadowPage(CssContext c, Layer layer, LineBox container, int basePageNumber, int shadowPageNumber)
|
| private void | |
| private static Rectangle | |
| private boolean | |
| public void | |
| public void | collect(CssContext c, Layer layer, Box container, int shadowPageNumber)
The main box collection method. |
| public void | |
| public void | |
| private void | |
| public 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. |
| public 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 | |
| protected int | |
| public static int | Returns: 0 based page number of end of container paint area (including overflow)
|
| public static List | findLayerPages(CssContext c, Layer layer, List<PageBox> pages)
Returns the pages a layer appears on including inserted overflow pages. |
| public static Rectangle | |
| public static int | |
| protected int | |
| protected int | |
| public static int | Returns: 0 based page number of start of container paint area (including overflow)
|
| private static Rectangle | |
| private static PagedBoxCollector. | |
| protected int | |
| private static double | |
| private static double | |
| private static double | |
| private static double | getMaxYFromTransformedBox(Rectangle bounds, AffineTransform transform)
There is a matrix in effect, we have to apply it to the box bounds before checking what page(s) it sits on. |
| protected int | |
| private static double | |
| private static double | |
| private static double | getMinYFromTransformedBox(Rectangle bounds, AffineTransform transform)
There is a matrix in effect, we have to apply it to the box bounds before checking what page(s) it sits on. |
| private PagedBoxCollector. | getOrCreateShadowPage(PagedBoxCollector.
Inserts shadow pages as needed. |
| protected PageBox | |
| protected PagedBoxCollector. | |
| public static int | |
| protected int | |
| protected int | |
| private boolean | |
| private boolean | |
| private boolean | 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 static void |