java.lang.Object
io.webfolder.cdp.type.layertree.Layer

public class Layer
extends java.lang.Object
Information about a compositing layer
  • Constructor Summary

    Constructors 
    Constructor Description
    Layer()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Double getAnchorX()
    Transform anchor point X, absent if no transform specified
    java.lang.Double getAnchorY()
    Transform anchor point Y, absent if no transform specified
    java.lang.Double getAnchorZ()
    Transform anchor point Z, absent if no transform specified
    java.lang.Integer getBackendNodeId()
    The backend id for the node associated with this layer.
    java.lang.Double getHeight()
    Layer height.
    java.lang.String getLayerId()
    The unique id for this layer.
    java.lang.Double getOffsetX()
    Offset from parent layer, X coordinate.
    java.lang.Double getOffsetY()
    Offset from parent layer, Y coordinate.
    java.lang.Integer getPaintCount()
    Indicates how many time this layer has painted.
    java.lang.String 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 information
    java.util.List<java.lang.Double> getTransform()
    Transformation matrix for layer, default is identity matrix
    java.lang.Double getWidth()
    Layer width.
    java.lang.Boolean isDrawsContent()
    Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
    java.lang.Boolean isInvisible()
    Set if layer is not visible.
    void setAnchorX​(java.lang.Double anchorX)
    Transform anchor point X, absent if no transform specified
    void setAnchorY​(java.lang.Double anchorY)
    Transform anchor point Y, absent if no transform specified
    void setAnchorZ​(java.lang.Double anchorZ)
    Transform anchor point Z, absent if no transform specified
    void setBackendNodeId​(java.lang.Integer backendNodeId)
    The backend id for the node associated with this layer.
    void setDrawsContent​(java.lang.Boolean drawsContent)
    Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
    void setHeight​(java.lang.Double height)
    Layer height.
    void setInvisible​(java.lang.Boolean invisible)
    Set if layer is not visible.
    void setLayerId​(java.lang.String layerId)
    The unique id for this layer.
    void setOffsetX​(java.lang.Double offsetX)
    Offset from parent layer, X coordinate.
    void setOffsetY​(java.lang.Double offsetY)
    Offset from parent layer, Y coordinate.
    void setPaintCount​(java.lang.Integer paintCount)
    Indicates how many time this layer has painted.
    void setParentLayerId​(java.lang.String parentLayerId)
    The id of parent (not present for root).
    void setScrollRects​(java.util.List<ScrollRect> scrollRects)
    Rectangles scrolling on main thread only.
    void setStickyPositionConstraint​(StickyPositionConstraint stickyPositionConstraint)
    Sticky position constraint information
    void setTransform​(java.util.List<java.lang.Double> transform)
    Transformation matrix for layer, default is identity matrix
    void setWidth​(java.lang.Double width)
    Layer width.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getLayerId

      public java.lang.String getLayerId()
      The unique id for this layer.
    • setLayerId

      public void setLayerId​(java.lang.String layerId)
      The unique id for this layer.
    • getParentLayerId

      public java.lang.String getParentLayerId()
      The id of parent (not present for root).
    • setParentLayerId

      public void setParentLayerId​(java.lang.String parentLayerId)
      The id of parent (not present for root).
    • getBackendNodeId

      public java.lang.Integer getBackendNodeId()
      The backend id for the node associated with this layer.
    • setBackendNodeId

      public void setBackendNodeId​(java.lang.Integer backendNodeId)
      The backend id for the node associated with this layer.
    • getOffsetX

      public java.lang.Double getOffsetX()
      Offset from parent layer, X coordinate.
    • setOffsetX

      public void setOffsetX​(java.lang.Double offsetX)
      Offset from parent layer, X coordinate.
    • getOffsetY

      public java.lang.Double getOffsetY()
      Offset from parent layer, Y coordinate.
    • setOffsetY

      public void setOffsetY​(java.lang.Double offsetY)
      Offset from parent layer, Y coordinate.
    • getWidth

      public java.lang.Double getWidth()
      Layer width.
    • setWidth

      public void setWidth​(java.lang.Double width)
      Layer width.
    • getHeight

      public java.lang.Double getHeight()
      Layer height.
    • setHeight

      public void setHeight​(java.lang.Double height)
      Layer height.
    • getTransform

      public java.util.List<java.lang.Double> getTransform()
      Transformation matrix for layer, default is identity matrix
    • setTransform

      public void setTransform​(java.util.List<java.lang.Double> transform)
      Transformation matrix for layer, default is identity matrix
    • getAnchorX

      public java.lang.Double getAnchorX()
      Transform anchor point X, absent if no transform specified
    • setAnchorX

      public void setAnchorX​(java.lang.Double anchorX)
      Transform anchor point X, absent if no transform specified
    • getAnchorY

      public java.lang.Double getAnchorY()
      Transform anchor point Y, absent if no transform specified
    • setAnchorY

      public void setAnchorY​(java.lang.Double anchorY)
      Transform anchor point Y, absent if no transform specified
    • getAnchorZ

      public java.lang.Double getAnchorZ()
      Transform anchor point Z, absent if no transform specified
    • setAnchorZ

      public void setAnchorZ​(java.lang.Double anchorZ)
      Transform anchor point Z, absent if no transform specified
    • getPaintCount

      public java.lang.Integer getPaintCount()
      Indicates how many time this layer has painted.
    • setPaintCount

      public void setPaintCount​(java.lang.Integer paintCount)
      Indicates how many time this layer has painted.
    • isDrawsContent

      public java.lang.Boolean isDrawsContent()
      Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
    • setDrawsContent

      public void setDrawsContent​(java.lang.Boolean drawsContent)
      Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
    • isInvisible

      public java.lang.Boolean isInvisible()
      Set if layer is not visible.
    • setInvisible

      public void setInvisible​(java.lang.Boolean invisible)
      Set if layer is not visible.
    • getScrollRects

      public java.util.List<ScrollRect> getScrollRects()
      Rectangles scrolling on main thread only.
    • setScrollRects

      public void setScrollRects​(java.util.List<ScrollRect> scrollRects)
      Rectangles scrolling on main thread only.
    • getStickyPositionConstraint

      public StickyPositionConstraint getStickyPositionConstraint()
      Sticky position constraint information
    • setStickyPositionConstraint

      public void setStickyPositionConstraint​(StickyPositionConstraint stickyPositionConstraint)
      Sticky position constraint information