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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected floatgetAlpha()protected intgetBottom()protected floatgetCameraDistance()protected booleangetClipToOutline()protected floatgetElevation()protected intgetHeight()protected voidgetInverseMatrix(Matrix matrix)protected intgetLeft()protected voidgetMatrix(Matrix matrix)protected floatgetPivotX()protected floatgetPivotY()protected intgetRight()protected floatgetRotation()protected floatgetRotationX()protected floatgetRotationY()protected floatgetScaleX()protected floatgetScaleY()protected intgetTop()protected floatgetTranslationX()protected floatgetTranslationY()protected floatgetTranslationZ()protected intgetWidth()protected booleanhasIdentityMatrix()protected booleanhasOverlappingRendering()protected booleanisPivotExplicitlySet()protected 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 booleanresetPivot()protected 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)protected booleansetPosition(int left, int top, int right, int bottom)protected booleansetPosition(Rect position)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)
-
-
-
Method Detail
-
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 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 protected int getLeft()
-
setTop
@Implementation protected boolean setTop(int top)
-
getTop
@Implementation protected int getTop()
-
setRight
@Implementation protected boolean setRight(int right)
-
getRight
@Implementation protected int getRight()
-
setBottom
@Implementation protected boolean setBottom(int bottom)
-
getBottom
@Implementation protected int getBottom()
-
getWidth
@Implementation protected int getWidth()
-
getHeight
@Implementation protected int getHeight()
-
setLeftTopRightBottom
@Implementation protected boolean setLeftTopRightBottom(int left, int top, int right, int bottom)
-
setPosition
@Implementation protected boolean setPosition(int left, int top, int right, int bottom)
-
setPosition
@Implementation protected boolean setPosition(Rect position)
-
offsetLeftAndRight
@Implementation protected boolean offsetLeftAndRight(int offset)
-
offsetTopAndBottom
@Implementation protected boolean offsetTopAndBottom(int offset)
-
getInverseMatrix
@Implementation protected void getInverseMatrix(Matrix matrix)
-
getMatrix
@Implementation protected void getMatrix(Matrix matrix)
-
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
-
-