Package com.openhtmltopdf.layout
Class BlockBoxing.LiteRelayoutDataList
java.lang.Object
com.openhtmltopdf.layout.BlockBoxing.AbstractRelayoutDataList
com.openhtmltopdf.layout.BlockBoxing.LiteRelayoutDataList
- Enclosing class:
BlockBoxing
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int[]
(package private) final LayoutState[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(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 Details
-
childOffsets
final int[] childOffsets -
layoutStates
-
runStarts
-
runEnds
-
-
Constructor Details
-
LiteRelayoutDataList
LiteRelayoutDataList(int size)
-
-
Method Details
-
getChildOffset
int getChildOffset(int boxIndex) - Specified by:
getChildOffset
in classBlockBoxing.AbstractRelayoutDataList
-
getLayoutState
- Specified by:
getLayoutState
in classBlockBoxing.AbstractRelayoutDataList
-
setLayoutState
- 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
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
-