@Implements(value=android.graphics.Path.class) public class ShadowPath extends Object
The shadow only supports straight-line paths.
Modifier and Type | Class and Description |
---|---|
static class |
ShadowPath.Point |
Modifier and Type | Field and Description |
---|---|
protected boolean |
isSimplePath |
Constructor and Description |
---|
ShadowPath() |
Modifier and Type | Method and Description |
---|---|
protected 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 |
addPath(Path src) |
protected void |
addPath(Path src,
float dx,
float dy) |
protected void |
addPath(Path src,
Matrix matrix) |
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 |
arcTo(RectF oval,
float startAngle,
float sweepAngle) |
protected void |
arcTo(RectF oval,
float startAngle,
float sweepAngle,
boolean forceMoveTo) |
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 given
RectF with the path bounds. |
protected Path.FillType |
getFillType() |
List<ShadowPath.Point> |
getPoints() |
protected void |
incReserve(int extraPtCount) |
protected boolean |
isConvex() |
protected boolean |
isEmpty() |
protected boolean |
isInverseFillType() |
protected boolean |
isRect(RectF rect) |
protected void |
lineTo(float x,
float y) |
protected void |
moveTo(float x,
float y) |
protected void |
offset(float dx,
float dy) |
protected void |
offset(float dx,
float dy,
Path dst) |
protected boolean |
op(Path path1,
Path path2,
Path.Op op) |
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 |
set(Path src) |
protected void |
setFillType(Path.FillType fillType) |
protected void |
setLastPoint(float dx,
float dy) |
protected void |
toggleInverseFillType() |
protected void |
transform(Matrix matrix) |
protected void |
transform(Matrix matrix,
Path dst) |
@Implementation protected void __constructor__(Path path)
@Implementation protected void moveTo(float x, float y)
@Implementation protected void lineTo(float x, float y)
@Implementation protected void quadTo(float x1, float y1, float x2, float y2)
@Implementation protected void cubicTo(float x1, float y1, float x2, float y2, float x3, float y3)
@Implementation protected void reset()
@Implementation(minSdk=21) protected float[] approximate(float acceptableError)
public List<ShadowPath.Point> getPoints()
Path
@Implementation protected void rewind()
@Implementation protected void set(Path src)
@Implementation(minSdk=19) protected boolean op(Path path1, Path path2, Path.Op op)
@Implementation(minSdk=21) protected boolean isConvex()
@Implementation protected Path.FillType getFillType()
@Implementation protected void setFillType(Path.FillType fillType)
@Implementation protected boolean isInverseFillType()
@Implementation protected void toggleInverseFillType()
@Implementation protected boolean isEmpty()
@Implementation protected boolean isRect(RectF rect)
@Implementation protected void computeBounds(RectF bounds, boolean exact)
@Implementation protected void incReserve(int extraPtCount)
@Implementation protected void rMoveTo(float dx, float dy)
@Implementation protected void rLineTo(float dx, float dy)
@Implementation protected void rQuadTo(float dx1, float dy1, float dx2, float dy2)
@Implementation protected void rCubicTo(float x1, float y1, float x2, float y2, float x3, float y3)
@Implementation protected void arcTo(RectF oval, float startAngle, float sweepAngle)
@Implementation protected void arcTo(RectF oval, float startAngle, float sweepAngle, boolean forceMoveTo)
@Implementation(minSdk=21) protected void arcTo(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean forceMoveTo)
@Implementation protected void close()
@Implementation protected void addRect(RectF rect, Path.Direction dir)
@Implementation protected void addRect(float left, float top, float right, float bottom, Path.Direction dir)
@Implementation(minSdk=21) protected void addOval(float left, float top, float right, float bottom, Path.Direction dir)
@Implementation protected void addCircle(float x, float y, float radius, Path.Direction dir)
@Implementation(minSdk=21) protected void addArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle)
@Implementation(minSdk=16) protected void addRoundRect(RectF rect, float rx, float ry, Path.Direction dir)
@Implementation(minSdk=16) protected void addRoundRect(RectF rect, float[] radii, Path.Direction dir)
@Implementation(minSdk=21) protected void addRoundRect(float left, float top, float right, float bottom, float rx, float ry, Path.Direction dir)
@Implementation(minSdk=21) protected void addRoundRect(float left, float top, float right, float bottom, float[] radii, Path.Direction dir)
@Implementation protected void addPath(Path src, float dx, float dy)
@Implementation protected void addPath(Path src)
@Implementation protected void addPath(Path src, Matrix matrix)
@Implementation protected void offset(float dx, float dy, Path dst)
@Implementation protected void offset(float dx, float dy)
@Implementation protected void setLastPoint(float dx, float dy)
@Implementation protected void transform(Matrix matrix, Path dst)
@Implementation protected void transform(Matrix matrix)