Class LayoutTreeSnapshot

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

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

    Constructors 
    Constructor Description
    LayoutTreeSnapshot()  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<java.util.List<java.lang.Double>> getBounds()
    The absolute position bounding box.
    java.util.List<java.lang.Double> getClientRects()
    The client rect of nodes.
    java.util.List<java.lang.Integer> getNodeIndex()
    Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`.
    java.util.List<java.lang.Double> getOffsetRects()
    The offset rect of nodes.
    java.util.List<java.lang.Integer> getPaintOrders()
    Global paint order index, which is determined by the stacking order of the nodes.
    java.util.List<java.lang.Double> getScrollRects()
    The scroll rect of nodes.
    RareBooleanData getStackingContexts()
    Stacking context information.
    java.util.List<java.lang.Integer> getText()
    Contents of the LayoutText, if any.
    void setBounds​(java.util.List<java.util.List<java.lang.Double>> bounds)
    The absolute position bounding box.
    void setClientRects​(java.util.List<java.lang.Double> clientRects)
    The client rect of nodes.
    void setNodeIndex​(java.util.List<java.lang.Integer> nodeIndex)
    Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`.
    void setOffsetRects​(java.util.List<java.lang.Double> offsetRects)
    The offset rect of nodes.
    void setPaintOrders​(java.util.List<java.lang.Integer> paintOrders)
    Global paint order index, which is determined by the stacking order of the nodes.
    void setScrollRects​(java.util.List<java.lang.Double> scrollRects)
    The scroll rect of nodes.
    void setStackingContexts​(RareBooleanData stackingContexts)
    Stacking context information.
    void setText​(java.util.List<java.lang.Integer> text)
    Contents of the LayoutText, if any.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getNodeIndex

      public java.util.List<java.lang.Integer> getNodeIndex()
      Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`.
    • setNodeIndex

      public void setNodeIndex​(java.util.List<java.lang.Integer> nodeIndex)
      Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`.
    • getBounds

      public java.util.List<java.util.List<java.lang.Double>> getBounds()
      The absolute position bounding box.
    • setBounds

      public void setBounds​(java.util.List<java.util.List<java.lang.Double>> bounds)
      The absolute position bounding box.
    • getText

      public java.util.List<java.lang.Integer> getText()
      Contents of the LayoutText, if any.
    • setText

      public void setText​(java.util.List<java.lang.Integer> text)
      Contents of the LayoutText, if any.
    • getStackingContexts

      public RareBooleanData getStackingContexts()
      Stacking context information.
    • setStackingContexts

      public void setStackingContexts​(RareBooleanData stackingContexts)
      Stacking context information.
    • getPaintOrders

      public java.util.List<java.lang.Integer> getPaintOrders()
      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 captureSnapshot was true.
    • setPaintOrders

      public void setPaintOrders​(java.util.List<java.lang.Integer> paintOrders)
      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 captureSnapshot was true.
    • getOffsetRects

      public java.util.List<java.lang.Double> getOffsetRects()
      The offset rect of nodes. Only available when includeDOMRects is set to true
    • setOffsetRects

      public void setOffsetRects​(java.util.List<java.lang.Double> offsetRects)
      The offset rect of nodes. Only available when includeDOMRects is set to true
    • getScrollRects

      public java.util.List<java.lang.Double> getScrollRects()
      The scroll rect of nodes. Only available when includeDOMRects is set to true
    • setScrollRects

      public void setScrollRects​(java.util.List<java.lang.Double> scrollRects)
      The scroll rect of nodes. Only available when includeDOMRects is set to true
    • getClientRects

      public java.util.List<java.lang.Double> getClientRects()
      The client rect of nodes. Only available when includeDOMRects is set to true
    • setClientRects

      public void setClientRects​(java.util.List<java.lang.Double> clientRects)
      The client rect of nodes. Only available when includeDOMRects is set to true