Class RBlockViewport

java.lang.Object
org.lobobrowser.html.renderer.RBlockViewport
All Implemented Interfaces:
BoundableRenderable, RCollection, Renderable

public class RBlockViewport extends Object
A substantial portion of the HTML rendering logic of the package can be found in this class. This class is in charge of laying out the DOM subtree of a node, usually on behalf of an RBlock. It creates a renderer subtree consisting of RLine's or RBlock's. RLine's in turn contain RWord's and so on. This class also happens to be used as an RBlock scrollable viewport.
Author:
J. H. S.
  • Field Details

    • ZERO_INSETS

      public static final Insets ZERO_INSETS
    • SELECTION_COLOR

      protected static final Color SELECTION_COLOR
    • SELECTION_XOR

      protected static final Color SELECTION_XOR
    • modelNode

      protected final ModelNode modelNode
    • x

      public int x
    • y

      public int y
    • width

      public int width
    • height

      public int height
    • layoutUpTreeCanBeInvalidated

      protected boolean layoutUpTreeCanBeInvalidated
      Starts as true because ancestors could be invalidated.
    • parent

      protected RCollection parent
      Parent for graphics coordinates.
    • originalParent

      protected RCollection originalParent
      Parent for invalidation.
  • Constructor Details

    • RBlockViewport

      public RBlockViewport(ModelNode modelNode, RenderableContainer container, int listNesting, UserAgentContext pcontext, HtmlRendererContext rcontext, FrameContext frameContext, RCollection parent)
      Constructs an HtmlBlockLayout.
      Parameters:
      container - This is usually going to be an RBlock.
      listNesting - The nesting level for lists. This is zero except inside a list.
      pcontext - The HTMLParserContext instance.
      frameContext - This is usually going to be HtmlBlock, an object where text selections are contained.
      parent - This is usually going to be the parent of container.
  • Method Details