Package com.openhtmltopdf.render
Class FlowingColumnContainerBox.ColumnBreakStore
- java.lang.Object
-
- com.openhtmltopdf.render.FlowingColumnContainerBox.ColumnBreakStore
-
- Enclosing class:
- FlowingColumnContainerBox
public static class FlowingColumnContainerBox.ColumnBreakStore extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<FlowingColumnContainerBox.ColumnBreakOpportunity>breaksprivate java.util.Set<Box>processedContainers
-
Constructor Summary
Constructors Constructor Description ColumnBreakStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBreak(Box box, java.util.List<Box> ancestors)Add a break opportunity.booleancheckContainerShouldProcess(Box container)Whether an ancestor box needs to be added to the list of ancestors.java.lang.StringtoString()
-
-
-
Field Detail
-
breaks
private final java.util.List<FlowingColumnContainerBox.ColumnBreakOpportunity> breaks
-
processedContainers
private final java.util.Set<Box> processedContainers
-
-
Method Detail
-
addBreak
public void addBreak(Box box, java.util.List<Box> ancestors)
Add a break opportunity. If this is a break opportunity and a first child, it should also add all unprocessed ancestors, so they can be moved with the first child.
-
checkContainerShouldProcess
public boolean checkContainerShouldProcess(Box container)
Whether an ancestor box needs to be added to the list of ancestors.- Returns:
- true to process this ancestor (we haven't seen it yet).
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-