Package com.openhtmltopdf.layout
Class LayoutState
java.lang.Object
com.openhtmltopdf.layout.LayoutState
A bean which captures all state necessary to lay out an arbitrary box.
Mutable objects must be copied when provided to this class. It is far too
expensive to maintain a bean of this class for each box.
It is only created as needed.
IMPORTANT: Immutable after construction.
IMPORTANT: Immutable after construction.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LinkedList
<BlockFormattingContext> private final MarkerData
private final int
private final int
private final StyleTracker
private final StyleTracker
private final int
private final String
-
Constructor Summary
ConstructorsConstructorDescriptionLayoutState
(StyleTracker firstLetters, StyleTracker firstLines, MarkerData currentMarkerData, String pageName) LayoutState
(LinkedList<BlockFormattingContext> bfcs, MarkerData currentMarkerData, StyleTracker firstLetters, StyleTracker firstLines) LayoutState
(LinkedList<BlockFormattingContext> bfcs, MarkerData markerData, StyleTracker firstLetters, StyleTracker firstLines, String pageName, int extraSpaceTop, int extraSpaceBottom, int noPageBreak) -
Method Summary
Modifier and TypeMethodDescriptionboolean
equal
(MarkerData currentMarkerData, StyleTracker firstLetters, StyleTracker firstLines, String pageName) boolean
equal
(LinkedList<BlockFormattingContext> bfcs, MarkerData markerData, StyleTracker firstLetters, StyleTracker firstLines, String pageName, int extraSpaceTop, int extraSpaceBottom, int noPageBreak) getBFCs()
int
int
int
-
Field Details
-
_firstLines
-
_firstLetters
-
_currentMarkerData
-
_BFCs
-
_pageName
-
_extraSpaceTop
private final int _extraSpaceTop -
_extraSpaceBottom
private final int _extraSpaceBottom -
_noPageBreak
private final int _noPageBreak
-
-
Constructor Details
-
LayoutState
public LayoutState(LinkedList<BlockFormattingContext> bfcs, MarkerData markerData, StyleTracker firstLetters, StyleTracker firstLines, String pageName, int extraSpaceTop, int extraSpaceBottom, int noPageBreak) -
LayoutState
public LayoutState(LinkedList<BlockFormattingContext> bfcs, MarkerData currentMarkerData, StyleTracker firstLetters, StyleTracker firstLines) -
LayoutState
public LayoutState(StyleTracker firstLetters, StyleTracker firstLines, MarkerData currentMarkerData, String pageName)
-
-
Method Details
-
equal
public boolean equal(LinkedList<BlockFormattingContext> bfcs, MarkerData markerData, StyleTracker firstLetters, StyleTracker firstLines, String pageName, int extraSpaceTop, int extraSpaceBottom, int noPageBreak) -
equal
public boolean equal(MarkerData currentMarkerData, StyleTracker firstLetters, StyleTracker firstLines, String pageName) -
getBFCs
-
getCurrentMarkerData
-
getFirstLetters
-
getFirstLines
-
getPageName
-
getExtraSpaceTop
public int getExtraSpaceTop() -
getExtraSpaceBottom
public int getExtraSpaceBottom() -
getNoPageBreak
public int getNoPageBreak()
-