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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected floatgetAlpha()protected floatprotected booleanprotected floatintprotected voidgetInverseMatrix(Matrix matrix) protected intgetLeft()protected voidprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected intgetTop()protected floatprotected floatprotected floatintgetWidth()protected booleanprotected booleanprotected booleanprotected booleanisValid()protected static booleannSetLayerPaint(long renderNode, long paint) Implementation of native method nSetLayerPaintprotected static booleannSetLayerType(long renderNode, int layerType) Implementation of native method nSetLayerTypeprotected booleanoffsetLeftAndRight(int offset) protected booleanoffsetTopAndBottom(int offset) protected booleanprotected booleansetAlpha(float alpha) protected booleansetBottom(int bottom) protected booleansetCameraDistance(float cameraDistance) protected booleansetClipToOutline(boolean clipToOutline) protected booleansetElevation(float lift) protected booleansetHasOverlappingRendering(boolean overlappingRendering) protected booleansetLeft(int left) protected booleansetLeftTopRightBottom(int left, int top, int right, int bottom) protected booleansetPivotX(float pivotX) protected booleansetPivotY(float pivotY) booleansetPosition(int left, int top, int right, int bottom) protected booleansetRight(int right) protected booleansetRotation(float rotation) protected booleansetRotationX(float rotationX) protected booleansetRotationY(float rotationY) protected booleansetScaleX(float scaleX) protected booleansetScaleY(float scaleY) protected booleansetTop(int top) protected booleansetTranslationX(float translationX) protected booleansetTranslationY(float translationY) protected booleansetTranslationZ(float translationZ)
-
Constructor Details
-
ShadowRenderNode
public ShadowRenderNode()
-
-
Method Details
-
setAlpha
@Implementation protected boolean setAlpha(float alpha) -
getAlpha
@Implementation protected float getAlpha() -
setCameraDistance
@Implementation protected boolean setCameraDistance(float cameraDistance) -
getCameraDistance
@Implementation protected float getCameraDistance() -
setClipToOutline
@Implementation protected boolean setClipToOutline(boolean clipToOutline) -
getClipToOutline
@Implementation protected boolean getClipToOutline() -
setElevation
@Implementation protected boolean setElevation(float lift) -
getElevation
@Implementation protected float getElevation() -
setHasOverlappingRendering
@Implementation protected boolean setHasOverlappingRendering(boolean overlappingRendering) -
hasOverlappingRendering
@Implementation protected boolean hasOverlappingRendering() -
setRotation
@Implementation protected boolean setRotation(float rotation) -
getRotation
@Implementation protected float getRotation() -
setRotationX
@Implementation protected boolean setRotationX(float rotationX) -
getRotationX
@Implementation protected float getRotationX() -
setRotationY
@Implementation protected boolean setRotationY(float rotationY) -
getRotationY
@Implementation protected float getRotationY() -
setScaleX
@Implementation protected boolean setScaleX(float scaleX) -
getScaleX
@Implementation protected float getScaleX() -
setScaleY
@Implementation protected boolean setScaleY(float scaleY) -
getScaleY
@Implementation protected float getScaleY() -
setTranslationX
@Implementation protected boolean setTranslationX(float translationX) -
setTranslationY
@Implementation protected boolean setTranslationY(float translationY) -
setTranslationZ
@Implementation protected boolean setTranslationZ(float translationZ) -
getTranslationX
@Implementation protected float getTranslationX() -
getTranslationY
@Implementation protected float getTranslationY() -
getTranslationZ
@Implementation protected float getTranslationZ() -
isPivotExplicitlySet
@Implementation protected boolean isPivotExplicitlySet() -
resetPivot
@Implementation(minSdk=28) protected boolean resetPivot() -
setPivotX
@Implementation protected boolean setPivotX(float pivotX) -
getPivotX
@Implementation protected float getPivotX() -
setPivotY
@Implementation protected boolean setPivotY(float pivotY) -
getPivotY
@Implementation protected float getPivotY() -
setLeft
@Implementation protected boolean setLeft(int left) -
getLeft
@Implementation(minSdk=29) protected int getLeft() -
setTop
@Implementation protected boolean setTop(int top) -
getTop
@Implementation(minSdk=29) protected int getTop() -
setRight
@Implementation protected boolean setRight(int right) -
setBottom
@Implementation protected boolean setBottom(int bottom) -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
setLeftTopRightBottom
@Implementation protected boolean setLeftTopRightBottom(int left, int top, int right, int bottom) -
setPosition
public boolean setPosition(int left, int top, int right, int bottom) -
offsetLeftAndRight
@Implementation protected boolean offsetLeftAndRight(int offset) -
offsetTopAndBottom
@Implementation protected boolean offsetTopAndBottom(int offset) -
getInverseMatrix
-
getMatrix
-
hasIdentityMatrix
@Implementation protected boolean hasIdentityMatrix() -
isValid
@Implementation protected boolean isValid() -
nSetLayerType
@Implementation protected static boolean nSetLayerType(long renderNode, int layerType) Implementation of native method nSetLayerType- Parameters:
renderNode- IgnoredlayerType- Ignored- Returns:
- Always true
-
nSetLayerPaint
@Implementation protected static boolean nSetLayerPaint(long renderNode, long paint) Implementation of native method nSetLayerPaint- Parameters:
renderNode- Ignoredpaint- Ignored- Returns:
- Always true
-