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 SummaryNested classes/interfaces inherited from class org.robolectric.shadows.ShadowPathShadowPath.Picker, ShadowPath.Point
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected void__constructor__(Path path) protected voidaddArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle) protected voidaddCircle(float x, float y, float radius, Path.Direction dir) protected voidaddOval(float left, float top, float right, float bottom, Path.Direction dir) protected voidprotected voidprotected voidprotected voidaddRect(float left, float top, float right, float bottom, Path.Direction dir) protected voidaddRect(RectF rect, Path.Direction dir) protected voidaddRoundRect(float left, float top, float right, float bottom, float[] radii, Path.Direction dir) protected voidaddRoundRect(float left, float top, float right, float bottom, float rx, float ry, Path.Direction dir) protected voidaddRoundRect(RectF rect, float[] radii, Path.Direction dir) protected voidaddRoundRect(RectF rect, float rx, float ry, Path.Direction dir) protected float[]approximate(float acceptableError) protected voidarcTo(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean forceMoveTo) protected voidprotected voidprotected voidclose()protected voidcomputeBounds(RectF bounds, boolean exact) protected voidcubicTo(float x1, float y1, float x2, float y2, float x3, float y3) voidfillBounds(RectF bounds) Fills the givenRectFwith the path bounds.protected Path.FillTypeprotected voidincReserve(int extraPtCount) protected booleanisConvex()protected booleanisEmpty()protected booleanprotected booleanprotected voidlineTo(float x, float y) protected voidmoveTo(float x, float y) protected voidoffset(float dx, float dy) protected voidprotected booleanprotected voidquadTo(float x1, float y1, float x2, float y2) protected voidrCubicTo(float x1, float y1, float x2, float y2, float x3, float y3) protected voidreset()protected voidrewind()protected voidrLineTo(float dx, float dy) protected voidrMoveTo(float dx, float dy) protected voidrQuadTo(float dx1, float dy1, float dx2, float dy2) protected voidprotected voidsetFillType(Path.FillType fillType) protected voidsetLastPoint(float dx, float dy) protected voidprotected voidprotected void
- 
Field Details- 
isSimplePathprotected boolean isSimplePath
 
- 
- 
Constructor Details- 
ShadowLegacyPathpublic ShadowLegacyPath()
 
- 
- 
Method Details- 
__constructor__
- 
moveTo
- 
lineTo
- 
quadTo
- 
cubicTo
- 
reset
- 
approximate
- 
getPoints- Specified by:
- getPointsin class- ShadowPath
- 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 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 protected void addOval(float left, float top, float right, float bottom, Path.Direction dir) 
- 
addCircle
- 
addArc@Implementation protected void addArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle) 
- 
addRoundRect
- 
addRoundRect
- 
addRoundRect@Implementation protected void addRoundRect(float left, float top, float right, float bottom, float rx, float ry, Path.Direction dir) 
- 
addRoundRect@Implementation protected void addRoundRect(float left, float top, float right, float bottom, float[] radii, Path.Direction dir) 
- 
addPath
- 
addPath
- 
addPath
- 
offset
- 
offset
- 
setLastPoint
- 
transform
- 
transform
- 
fillBoundsFills the givenRectFwith the path bounds.- Specified by:
- fillBoundsin class- ShadowPath
- Parameters:
- bounds- the RectF to be filled.
 
 
-