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