Class Layer
- java.lang.Object
-
- org.openqa.selenium.devtools.layertree.model.Layer
-
public class Layer extends java.lang.ObjectInformation 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.NumbergetAnchorX()Transform anchor point X, absent if no transform specifiedjava.lang.NumbergetAnchorY()Transform anchor point Y, absent if no transform specifiedjava.lang.NumbergetAnchorZ()Transform anchor point Z, absent if no transform specifiedBackendNodeIdgetBackendNodeId()The backend id for the node associated with this layer.java.lang.BooleangetDrawsContent()Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.java.lang.NumbergetHeight()Layer height.java.lang.BooleangetInvisible()Set if layer is not visible.LayerIdgetLayerId()The unique id for this layer.java.lang.NumbergetOffsetX()Offset from parent layer, X coordinate.java.lang.NumbergetOffsetY()Offset from parent layer, Y coordinate.java.lang.IntegergetPaintCount()Indicates how many time this layer has painted.LayerIdgetParentLayerId()The id of parent (not present for root).java.util.List<ScrollRect>getScrollRects()Rectangles scrolling on main thread only.StickyPositionConstraintgetStickyPositionConstraint()Sticky position constraint informationjava.util.List<java.lang.Number>getTransform()Transformation matrix for layer, default is identity matrixjava.lang.NumbergetWidth()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
-
-