Package org.robolectric.shadows
Class ShadowLegacyPath
java.lang.Object
org.robolectric.shadows.ShadowPath
org.robolectric.shadows.ShadowLegacyPath
@Implements(value=android.graphics.Path.class,
isInAndroidSdk=false)
public class ShadowLegacyPath
extends ShadowPath
The shadow only supports straight-line paths.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowPath
ShadowPath.Picker, ShadowPath.Point
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
__constructor__
(Path path) protected void
addArc
(float left, float top, float right, float bottom, float startAngle, float sweepAngle) protected void
addCircle
(float x, float y, float radius, Path.Direction dir) protected void
addOval
(float left, float top, float right, float bottom, Path.Direction dir) protected void
protected void
protected void
protected void
addRect
(float left, float top, float right, float bottom, Path.Direction dir) protected void
addRect
(RectF rect, Path.Direction dir) protected void
addRoundRect
(float left, float top, float right, float bottom, float[] radii, Path.Direction dir) protected void
addRoundRect
(float left, float top, float right, float bottom, float rx, float ry, Path.Direction dir) protected void
addRoundRect
(RectF rect, float[] radii, Path.Direction dir) protected void
addRoundRect
(RectF rect, float rx, float ry, Path.Direction dir) protected float[]
approximate
(float acceptableError) protected void
arcTo
(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean forceMoveTo) protected void
protected void
protected void
close()
protected void
computeBounds
(RectF bounds, boolean exact) protected void
cubicTo
(float x1, float y1, float x2, float y2, float x3, float y3) void
fillBounds
(RectF bounds) Fills the givenRectF
with the path bounds.protected Path.FillType
protected void
incReserve
(int extraPtCount) protected boolean
isConvex()
protected boolean
isEmpty()
protected boolean
protected boolean
protected void
lineTo
(float x, float y) protected void
moveTo
(float x, float y) protected void
offset
(float dx, float dy) protected void
protected boolean
protected void
quadTo
(float x1, float y1, float x2, float y2) protected void
rCubicTo
(float x1, float y1, float x2, float y2, float x3, float y3) protected void
reset()
protected void
rewind()
protected void
rLineTo
(float dx, float dy) protected void
rMoveTo
(float dx, float dy) protected void
rQuadTo
(float dx1, float dy1, float dx2, float dy2) protected void
protected void
setFillType
(Path.FillType fillType) protected void
setLastPoint
(float dx, float dy) protected void
protected void
protected void
-
Field Details
-
isSimplePath
protected boolean isSimplePath
-
-
Constructor Details
-
ShadowLegacyPath
public ShadowLegacyPath()
-
-
Method Details
-
__constructor__
-
moveTo
-
lineTo
-
quadTo
-
cubicTo
-
reset
-
approximate
-
getPoints
- Specified by:
getPoints
in classShadowPath
- Returns:
- all the points that have been added to the
Path
-
rewind
-
set
-
op
-
isConvex
-
getFillType
-
setFillType
-
isInverseFillType
-
toggleInverseFillType
-
isEmpty
-
isRect
-
computeBounds
-
incReserve
-
rMoveTo
-
rLineTo
-
rQuadTo
-
rCubicTo
-
arcTo
-
arcTo
@Implementation protected void arcTo(RectF oval, float startAngle, float sweepAngle, boolean forceMoveTo) -
arcTo
@Implementation(minSdk=21) protected void arcTo(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean forceMoveTo) -
close
-
addRect
-
addRect
@Implementation protected void addRect(float left, float top, float right, float bottom, Path.Direction dir) -
addOval
@Implementation(minSdk=21) protected void addOval(float left, float top, float right, float bottom, Path.Direction dir) -
addCircle
-
addArc
@Implementation(minSdk=21) protected void addArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle) -
addRoundRect
@Implementation(minSdk=16) protected void addRoundRect(RectF rect, float rx, float ry, Path.Direction dir) -
addRoundRect
@Implementation(minSdk=16) protected void addRoundRect(RectF rect, float[] radii, Path.Direction dir) -
addRoundRect
@Implementation(minSdk=21) protected void addRoundRect(float left, float top, float right, float bottom, float rx, float ry, Path.Direction dir) -
addRoundRect
@Implementation(minSdk=21) protected void addRoundRect(float left, float top, float right, float bottom, float[] radii, Path.Direction dir) -
addPath
-
addPath
-
addPath
-
offset
-
offset
-
setLastPoint
-
transform
-
transform
-
fillBounds
Fills the givenRectF
with the path bounds.- Specified by:
fillBounds
in classShadowPath
- Parameters:
bounds
- the RectF to be filled.
-