Package org.robolectric.shadows
Class ShadowRenderNode
java.lang.Object
org.robolectric.shadows.ShadowRenderNode
@Implements(className="android.view.RenderNode",
isInAndroidSdk=false,
maxSdk=28)
public class ShadowRenderNode
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected float
getAlpha()
protected float
protected boolean
protected float
int
protected void
getInverseMatrix
(Matrix matrix) protected int
getLeft()
protected void
protected float
protected float
protected float
protected float
protected float
protected float
protected float
protected int
getTop()
protected float
protected float
protected float
int
getWidth()
protected boolean
protected boolean
protected boolean
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
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) boolean
setPosition
(int left, int top, int right, int bottom) 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
-
setBottom
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
setLeftTopRightBottom
-
setPosition
public boolean setPosition(int left, int top, int right, int bottom) -
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
-