Top Description Fields Constructors Methods
com.openhtmltopdf.layout

public Class LayoutState

extends Object
Class Inheritance
Imports
java.util.LinkedList, .Objects, com.openhtmltopdf.render.MarkerData

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 Note

Immutable after construction.

Field Summary

Modifier and TypeField and Description
private 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

AccessConstructor and Description
public
LayoutState(LinkedList<BlockFormattingContext> bfcs, MarkerData markerData, StyleTracker firstLetters, StyleTracker firstLines, String pageName, int extraSpaceTop, int extraSpaceBottom, int noPageBreak)

public
LayoutState(LinkedList<BlockFormattingContext> bfcs, MarkerData currentMarkerData, StyleTracker firstLetters, StyleTracker firstLines)

public
LayoutState(StyleTracker firstLetters, StyleTracker firstLines, MarkerData currentMarkerData, String pageName)

Method Summary

Modifier and TypeMethod and Description
public boolean
equal(LinkedList<BlockFormattingContext> bfcs, MarkerData markerData, StyleTracker firstLetters, StyleTracker firstLines, String pageName, int extraSpaceTop, int extraSpaceBottom, int noPageBreak)

public boolean
equal(MarkerData currentMarkerData, StyleTracker firstLetters, StyleTracker firstLines, String pageName)

public LinkedList<BlockFormattingContext>
public MarkerData
public int
public int
public StyleTracker
public StyleTracker
public int
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_BFCsback to summary
private final LinkedList<BlockFormattingContext> _BFCs
_currentMarkerDataback to summary
private final MarkerData _currentMarkerData
_extraSpaceBottomback to summary
private final int _extraSpaceBottom
_extraSpaceTopback to summary
private final int _extraSpaceTop
_firstLettersback to summary
private final StyleTracker _firstLetters
_firstLinesback to summary
private final StyleTracker _firstLines
_noPageBreakback to summary
private final int _noPageBreak
_pageNameback to summary
private final String _pageName

Constructor Detail

LayoutStateback to summary
public LayoutState(LinkedList<BlockFormattingContext> bfcs, MarkerData markerData, StyleTracker firstLetters, StyleTracker firstLines, String pageName, int extraSpaceTop, int extraSpaceBottom, int noPageBreak)
LayoutStateback to summary
public LayoutState(LinkedList<BlockFormattingContext> bfcs, MarkerData currentMarkerData, StyleTracker firstLetters, StyleTracker firstLines)
LayoutStateback to summary
public LayoutState(StyleTracker firstLetters, StyleTracker firstLines, MarkerData currentMarkerData, String pageName)

Method Detail

equalback to summary
public boolean equal(LinkedList<BlockFormattingContext> bfcs, MarkerData markerData, StyleTracker firstLetters, StyleTracker firstLines, String pageName, int extraSpaceTop, int extraSpaceBottom, int noPageBreak)
equalback to summary
public boolean equal(MarkerData currentMarkerData, StyleTracker firstLetters, StyleTracker firstLines, String pageName)
getBFCsback to summary
public LinkedList<BlockFormattingContext> getBFCs()
getCurrentMarkerDataback to summary
public MarkerData getCurrentMarkerData()
getExtraSpaceBottomback to summary
public int getExtraSpaceBottom()
getExtraSpaceTopback to summary
public int getExtraSpaceTop()
getFirstLettersback to summary
public StyleTracker getFirstLetters()
getFirstLinesback to summary
public StyleTracker getFirstLines()
getNoPageBreakback to summary
public int getNoPageBreak()
getPageNameback to summary
public String getPageName()