Class LayoutTreeSnapshot

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

public class LayoutTreeSnapshot extends Object
Table of details of an element in the DOM tree with a LayoutObject
  • Constructor Details

    • LayoutTreeSnapshot

      public LayoutTreeSnapshot()
  • Method Details

    • getNodeIndex

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

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

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

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

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

      public void setText(List<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 List<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(List<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 List<List<Double>> getOffsetRects()
      The offset rect of nodes. Only available when includeDOMRects is set to true
    • setOffsetRects

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

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

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

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

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

      public List<Integer> getBlendedBackgroundColors()
      The list of background colors that are blended with colors of overlapping elements.
    • setBlendedBackgroundColors

      public void setBlendedBackgroundColors(List<Integer> blendedBackgroundColors)
      The list of background colors that are blended with colors of overlapping elements.
    • getTextColorOpacities

      public List<Double> getTextColorOpacities()
      The list of computed text opacities.
    • setTextColorOpacities

      public void setTextColorOpacities(List<Double> textColorOpacities)
      The list of computed text opacities.
    • getStyles

      public List<List<Integer>> getStyles()
      Array of indexes specifying computed style strings, filtered according to the computedStyles parameter passed to captureSnapshot.
    • setStyles

      public void setStyles(List<List<Integer>> styles)
      Array of indexes specifying computed style strings, filtered according to the computedStyles parameter passed to captureSnapshot.