Class DOMSnapshot.LayoutTreeSnapshot

    • Field Summary

       
      Serializable ID
      Modifier and Type Field
      protected static long serialVersionUID
      For Object Serialization.
       
      Type Properties
      Modifier and Type Field
      int[] blendedBackgroundColors
      The list of background colors that are blended with colors of overlapping elements.
      Number[][] bounds
      The absolute position bounding box.
      Number[][] clientRects
      The client rect of nodes.
      int[] nodeIndex
      Index of the corresponding node in the NodeTreeSnapshot array returned by captureSnapshot.
      Number[][] offsetRects
      The offset rect of nodes.
      int[] paintOrders
      Global paint order index, which is determined by the stacking order of the nodes.
      Number[][] scrollRects
      The scroll rect of nodes.
      DOMSnapshot.RareBooleanData stackingContexts
      Stacking context information.
      int[][] styles
      Array of indexes specifying computed style strings, filtered according to the computedStyles parameter passed to captureSnapshot.
      int[] text
      Contents of the LayoutText, if any.
      Number[] textColorOpacities
      The list of computed text opacities.
    • Constructor Summary

      Constructors 
      Constructor Description
      LayoutTreeSnapshot​(int[] nodeIndex, int[][] styles, Number[][] bounds, int[] text, DOMSnapshot.RareBooleanData stackingContexts, int[] paintOrders, Number[][] offsetRects, Number[][] scrollRects, Number[][] clientRects, int[] blendedBackgroundColors, Number[] textColorOpacities)
      Constructor
      LayoutTreeSnapshot​(JsonObject jo)
      JSON Object Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean[] optionals()
      Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • nodeIndex

        public final int[] nodeIndex
        Index of the corresponding node in the NodeTreeSnapshot array returned by captureSnapshot.
      • styles

        public final int[][] styles
        Array of indexes specifying computed style strings, filtered according to the computedStyles parameter passed to captureSnapshot.
      • bounds

        public final java.lang.Number[][] bounds
        The absolute position bounding box.
      • text

        public final int[] text
        Contents of the LayoutText, if any.
      • paintOrders

        public final int[] 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.

        OPTIONAL
      • offsetRects

        public final java.lang.Number[][] offsetRects
        The offset rect of nodes. Only available when includeDOMRects is set to true

        OPTIONAL
      • scrollRects

        public final java.lang.Number[][] scrollRects
        The scroll rect of nodes. Only available when includeDOMRects is set to true

        OPTIONAL
      • clientRects

        public final java.lang.Number[][] clientRects
        The client rect of nodes. Only available when includeDOMRects is set to true

        OPTIONAL
      • blendedBackgroundColors

        public final int[] blendedBackgroundColors
        The list of background colors that are blended with colors of overlapping elements.

        OPTIONAL
        EXPERIMENTAL
    • Constructor Detail

      • LayoutTreeSnapshot

        public LayoutTreeSnapshot​(int[] nodeIndex,
                                  int[][] styles,
                                  java.lang.Number[][] bounds,
                                  int[] text,
                                  DOMSnapshot.RareBooleanData stackingContexts,
                                  int[] paintOrders,
                                  java.lang.Number[][] offsetRects,
                                  java.lang.Number[][] scrollRects,
                                  java.lang.Number[][] clientRects,
                                  int[] blendedBackgroundColors,
                                  java.lang.Number[] textColorOpacities)
        Constructor
        Parameters:
        nodeIndex - Index of the corresponding node in the NodeTreeSnapshot array returned by captureSnapshot.
        styles - Array of indexes specifying computed style strings, filtered according to the computedStyles parameter passed to captureSnapshot.
        bounds - The absolute position bounding box.
        text - Contents of the LayoutText, if any.
        stackingContexts - Stacking context information.
        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.
        OPTIONAL
        offsetRects - The offset rect of nodes. Only available when includeDOMRects is set to true
        OPTIONAL
        scrollRects - The scroll rect of nodes. Only available when includeDOMRects is set to true
        OPTIONAL
        clientRects - The client rect of nodes. Only available when includeDOMRects is set to true
        OPTIONAL
        blendedBackgroundColors - The list of background colors that are blended with colors of overlapping elements.
        OPTIONAL
        EXPERIMENTAL
        textColorOpacities - The list of computed text opacities.
        OPTIONAL
        EXPERIMENTAL
    • Method Detail

      • optionals

        public boolean[] optionals()
        Description copied from class: BaseType
        Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding a JsonObject to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array position TRUE.

        NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...
        Specified by:
        optionals in class BaseType
        Returns:
        A boolean[] array whose length is precisely equal to the number of fields in the Java Object.