-
public final class LayerInformation about a compositing layer.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringlayerIdprivate final StringparentLayerIdprivate final IntegerbackendNodeIdprivate final DoubleoffsetXprivate final DoubleoffsetYprivate final Doublewidthprivate final Doubleheightprivate final List<Double>transformprivate final DoubleanchorXprivate final DoubleanchorYprivate final DoubleanchorZprivate final IntegerpaintCountprivate final BooleandrawsContentprivate final Booleaninvisibleprivate final List<ScrollRect>scrollRectsprivate final StickyPositionConstraintstickyPositionConstraint
-
Constructor Summary
Constructors Constructor Description Layer(String layerId, String parentLayerId, Integer backendNodeId, Double offsetX, Double offsetY, Double width, Double height, List<Double> transform, Double anchorX, Double anchorY, Double anchorZ, Integer paintCount, Boolean drawsContent, Boolean invisible, List<ScrollRect> scrollRects, StickyPositionConstraint stickyPositionConstraint)
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final Stringcomponent2()final Integercomponent3()final Doublecomponent4()final Doublecomponent5()final Doublecomponent6()final Doublecomponent7()final List<Double>component8()final Doublecomponent9()final Doublecomponent10()final Doublecomponent11()final Integercomponent12()final Booleancomponent13()final Booleancomponent14()final List<ScrollRect>component15()final StickyPositionConstraintcomponent16()final Layercopy(String layerId, String parentLayerId, Integer backendNodeId, Double offsetX, Double offsetY, Double width, Double height, List<Double> transform, Double anchorX, Double anchorY, Double anchorZ, Integer paintCount, Boolean drawsContent, Boolean invisible, List<ScrollRect> scrollRects, StickyPositionConstraint stickyPositionConstraint)final StringgetLayerId()The unique id for this layer. final StringgetParentLayerId()The id of parent (not present for root). final IntegergetBackendNodeId()The backend id for the node associated with this layer. final DoublegetOffsetX()Offset from parent layer, X coordinate. final DoublegetOffsetY()Offset from parent layer, Y coordinate. final DoublegetWidth()Layer width. final DoublegetHeight()Layer height. final List<Double>getTransform()Transformation matrix for layer, default is identity matrix final DoublegetAnchorX()Transform anchor point X, absent if no transform specified final DoublegetAnchorY()Transform anchor point Y, absent if no transform specified final DoublegetAnchorZ()Transform anchor point Z, absent if no transform specified final IntegergetPaintCount()Indicates how many time this layer has painted. final BooleangetDrawsContent()Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only. final BooleangetInvisible()Set if layer is not visible. final List<ScrollRect>getScrollRects()Rectangles scrolling on main thread only. final StickyPositionConstraintgetStickyPositionConstraint()Sticky position constraint information -
-
Constructor Detail
-
Layer
Layer(String layerId, String parentLayerId, Integer backendNodeId, Double offsetX, Double offsetY, Double width, Double height, List<Double> transform, Double anchorX, Double anchorY, Double anchorZ, Integer paintCount, Boolean drawsContent, Boolean invisible, List<ScrollRect> scrollRects, StickyPositionConstraint stickyPositionConstraint)
-
-
Method Detail
-
component1
final String component1()
-
component2
final String component2()
-
component3
final Integer component3()
-
component4
final Double component4()
-
component5
final Double component5()
-
component6
final Double component6()
-
component7
final Double component7()
-
component8
final List<Double> component8()
-
component9
final Double component9()
-
component10
final Double component10()
-
component11
final Double component11()
-
component12
final Integer component12()
-
component13
final Boolean component13()
-
component14
final Boolean component14()
-
component15
final List<ScrollRect> component15()
-
component16
final StickyPositionConstraint component16()
-
copy
final Layer copy(String layerId, String parentLayerId, Integer backendNodeId, Double offsetX, Double offsetY, Double width, Double height, List<Double> transform, Double anchorX, Double anchorY, Double anchorZ, Integer paintCount, Boolean drawsContent, Boolean invisible, List<ScrollRect> scrollRects, StickyPositionConstraint stickyPositionConstraint)
-
getLayerId
final String getLayerId()
The unique id for this layer.
-
getParentLayerId
final String getParentLayerId()
The id of parent (not present for root).
-
getBackendNodeId
final Integer getBackendNodeId()
The backend id for the node associated with this layer.
-
getOffsetX
final Double getOffsetX()
Offset from parent layer, X coordinate.
-
getOffsetY
final Double getOffsetY()
Offset from parent layer, Y coordinate.
-
getTransform
final List<Double> getTransform()
Transformation matrix for layer, default is identity matrix
-
getAnchorX
final Double getAnchorX()
Transform anchor point X, absent if no transform specified
-
getAnchorY
final Double getAnchorY()
Transform anchor point Y, absent if no transform specified
-
getAnchorZ
final Double getAnchorZ()
Transform anchor point Z, absent if no transform specified
-
getPaintCount
final Integer getPaintCount()
Indicates how many time this layer has painted.
-
getDrawsContent
final Boolean getDrawsContent()
Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
-
getInvisible
final Boolean getInvisible()
Set if layer is not visible.
-
getScrollRects
final List<ScrollRect> getScrollRects()
Rectangles scrolling on main thread only.
-
getStickyPositionConstraint
final StickyPositionConstraint getStickyPositionConstraint()
Sticky position constraint information
-
-
-
-