Class Layer
- java.lang.Object
-
- org.openqa.selenium.devtools.layertree.model.Layer
-
public class Layer extends java.lang.Object
Information about a compositing layer.
-
-
Constructor Summary
Constructors Constructor Description Layer(LayerId layerId, LayerId parentLayerId, BackendNodeId backendNodeId, java.lang.Number offsetX, java.lang.Number offsetY, java.lang.Number width, java.lang.Number height, java.util.List<java.lang.Number> transform, java.lang.Number anchorX, java.lang.Number anchorY, java.lang.Number anchorZ, java.lang.Integer paintCount, java.lang.Boolean drawsContent, java.lang.Boolean invisible, java.util.List<ScrollRect> scrollRects, StickyPositionConstraint stickyPositionConstraint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Number
getAnchorX()
Transform anchor point X, absent if no transform specifiedjava.lang.Number
getAnchorY()
Transform anchor point Y, absent if no transform specifiedjava.lang.Number
getAnchorZ()
Transform anchor point Z, absent if no transform specifiedBackendNodeId
getBackendNodeId()
The backend id for the node associated with this layer.java.lang.Boolean
getDrawsContent()
Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.java.lang.Number
getHeight()
Layer height.java.lang.Boolean
getInvisible()
Set if layer is not visible.LayerId
getLayerId()
The unique id for this layer.java.lang.Number
getOffsetX()
Offset from parent layer, X coordinate.java.lang.Number
getOffsetY()
Offset from parent layer, Y coordinate.java.lang.Integer
getPaintCount()
Indicates how many time this layer has painted.LayerId
getParentLayerId()
The id of parent (not present for root).java.util.List<ScrollRect>
getScrollRects()
Rectangles scrolling on main thread only.StickyPositionConstraint
getStickyPositionConstraint()
Sticky position constraint informationjava.util.List<java.lang.Number>
getTransform()
Transformation matrix for layer, default is identity matrixjava.lang.Number
getWidth()
Layer width.
-
-
-
Constructor Detail
-
Layer
public Layer(LayerId layerId, LayerId parentLayerId, BackendNodeId backendNodeId, java.lang.Number offsetX, java.lang.Number offsetY, java.lang.Number width, java.lang.Number height, java.util.List<java.lang.Number> transform, java.lang.Number anchorX, java.lang.Number anchorY, java.lang.Number anchorZ, java.lang.Integer paintCount, java.lang.Boolean drawsContent, java.lang.Boolean invisible, java.util.List<ScrollRect> scrollRects, StickyPositionConstraint stickyPositionConstraint)
-
-
Method Detail
-
getLayerId
public LayerId getLayerId()
The unique id for this layer.
-
getParentLayerId
public LayerId getParentLayerId()
The id of parent (not present for root).
-
getBackendNodeId
public BackendNodeId getBackendNodeId()
The backend id for the node associated with this layer.
-
getOffsetX
public java.lang.Number getOffsetX()
Offset from parent layer, X coordinate.
-
getOffsetY
public java.lang.Number getOffsetY()
Offset from parent layer, Y coordinate.
-
getWidth
public java.lang.Number getWidth()
Layer width.
-
getHeight
public java.lang.Number getHeight()
Layer height.
-
getTransform
public java.util.List<java.lang.Number> getTransform()
Transformation matrix for layer, default is identity matrix
-
getAnchorX
public java.lang.Number getAnchorX()
Transform anchor point X, absent if no transform specified
-
getAnchorY
public java.lang.Number getAnchorY()
Transform anchor point Y, absent if no transform specified
-
getAnchorZ
public java.lang.Number getAnchorZ()
Transform anchor point Z, absent if no transform specified
-
getPaintCount
public java.lang.Integer getPaintCount()
Indicates how many time this layer has painted.
-
getDrawsContent
public java.lang.Boolean getDrawsContent()
Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
-
getInvisible
public java.lang.Boolean getInvisible()
Set if layer is not visible.
-
getScrollRects
public java.util.List<ScrollRect> getScrollRects()
Rectangles scrolling on main thread only.
-
getStickyPositionConstraint
public StickyPositionConstraint getStickyPositionConstraint()
Sticky position constraint information
-
-