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) public class ShadowNativePath extends ShadowPath
Shadow forPaththat is backed by native code
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowPath
ShadowPath.Picker, ShadowPath.Point
-
-
Constructor Summary
Constructors Constructor Description ShadowNativePath()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillBounds(RectF bounds)Fills the givenRectFwith the path bounds.List<ShadowPath.Point>getPoints()protected static voidnAddArc(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle)protected static voidnAddCircle(long nPath, float x, float y, float radius, int dir)protected static voidnAddOval(long nPath, float left, float top, float right, float bottom, int dir)protected static voidnAddPath(long nPath, long src)protected static voidnAddPath(long nPath, long src, float dx, float dy)protected static voidnAddPath(long nPath, long src, long matrix)protected static voidnAddRect(long nPath, float left, float top, float right, float bottom, int dir)protected static voidnAddRoundRect(long nPath, float left, float top, float right, float bottom, float[] radii, int dir)protected static voidnAddRoundRect(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 voidnArcTo(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean forceMoveTo)protected static voidnClose(long nPath)protected static voidnComputeBounds(long nPath, RectF bounds)protected static voidnCubicTo(long nPath, float x1, float y1, float x2, float y2, float x3, float y3)protected static intnGetFillType(long nPath)protected static longnGetFinalizer()protected static voidnIncReserve(long nPath, int extraPtCount)protected static longnInit()protected static longnInit(long nPath)protected static booleannIsConvex(long nPath)protected static booleannIsEmpty(long nPath)protected static booleannIsRect(long nPath, RectF rect)protected static voidnLineTo(long nPath, float x, float y)protected static voidnMoveTo(long nPath, float x, float y)protected static voidnOffset(long nPath, float dx, float dy)protected static booleannOp(long path1, long path2, int op, long result)protected static voidnQuadTo(long nPath, float x1, float y1, float x2, float y2)protected static voidnRCubicTo(long nPath, float x1, float y1, float x2, float y2, float x3, float y3)protected static voidnReset(long nPath)protected static voidnRewind(long nPath)protected static voidnRLineTo(long nPath, float dx, float dy)protected static voidnRMoveTo(long nPath, float dx, float dy)protected static voidnRQuadTo(long nPath, float dx1, float dy1, float dx2, float dy2)protected static voidnSet(long nativeDst, long nSrc)protected static voidnSetFillType(long nPath, int ft)protected static voidnSetLastPoint(long nPath, float dx, float dy)protected static voidnTransform(long nPath, long matrix)protected static voidnTransform(long nPath, long matrix, long dstPath)
-
-
-
Method Detail
-
nInit
@Implementation(minSdk=26) protected static long nInit()
-
nInit
@Implementation(minSdk=26) protected static long nInit(long nPath)
-
nGetFinalizer
@Implementation(minSdk=28) protected static long nGetFinalizer()
-
nSet
@Implementation(minSdk=26) protected static void nSet(long nativeDst, long nSrc)
-
nComputeBounds
@Implementation(minSdk=26) protected static void nComputeBounds(long nPath, RectF bounds)
-
nIncReserve
@Implementation(minSdk=26) protected static void nIncReserve(long nPath, int extraPtCount)
-
nMoveTo
@Implementation(minSdk=26) protected static void nMoveTo(long nPath, float x, float y)
-
nRMoveTo
@Implementation(minSdk=26) protected static void nRMoveTo(long nPath, float dx, float dy)
-
nLineTo
@Implementation(minSdk=26) protected static void nLineTo(long nPath, float x, float y)
-
nRLineTo
@Implementation(minSdk=26) protected static void nRLineTo(long nPath, float dx, float dy)
-
nQuadTo
@Implementation(minSdk=26) protected static void nQuadTo(long nPath, float x1, float y1, float x2, float y2)
-
nRQuadTo
@Implementation(minSdk=26) protected static void nRQuadTo(long nPath, float dx1, float dy1, float dx2, float dy2)
-
nCubicTo
@Implementation(minSdk=26) protected static void nCubicTo(long nPath, float x1, float y1, float x2, float y2, float x3, float y3)
-
nRCubicTo
@Implementation(minSdk=26) protected static void nRCubicTo(long nPath, float x1, float y1, float x2, float y2, float x3, float y3)
-
nArcTo
@Implementation(minSdk=26) protected static void nArcTo(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean forceMoveTo)
-
nClose
@Implementation(minSdk=26) protected static void nClose(long nPath)
-
nAddRect
@Implementation(minSdk=26) protected static void nAddRect(long nPath, float left, float top, float right, float bottom, int dir)
-
nAddOval
@Implementation(minSdk=26) protected static void nAddOval(long nPath, float left, float top, float right, float bottom, int dir)
-
nAddCircle
@Implementation(minSdk=26) protected static void nAddCircle(long nPath, float x, float y, float radius, int dir)
-
nAddArc
@Implementation(minSdk=26) protected static void nAddArc(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle)
-
nAddRoundRect
@Implementation(minSdk=26) protected static void nAddRoundRect(long nPath, float left, float top, float right, float bottom, float rx, float ry, int dir)
-
nAddRoundRect
@Implementation(minSdk=26) protected static void nAddRoundRect(long nPath, float left, float top, float right, float bottom, float[] radii, int dir)
-
nAddPath
@Implementation(minSdk=26) protected static void nAddPath(long nPath, long src, float dx, float dy)
-
nAddPath
@Implementation(minSdk=26) protected static void nAddPath(long nPath, long src)
-
nAddPath
@Implementation(minSdk=26) protected static void nAddPath(long nPath, long src, long matrix)
-
nOffset
@Implementation(minSdk=26) protected static void nOffset(long nPath, float dx, float dy)
-
nSetLastPoint
@Implementation(minSdk=26) protected static void nSetLastPoint(long nPath, float dx, float dy)
-
nTransform
@Implementation(minSdk=26) protected static void nTransform(long nPath, long matrix, long dstPath)
-
nTransform
@Implementation(minSdk=26) protected static void nTransform(long nPath, long matrix)
-
nOp
@Implementation(minSdk=26) protected static boolean nOp(long path1, long path2, int op, long result)
-
nIsRect
@Implementation(minSdk=26) protected static boolean nIsRect(long nPath, RectF rect)
-
nReset
@Implementation(minSdk=26) protected static void nReset(long nPath)
-
nRewind
@Implementation(minSdk=26) protected static void nRewind(long nPath)
-
nIsEmpty
@Implementation(minSdk=26) protected static boolean nIsEmpty(long nPath)
-
nIsConvex
@Implementation(minSdk=26) protected static boolean nIsConvex(long nPath)
-
nGetFillType
@Implementation(minSdk=26) protected static int nGetFillType(long nPath)
-
nSetFillType
@Implementation(minSdk=26) protected static void nSetFillType(long nPath, int ft)
-
nApproximate
@Implementation(minSdk=26) protected static float[] nApproximate(long nPath, float error)
-
getPoints
public List<ShadowPath.Point> getPoints()
- Specified by:
getPointsin classShadowPath- Returns:
- all the points that have been added to the
Path
-
fillBounds
public void fillBounds(RectF bounds)
Description copied from class:ShadowPathFills the givenRectFwith the path bounds.- Specified by:
fillBoundsin classShadowPath- Parameters:
bounds- the RectF to be filled.
-
-