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) 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 Details
-
childOffsets
final int[] childOffsets -
layoutStates
-
runStarts
-
runEnds
-
-
Constructor Details
-
LiteRelayoutDataList
LiteRelayoutDataList(int size)
-
-
Method Details
-
getChildOffset
int getChildOffset(int boxIndex) - Specified by:
getChildOffsetin classBlockBoxing.AbstractRelayoutDataList
-
getLayoutState
- Specified by:
getLayoutStatein classBlockBoxing.AbstractRelayoutDataList
-
setLayoutState
- 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
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
-