Package Torello.Browser
Class DOMSnapshot.LayoutTreeSnapshot
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.DOMSnapshot.LayoutTreeSnapshot
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- DOMSnapshot
public static class DOMSnapshot.LayoutTreeSnapshot extends BaseType implements java.io.Serializable
Table of details of an element in the DOM tree with a LayoutObject.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/DOMSnapshot.java
- Open New Browser-Tab: Torello/Browser/DOMSnapshot.java
File Size: 10,421 Bytes Line Count: 226 '\n' Characters Found
-
-
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 theNodeTreeSnapshot
array returned bycaptureSnapshot
.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 thecomputedStyles
parameter passed tocaptureSnapshot
.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)
ConstructorLayoutTreeSnapshot(JsonObject jo)
JSON Object Constructor
-
Method Summary
Generate Array that Indicates which Parameter are Optional Modifier and Type Method boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
Checks whether'this'
equals an input Java-Object
int
hashCode()
Generates a Hash-Code for'this'
instance
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
For Object Serialization. java.io.Serializable- See Also:
- Constant Field Values
-
nodeIndex
public final int[] nodeIndex
Index of the corresponding node in theNodeTreeSnapshot
array returned bycaptureSnapshot
.
-
styles
public final int[][] styles
Array of indexes specifying computed style strings, filtered according to thecomputedStyles
parameter passed tocaptureSnapshot
.
-
bounds
public final java.lang.Number[][] bounds
The absolute position bounding box.
-
text
public final int[] text
Contents of the LayoutText, if any.
-
stackingContexts
public final DOMSnapshot.RareBooleanData stackingContexts
Stacking context information.
-
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
-
textColorOpacities
public final java.lang.Number[] textColorOpacities
The list of computed text opacities.
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 theNodeTreeSnapshot
array returned bycaptureSnapshot
.styles
- Array of indexes specifying computed style strings, filtered according to thecomputedStyles
parameter passed tocaptureSnapshot
.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.
OPTIONALoffsetRects
- The offset rect of nodes. Only available when includeDOMRects is set to true
OPTIONALscrollRects
- The scroll rect of nodes. Only available when includeDOMRects is set to true
OPTIONALclientRects
- The client rect of nodes. Only available when includeDOMRects is set to true
OPTIONALblendedBackgroundColors
- The list of background colors that are blended with colors of overlapping elements.
OPTIONAL
EXPERIMENTALtextColorOpacities
- The list of computed text opacities.
OPTIONAL
EXPERIMENTAL
-
LayoutTreeSnapshot
public LayoutTreeSnapshot(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'LayoutTreeSnapshot'
.
-
-
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 aJsonObject
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 positionTRUE
.
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...
-
equals
public boolean equals(java.lang.Object other)
Checks whether'this'
equals an input Java-Object
- Overrides:
equals
in classjava.lang.Object
- Code:
- Exact Method Body:
if (other == null) return false; if (other.getClass() != this.getClass()) return false; LayoutTreeSnapshot o = (LayoutTreeSnapshot) other; return Arrays.equals(this.nodeIndex, o.nodeIndex) && Arrays.equals(this.styles, o.styles) && Arrays.deepEquals(this.bounds, o.bounds) && Arrays.equals(this.text, o.text) && Objects.equals(this.stackingContexts, o.stackingContexts) && Arrays.equals(this.paintOrders, o.paintOrders) && Arrays.deepEquals(this.offsetRects, o.offsetRects) && Arrays.deepEquals(this.scrollRects, o.scrollRects) && Arrays.deepEquals(this.clientRects, o.clientRects) && Arrays.equals(this.blendedBackgroundColors, o.blendedBackgroundColors) && Arrays.deepEquals(this.textColorOpacities, o.textColorOpacities);
-
hashCode
public int hashCode()
Generates a Hash-Code for'this'
instance- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return Arrays.hashCode(this.nodeIndex) + Arrays.hashCode(this.styles) + Arrays.deepHashCode(this.bounds) + Arrays.hashCode(this.text) + this.stackingContexts.hashCode() + Arrays.hashCode(this.paintOrders) + Arrays.deepHashCode(this.offsetRects) + Arrays.deepHashCode(this.scrollRects) + Arrays.deepHashCode(this.clientRects) + Arrays.hashCode(this.blendedBackgroundColors) + Arrays.deepHashCode(this.textColorOpacities);
-
-