Package Torello.Browser.BrowserAPI
Class LayerTree.Layer
- java.lang.Object
-
- Torello.Browser.BaseType<LayerTree.Layer>
-
- Torello.Browser.BrowserAPI.LayerTree.Layer
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BaseType<?>>
- Enclosing class:
- LayerTree
public static class LayerTree.Layer extends BaseType<LayerTree.Layer> implements java.io.Serializable
This Nested Java Class is declared as a "Type", which is similar to a Java Class. The CDP API Specifications list this type among the types, events & commands located in theLayerTreedomain, which may be found within theBrowserAPI.
📌 All browser domain type classes will have a class name that begins with an upper case letter.Information about a compositing layer.- See Also:
- Serialized Form
Hi-Lited Source-Code:This File's Source Code:
- View Here: Torello/Browser/BrowserAPI/LayerTree.java
- Open New Browser-Tab: Torello/Browser/BrowserAPI/LayerTree.java
File Size: 5,028 Bytes Line Count: 136 '\n' Characters Found
Helper: Equals, HashCode, toJSON, etc
- View Here: LayerTree$$Layer$$.java
- Open New Browser-Tab: LayerTree$$Layer$$.java
File Size: 16,986 Bytes Line Count: 391 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field Description protected static longserialVersionUIDType Fields / Properties (from Google & Browser Specs) Modifier and Type Field Description NumberanchorXTransform anchor point X, absent if no transform specifiedNumberanchorYTransform anchor point Y, absent if no transform specifiedNumberanchorZTransform anchor point Z, absent if no transform specifiedIntegerbackendNodeIdThe backend id for the node associated with this layer.booleandrawsContentIndicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.NumberheightLayer height.BooleaninvisibleSet if layer is not visible.StringlayerIdThe unique id for this layer.NumberoffsetXOffset from parent layer, X coordinate.NumberoffsetYOffset from parent layer, Y coordinate.intpaintCountIndicates how many time this layer has painted.StringparentLayerIdThe id of parent (not present for root).LayerTree.ScrollRect[]scrollRectsRectangles scrolling on main thread only.LayerTree.StickyPositionConstraintstickyPositionConstraintSticky position constraint informationNumber[]transformTransformation matrix for layer, default is identity matrixNumberwidthLayer width.
-
Constructor Summary
Constructors Constructor Description Layer(ReadOnlyList<Boolean> isPresent, String layerId, String parentLayerId, Integer backendNodeId, Number offsetX, Number offsetY, Number width, Number height, Number[] transform, Number anchorX, Number anchorY, Number anchorZ, int paintCount, boolean drawsContent, Boolean invisible, LayerTree.ScrollRect[] scrollRects, LayerTree.StickyPositionConstraint stickyPositionConstraint)Constructor.
-
Method Summary
Static Builder Convert a JsonObject to a POJO Modifier and Type Method Description static LayerTree.LayerfromJSON(JsonObject jo)Creates an instance of this class from aJsonObject.Retrieve the Type-Descriptor Singleton-Instance for this Nested Class. Modifier and Type Method Description static NestedDescriptor<LayerTree.Layer>descriptor()Returns this class'sNestedDescriptorsingleton-instance.-
Methods inherited from class Torello.Browser.BaseType
allEnumStrROLs, compareTo, enumStrList, enumStrValidate, enumStrValidateThrow, equals, hashCode, isPresent, optionalsValidate, optionalsValidateThrow, toJSON, toString
-
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable. Using theSerializableImplementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.- See Also:
- Constant Field Values
-
layerId
public final java.lang.String layerId
The unique id for this layer.
-
parentLayerId
public final java.lang.String parentLayerId
The id of parent (not present for root).
OPTIONAL
-
backendNodeId
public final java.lang.Integer backendNodeId
The backend id for the node associated with this layer.
OPTIONAL
-
offsetX
public final java.lang.Number offsetX
Offset from parent layer, X coordinate.
-
offsetY
public final java.lang.Number offsetY
Offset from parent layer, Y coordinate.
-
width
public final java.lang.Number width
Layer width.
-
height
public final java.lang.Number height
Layer height.
-
transform
public final java.lang.Number[] transform
Transformation matrix for layer, default is identity matrix
OPTIONAL
-
anchorX
public final java.lang.Number anchorX
Transform anchor point X, absent if no transform specified
OPTIONAL
-
anchorY
public final java.lang.Number anchorY
Transform anchor point Y, absent if no transform specified
OPTIONAL
-
anchorZ
public final java.lang.Number anchorZ
Transform anchor point Z, absent if no transform specified
OPTIONAL
-
paintCount
public final int paintCount
Indicates how many time this layer has painted.
-
drawsContent
public final boolean drawsContent
Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
-
invisible
public final java.lang.Boolean invisible
Set if layer is not visible.
OPTIONAL
-
scrollRects
public final LayerTree.ScrollRect[] scrollRects
Rectangles scrolling on main thread only.
OPTIONAL
-
stickyPositionConstraint
public final LayerTree.StickyPositionConstraint stickyPositionConstraint
Sticky position constraint information
OPTIONAL
-
-
Constructor Detail
-
Layer
public Layer(ReadOnlyList<java.lang.Boolean> isPresent, java.lang.String layerId, java.lang.String parentLayerId, java.lang.Integer backendNodeId, java.lang.Number offsetX, java.lang.Number offsetY, java.lang.Number width, java.lang.Number height, java.lang.Number[] transform, java.lang.Number anchorX, java.lang.Number anchorY, java.lang.Number anchorZ, int paintCount, boolean drawsContent, java.lang.Boolean invisible, LayerTree.ScrollRect[] scrollRects, LayerTree.StickyPositionConstraint stickyPositionConstraint)
Constructor. Please review this class' fields for documentation.
-
-
Method Detail
-
fromJSON
public static LayerTree.Layer fromJSON(JsonObject jo)
Creates an instance of this class from aJsonObject.- Code:
- Exact Method Body:
return singleton.fromJSON(jo);
-
descriptor
public static NestedDescriptor<LayerTree.Layer> descriptor()
Returns this class'sNestedDescriptorsingleton-instance. class / type.- Code:
- Exact Method Body:
return singleton.descriptor();
-
-