Class LayerTree.Layer

    • Field Summary

       
      Serializable ID
      Modifier and Type Field
      protected static long serialVersionUID
      For Object Serialization.
       
      Type Properties
      Modifier and Type Field
      Number anchorX
      Transform anchor point X, absent if no transform specified

      OPTIONAL
      Number anchorY
      Transform anchor point Y, absent if no transform specified

      OPTIONAL
      Number anchorZ
      Transform anchor point Z, absent if no transform specified

      OPTIONAL
      Integer backendNodeId
      The backend id for the node associated with this layer.
      boolean drawsContent
      Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
      Number height
      Layer height.
      Boolean invisible
      Set if layer is not visible.
      String layerId
      The unique id for this layer.
      Number offsetX
      Offset from parent layer, X coordinate.
      Number offsetY
      Offset from parent layer, Y coordinate.
      int paintCount
      Indicates how many time this layer has painted.
      String parentLayerId
      The id of parent (not present for root).
      LayerTree.ScrollRect[] scrollRects
      Rectangles scrolling on main thread only.
      LayerTree.StickyPositionConstraint stickyPositionConstraint
      Sticky position constraint information

      OPTIONAL
      Number[] transform
      Transformation matrix for layer, default is identity matrix

      OPTIONAL
      Number width
      Layer width.
    • Constructor Summary

      Constructors 
      Constructor Description
      Layer​(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
      Layer​(JsonObject jo)
      JSON Object Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object other)
      Checks whether 'this' equals an input Java-Object
      int hashCode()
      Generates a Hash-Code for 'this' instance
      boolean[] optionals()
      Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Layer

        🡅  🡇     🗕  🗗  🗖
        public Layer​(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
        Parameters:
        layerId - The unique id for this layer.
        parentLayerId - The id of parent (not present for root).
        OPTIONAL
        backendNodeId - The backend id for the node associated with this layer.
        OPTIONAL
        offsetX - Offset from parent layer, X coordinate.
        offsetY - Offset from parent layer, Y coordinate.
        width - Layer width.
        height - Layer height.
        transform - Transformation matrix for layer, default is identity matrix
        OPTIONAL
        anchorX - Transform anchor point X, absent if no transform specified
        OPTIONAL
        anchorY - Transform anchor point Y, absent if no transform specified
        OPTIONAL
        anchorZ - Transform anchor point Z, absent if no transform specified
        OPTIONAL
        paintCount - Indicates how many time this layer has painted.
        drawsContent - Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
        invisible - Set if layer is not visible.
        OPTIONAL
        scrollRects - Rectangles scrolling on main thread only.
        OPTIONAL
        stickyPositionConstraint - Sticky position constraint information
        OPTIONAL
    • Method Detail

      • optionals

        🡅  🡇     🗕  🗗  🗖
        public boolean[] optionals()
        Description copied from class: BaseType
        Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding a JsonObject to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array position TRUE.

        NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...
        Specified by:
        optionals in class BaseType
        Returns:
        A boolean[] array whose length is precisely equal to the number of fields in the Java Object.
      • equals

        🡅  🡇     🗕  🗗  🗖
        public boolean equals​(java.lang.Object other)
        Checks whether 'this' equals an input Java-Object
        Overrides:
        equals in class java.lang.Object
      • hashCode

        🡅     🗕  🗗  🗖
        public int hashCode()
        Generates a Hash-Code for 'this' instance
        Overrides:
        hashCode in class java.lang.Object