Package com.openhtmltopdf.layout
Class LayoutState
- java.lang.Object
-
- com.openhtmltopdf.layout.LayoutState
-
public class LayoutState extends Object
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.
-
-
Constructor Summary
Constructors Constructor Description LayoutState(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequal(MarkerData currentMarkerData, StyleTracker firstLetters, StyleTracker firstLines, String pageName)booleanequal(LinkedList<BlockFormattingContext> bfcs, MarkerData markerData, StyleTracker firstLetters, StyleTracker firstLines, String pageName, int extraSpaceTop, int extraSpaceBottom, int noPageBreak)LinkedList<BlockFormattingContext>getBFCs()MarkerDatagetCurrentMarkerData()intgetExtraSpaceBottom()intgetExtraSpaceTop()StyleTrackergetFirstLetters()StyleTrackergetFirstLines()intgetNoPageBreak()StringgetPageName()
-
-
-
Constructor Detail
-
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 Detail
-
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
public LinkedList<BlockFormattingContext> getBFCs()
-
getCurrentMarkerData
public MarkerData getCurrentMarkerData()
-
getFirstLetters
public StyleTracker getFirstLetters()
-
getFirstLines
public StyleTracker getFirstLines()
-
getPageName
public String getPageName()
-
getExtraSpaceTop
public int getExtraSpaceTop()
-
getExtraSpaceBottom
public int getExtraSpaceBottom()
-
getNoPageBreak
public int getNoPageBreak()
-
-