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) void
addRunEnd(int boxIndex)
(package private) void
addRunStart(int boxIndex)
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-after
andpage-break-before
CSS properties.(package private) int
getChildOffset(int boxIndex)
(package private) LayoutState
getLayoutState(int boxIndex)
(package private) int
getRunStart(int endRunIndex)
(package private) boolean
isEndsRun(int boxIndex)
(package private) boolean
isInRun(int boxIndex)
(package private) void
setChildOffset(int boxIndex, int childOffset)
(package private) void
setLayoutState(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:
getChildOffset
in classBlockBoxing.AbstractRelayoutDataList
-
getLayoutState
LayoutState getLayoutState(int boxIndex)
- Specified by:
getLayoutState
in classBlockBoxing.AbstractRelayoutDataList
-
setLayoutState
void setLayoutState(int boxIndex, LayoutState state)
- Specified by:
setLayoutState
in classBlockBoxing.AbstractRelayoutDataList
-
setChildOffset
void setChildOffset(int boxIndex, int childOffset)
- Specified by:
setChildOffset
in classBlockBoxing.AbstractRelayoutDataList
-
isEndsRun
boolean isEndsRun(int boxIndex)
- Specified by:
isEndsRun
in classBlockBoxing.AbstractRelayoutDataList
-
getRunStart
int getRunStart(int endRunIndex)
- Specified by:
getRunStart
in 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-after
andpage-break-before
CSS properties.- Specified by:
configureRun
in classBlockBoxing.AbstractRelayoutDataList
-
-