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 float
getAlpha()
float
getCameraDistance()
boolean
getClipToOutline()
float
getElevation()
float
getPivotX()
float
getPivotY()
float
getRotation()
float
getRotationX()
float
getRotationY()
float
getScaleX()
float
getScaleY()
float
getTranslationX()
float
getTranslationY()
float
getTranslationZ()
boolean
hasOverlappingRendering()
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 nSetLayerTypeboolean
setAlpha(float alpha)
boolean
setCameraDistance(float cameraDistance)
boolean
setClipToOutline(boolean clipToOutline)
boolean
setElevation(float lift)
boolean
setHasOverlappingRendering(boolean overlappingRendering)
boolean
setPivotX(float pivotX)
boolean
setPivotY(float pivotY)
boolean
setRotation(float rotation)
boolean
setRotationX(float rotationX)
boolean
setRotationY(float rotationY)
boolean
setScaleX(float scaleX)
boolean
setScaleY(float scaleY)
boolean
setTranslationX(float translationX)
boolean
setTranslationY(float translationY)
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
-
setPivotX
-
getPivotX
-
setPivotY
-
getPivotY
-
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
-