Package com.openhtmltopdf.layout
Class BlockBoxing.LiteRelayoutDataList
- java.lang.Object
-
- com.openhtmltopdf.layout.BlockBoxing.AbstractRelayoutDataList
-
- com.openhtmltopdf.layout.BlockBoxing.LiteRelayoutDataList
-
- Enclosing class:
- BlockBoxing
private static class BlockBoxing.LiteRelayoutDataList extends BlockBoxing.AbstractRelayoutDataList
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int[]childOffsets(package private) LayoutState[]layoutStates(package private) java.util.TreeSet<java.lang.Integer>runEnds(package private) java.util.TreeSet<java.lang.Integer>runStarts
-
Constructor Summary
Constructors Constructor Description LiteRelayoutDataList(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddRunEnd(int boxIndex)(package private) voidaddRunStart(int boxIndex)voidconfigureRun(int offset, BlockBox previous, BlockBox current)Marks two consecutive block boxes as being in a run of boxes where a page break should not occur between them as set in thepage-break-afterandpage-break-beforeCSS properties.(package private) intgetChildOffset(int boxIndex)(package private) LayoutStategetLayoutState(int boxIndex)(package private) intgetRunStart(int endRunIndex)(package private) booleanisEndsRun(int boxIndex)(package private) booleanisInRun(int boxIndex)(package private) voidsetChildOffset(int boxIndex, int childOffset)(package private) voidsetLayoutState(int boxIndex, LayoutState state)
-
-
-
Field Detail
-
childOffsets
final int[] childOffsets
-
layoutStates
final LayoutState[] layoutStates
-
runStarts
java.util.TreeSet<java.lang.Integer> runStarts
-
runEnds
java.util.TreeSet<java.lang.Integer> runEnds
-
-
Method Detail
-
getChildOffset
int getChildOffset(int boxIndex)
- Specified by:
getChildOffsetin classBlockBoxing.AbstractRelayoutDataList
-
getLayoutState
LayoutState getLayoutState(int boxIndex)
- Specified by:
getLayoutStatein classBlockBoxing.AbstractRelayoutDataList
-
setLayoutState
void setLayoutState(int boxIndex, LayoutState state)- Specified by:
setLayoutStatein classBlockBoxing.AbstractRelayoutDataList
-
setChildOffset
void setChildOffset(int boxIndex, int childOffset)- Specified by:
setChildOffsetin classBlockBoxing.AbstractRelayoutDataList
-
isEndsRun
boolean isEndsRun(int boxIndex)
- Specified by:
isEndsRunin classBlockBoxing.AbstractRelayoutDataList
-
getRunStart
int getRunStart(int endRunIndex)
- Specified by:
getRunStartin classBlockBoxing.AbstractRelayoutDataList
-
isInRun
boolean isInRun(int boxIndex)
-
addRunStart
void addRunStart(int boxIndex)
-
addRunEnd
void addRunEnd(int boxIndex)
-
configureRun
public void configureRun(int offset, BlockBox previous, BlockBox current)Marks two consecutive block boxes as being in a run of boxes where a page break should not occur between them as set in thepage-break-afterandpage-break-beforeCSS properties.- Specified by:
configureRunin classBlockBoxing.AbstractRelayoutDataList
-
-