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