Package org.robolectric.shadows
Class ShadowNativePath
java.lang.Object
org.robolectric.shadows.ShadowPath
org.robolectric.shadows.ShadowNativePath
@Implements(value=android.graphics.Path.class,
minSdk=26,
isInAndroidSdk=false,
callNativeMethodsByDefault=true)
public class ShadowNativePath
extends ShadowPath
Shadow for
Path
that is backed by native code-
Nested Class Summary
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowPath
ShadowPath.Picker, ShadowPath.Point
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
ThePath
static initializer invokes its own native methods.void
fillBounds
(RectF bounds) Fills the givenRectF
with the path bounds.protected static void
nAddArc
(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle) protected static void
nAddCircle
(long nPath, float x, float y, float radius, int dir) protected static void
nAddOval
(long nPath, float left, float top, float right, float bottom, int dir) protected static void
nAddPath
(long nPath, long src) protected static void
nAddPath
(long nPath, long src, float dx, float dy) protected static void
nAddPath
(long nPath, long src, long matrix) protected static void
nAddRect
(long nPath, float left, float top, float right, float bottom, int dir) protected static void
nAddRoundRect
(long nPath, float left, float top, float right, float bottom, float[] radii, int dir) protected static void
nAddRoundRect
(long nPath, float left, float top, float right, float bottom, float rx, float ry, int dir) protected static float[]
nApproximate
(long nPath, float error) protected static void
nArcTo
(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean forceMoveTo) protected static void
nClose
(long nPath) protected static void
nComputeBounds
(long nPath, RectF bounds) protected static void
nConicTo
(long nPath, float x1, float y1, float x2, float y2, float weight) protected static void
nCubicTo
(long nPath, float x1, float y1, float x2, float y2, float x3, float y3) protected static int
nGetFillType
(long nPath) protected static long
protected static int
nGetGenerationID
(long nativePath) protected static void
nIncReserve
(long nPath, int extraPtCount) protected static long
nInit()
protected static long
nInit
(long nPath) protected static boolean
nInterpolate
(long startPath, long endPath, float t, long interpolatedPath) protected static boolean
nIsConvex
(long nPath) protected static boolean
nIsEmpty
(long nPath) protected static boolean
nIsInterpolatable
(long startPath, long endPath) protected static boolean
protected static void
nLineTo
(long nPath, float x, float y) protected static void
nMoveTo
(long nPath, float x, float y) protected static void
nOffset
(long nPath, float dx, float dy) protected static boolean
nOp
(long path1, long path2, int op, long result) protected static void
nQuadTo
(long nPath, float x1, float y1, float x2, float y2) protected static void
nRConicTo
(long nPath, float dx1, float dy1, float dx2, float dy2, float weight) protected static void
nRCubicTo
(long nPath, float x1, float y1, float x2, float y2, float x3, float y3) protected static void
nReset
(long nPath) protected static void
nRewind
(long nPath) protected static void
nRLineTo
(long nPath, float dx, float dy) protected static void
nRMoveTo
(long nPath, float dx, float dy) protected static void
nRQuadTo
(long nPath, float dx1, float dy1, float dx2, float dy2) protected static void
nSet
(long nativeDst, long nSrc) protected static void
nSetFillType
(long nPath, int ft) protected static void
nSetLastPoint
(long nPath, float dx, float dy) protected static void
nTransform
(long nPath, long matrix) protected static void
nTransform
(long nPath, long matrix, long dstPath)
-
Constructor Details
-
ShadowNativePath
public ShadowNativePath()
-
-
Method Details
-
__staticInitializer__
ThePath
static initializer invokes its own native methods. This has to be deferred starting in Android V. -
nInit
-
nInit
-
nGetFinalizer
-
nSet
-
nComputeBounds
@Implementation(minSdk=26, maxSdk=34) protected static void nComputeBounds(long nPath, RectF bounds) -
nIncReserve
@Implementation(minSdk=26, maxSdk=34) protected static void nIncReserve(long nPath, int extraPtCount) -
nMoveTo
-
nRMoveTo
@Implementation(minSdk=26, maxSdk=34) protected static void nRMoveTo(long nPath, float dx, float dy) -
nLineTo
-
nRLineTo
@Implementation(minSdk=26, maxSdk=34) protected static void nRLineTo(long nPath, float dx, float dy) -
nQuadTo
@Implementation(minSdk=26, maxSdk=34) protected static void nQuadTo(long nPath, float x1, float y1, float x2, float y2) -
nRQuadTo
@Implementation(minSdk=26, maxSdk=34) protected static void nRQuadTo(long nPath, float dx1, float dy1, float dx2, float dy2) -
nConicTo
@Implementation(minSdk=34, maxSdk=34) protected static void nConicTo(long nPath, float x1, float y1, float x2, float y2, float weight) -
nRConicTo
@Implementation(minSdk=34, maxSdk=34) protected static void nRConicTo(long nPath, float dx1, float dy1, float dx2, float dy2, float weight) -
nCubicTo
@Implementation(minSdk=26, maxSdk=34) protected static void nCubicTo(long nPath, float x1, float y1, float x2, float y2, float x3, float y3) -
nRCubicTo
@Implementation(minSdk=26, maxSdk=34) protected static void nRCubicTo(long nPath, float x1, float y1, float x2, float y2, float x3, float y3) -
nArcTo
@Implementation(minSdk=26, maxSdk=34) protected static void nArcTo(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean forceMoveTo) -
nClose
-
nAddRect
@Implementation(minSdk=26, maxSdk=34) protected static void nAddRect(long nPath, float left, float top, float right, float bottom, int dir) -
nAddOval
@Implementation(minSdk=26, maxSdk=34) protected static void nAddOval(long nPath, float left, float top, float right, float bottom, int dir) -
nAddCircle
@Implementation(minSdk=26, maxSdk=34) protected static void nAddCircle(long nPath, float x, float y, float radius, int dir) -
nAddArc
@Implementation(minSdk=26, maxSdk=34) protected static void nAddArc(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle) -
nAddRoundRect
@Implementation(minSdk=26, maxSdk=34) protected static void nAddRoundRect(long nPath, float left, float top, float right, float bottom, float rx, float ry, int dir) -
nAddRoundRect
@Implementation(minSdk=26, maxSdk=34) protected static void nAddRoundRect(long nPath, float left, float top, float right, float bottom, float[] radii, int dir) -
nAddPath
@Implementation(minSdk=26, maxSdk=34) protected static void nAddPath(long nPath, long src, float dx, float dy) -
nAddPath
-
nAddPath
@Implementation(minSdk=26, maxSdk=34) protected static void nAddPath(long nPath, long src, long matrix) -
nOffset
-
nSetLastPoint
@Implementation(minSdk=26, maxSdk=34) protected static void nSetLastPoint(long nPath, float dx, float dy) -
nTransform
@Implementation(minSdk=26, maxSdk=34) protected static void nTransform(long nPath, long matrix, long dstPath) -
nTransform
-
nOp
@Implementation(minSdk=26, maxSdk=34) protected static boolean nOp(long path1, long path2, int op, long result) -
nIsRect
-
nReset
-
nRewind
-
nIsEmpty
-
nIsConvex
-
nGetFillType
-
nSetFillType
-
nApproximate
@Implementation(minSdk=26, maxSdk=34) protected static float[] nApproximate(long nPath, float error) -
nInterpolate
@Implementation(minSdk=34, maxSdk=34) protected static boolean nInterpolate(long startPath, long endPath, float t, long interpolatedPath) -
nGetGenerationID
-
nIsInterpolatable
@Implementation(minSdk=34, maxSdk=34) protected static boolean nIsInterpolatable(long startPath, long endPath) -
getPoints
- Specified by:
getPoints
in classShadowPath
- Returns:
- all the points that have been added to the
Path
-
fillBounds
Description copied from class:ShadowPath
Fills the givenRectF
with the path bounds.- Specified by:
fillBounds
in classShadowPath
- Parameters:
bounds
- the RectF to be filled.
-