Class LayoutState

java.lang.Object
org.xhtmlrenderer.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.
  • Field Details

    • _firstLines

      private final StyleTracker _firstLines
    • _firstLetters

      private final StyleTracker _firstLetters
    • _currentMarkerData

      private final @Nullable MarkerData _currentMarkerData
    • _BFCs

      private final Deque<BlockFormattingContext> _BFCs
    • _pageName

      private final @Nullable String _pageName
    • _extraSpaceTop

      private final int _extraSpaceTop
    • _extraSpaceBottom

      private final int _extraSpaceBottom
    • _noPageBreak

      private final int _noPageBreak
  • Constructor Details

  • Method Details

    • getBFCs

      public Deque<BlockFormattingContext> getBFCs()
    • getCurrentMarkerData

      public @Nullable MarkerData getCurrentMarkerData()
    • getFirstLetters

      public StyleTracker getFirstLetters()
    • getFirstLines

      public StyleTracker getFirstLines()
    • getPageName

      public @Nullable String getPageName()
    • getExtraSpaceTop

      public int getExtraSpaceTop()
    • getExtraSpaceBottom

      public int getExtraSpaceBottom()
    • getNoPageBreak

      public int getNoPageBreak()