Class LayoutTreeNode

java.lang.Object
io.webfolder.cdp.type.domsnapshot.LayoutTreeNode

public class LayoutTreeNode
extends java.lang.Object
Details of an element in the DOM tree with a LayoutObject
  • Constructor Summary

    Constructors 
    Constructor Description
    LayoutTreeNode()  
  • Method Summary

    Modifier and Type Method Description
    Rect getBoundingBox()
    The bounding box in document coordinates.
    java.lang.Integer getDomNodeIndex()
    The index of the related DOM node in the `domNodes` array returned by `getSnapshot`.
    java.util.List<InlineTextBox> getInlineTextNodes()
    The post-layout inline text nodes, if any.
    java.lang.Boolean getIsStackingContext()
    Set to true to indicate the element begins a new stacking context.
    java.lang.String getLayoutText()
    Contents of the LayoutText, if any.
    java.lang.Integer getPaintOrder()
    Global paint order index, which is determined by the stacking order of the nodes.
    java.lang.Integer getStyleIndex()
    Index into the `computedStyles` array returned by `getSnapshot`.
    void setBoundingBox​(Rect boundingBox)
    The bounding box in document coordinates.
    void setDomNodeIndex​(java.lang.Integer domNodeIndex)
    The index of the related DOM node in the `domNodes` array returned by `getSnapshot`.
    void setInlineTextNodes​(java.util.List<InlineTextBox> inlineTextNodes)
    The post-layout inline text nodes, if any.
    void setIsStackingContext​(java.lang.Boolean isStackingContext)
    Set to true to indicate the element begins a new stacking context.
    void setLayoutText​(java.lang.String layoutText)
    Contents of the LayoutText, if any.
    void setPaintOrder​(java.lang.Integer paintOrder)
    Global paint order index, which is determined by the stacking order of the nodes.
    void setStyleIndex​(java.lang.Integer styleIndex)
    Index into the `computedStyles` array returned by `getSnapshot`.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getDomNodeIndex

      public java.lang.Integer getDomNodeIndex()
      The index of the related DOM node in the `domNodes` array returned by `getSnapshot`.
    • setDomNodeIndex

      public void setDomNodeIndex​(java.lang.Integer domNodeIndex)
      The index of the related DOM node in the `domNodes` array returned by `getSnapshot`.
    • getBoundingBox

      public Rect getBoundingBox()
      The bounding box in document coordinates. Note that scroll offset of the document is ignored.
    • setBoundingBox

      public void setBoundingBox​(Rect boundingBox)
      The bounding box in document coordinates. Note that scroll offset of the document is ignored.
    • getLayoutText

      public java.lang.String getLayoutText()
      Contents of the LayoutText, if any.
    • setLayoutText

      public void setLayoutText​(java.lang.String layoutText)
      Contents of the LayoutText, if any.
    • getInlineTextNodes

      public java.util.List<InlineTextBox> getInlineTextNodes()
      The post-layout inline text nodes, if any.
    • setInlineTextNodes

      public void setInlineTextNodes​(java.util.List<InlineTextBox> inlineTextNodes)
      The post-layout inline text nodes, if any.
    • getStyleIndex

      public java.lang.Integer getStyleIndex()
      Index into the `computedStyles` array returned by `getSnapshot`.
    • setStyleIndex

      public void setStyleIndex​(java.lang.Integer styleIndex)
      Index into the `computedStyles` array returned by `getSnapshot`.
    • getPaintOrder

      public java.lang.Integer getPaintOrder()
      Global paint order index, which is determined by the stacking order of the nodes. Nodes that are painted together will have the same index. Only provided if includePaintOrder in getSnapshot was true.
    • setPaintOrder

      public void setPaintOrder​(java.lang.Integer paintOrder)
      Global paint order index, which is determined by the stacking order of the nodes. Nodes that are painted together will have the same index. Only provided if includePaintOrder in getSnapshot was true.
    • setIsStackingContext

      public void setIsStackingContext​(java.lang.Boolean isStackingContext)
      Set to true to indicate the element begins a new stacking context.
    • getIsStackingContext

      public java.lang.Boolean getIsStackingContext()
      Set to true to indicate the element begins a new stacking context.