Package org.robolectric.shadows
Class ShadowRenderNode
java.lang.Object
org.robolectric.shadows.ShadowRenderNode
@Implements(className="android.view.RenderNode", isInAndroidSdk=false, minSdk=21, maxSdk=28) public class ShadowRenderNode extends Object
-
Constructor Summary
Constructors Constructor Description ShadowRenderNode()
-
Method Summary
Modifier and Type Method Description protected float
getAlpha()
protected int
getBottom()
protected float
getCameraDistance()
protected boolean
getClipToOutline()
protected float
getElevation()
protected int
getHeight()
protected void
getInverseMatrix(Matrix matrix)
protected int
getLeft()
protected void
getMatrix(Matrix matrix)
protected float
getPivotX()
protected float
getPivotY()
protected int
getRight()
protected float
getRotation()
protected float
getRotationX()
protected float
getRotationY()
protected float
getScaleX()
protected float
getScaleY()
protected int
getTop()
protected float
getTranslationX()
protected float
getTranslationY()
protected float
getTranslationZ()
protected int
getWidth()
protected boolean
hasIdentityMatrix()
protected boolean
hasOverlappingRendering()
protected boolean
isPivotExplicitlySet()
protected boolean
isValid()
protected static boolean
nSetLayerPaint(long renderNode, long paint)
Implementation of native method nSetLayerPaintprotected static boolean
nSetLayerType(long renderNode, int layerType)
Implementation of native method nSetLayerTypeprotected boolean
offsetLeftAndRight(int offset)
protected boolean
offsetTopAndBottom(int offset)
protected boolean
resetPivot()
protected boolean
setAlpha(float alpha)
protected boolean
setBottom(int bottom)
protected boolean
setCameraDistance(float cameraDistance)
protected boolean
setClipToOutline(boolean clipToOutline)
protected boolean
setElevation(float lift)
protected boolean
setHasOverlappingRendering(boolean overlappingRendering)
protected boolean
setLeft(int left)
protected boolean
setLeftTopRightBottom(int left, int top, int right, int bottom)
protected boolean
setPivotX(float pivotX)
protected boolean
setPivotY(float pivotY)
protected boolean
setPosition(int left, int top, int right, int bottom)
protected boolean
setPosition(Rect position)
protected boolean
setRight(int right)
protected boolean
setRotation(float rotation)
protected boolean
setRotationX(float rotationX)
protected boolean
setRotationY(float rotationY)
protected boolean
setScaleX(float scaleX)
protected boolean
setScaleY(float scaleY)
protected boolean
setTop(int top)
protected boolean
setTranslationX(float translationX)
protected boolean
setTranslationY(float translationY)
protected boolean
setTranslationZ(float translationZ)
-
Constructor Details
-
ShadowRenderNode
public ShadowRenderNode()
-
-
Method Details
-
setAlpha
-
getAlpha
-
setCameraDistance
-
getCameraDistance
-
setClipToOutline
-
getClipToOutline
-
setElevation
-
getElevation
-
setHasOverlappingRendering
-
hasOverlappingRendering
-
setRotation
-
getRotation
-
setRotationX
-
getRotationX
-
setRotationY
-
getRotationY
-
setScaleX
-
getScaleX
-
setScaleY
-
getScaleY
-
setTranslationX
-
setTranslationY
-
setTranslationZ
-
getTranslationX
-
getTranslationY
-
getTranslationZ
-
isPivotExplicitlySet
-
resetPivot
-
setPivotX
-
getPivotX
-
setPivotY
-
getPivotY
-
setLeft
-
getLeft
-
setTop
-
getTop
-
setRight
-
getRight
-
setBottom
-
getBottom
-
getWidth
-
getHeight
-
setLeftTopRightBottom
-
setPosition
-
setPosition
-
offsetLeftAndRight
-
offsetTopAndBottom
-
getInverseMatrix
-
getMatrix
-
hasIdentityMatrix
-
isValid
-
nSetLayerType
Implementation of native method nSetLayerType- Parameters:
renderNode
- IgnoredlayerType
- Ignored- Returns:
- Always true
-
nSetLayerPaint
Implementation of native method nSetLayerPaint- Parameters:
renderNode
- Ignoredpaint
- Ignored- Returns:
- Always true
-