@Implements(value=android.graphics.Path.class) public class ShadowPath extends java.lang.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__(android.graphics.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,
android.graphics.Path.Direction dir) |
protected void |
addOval(float left,
float top,
float right,
float bottom,
android.graphics.Path.Direction dir) |
protected void |
addPath(android.graphics.Path src) |
protected void |
addPath(android.graphics.Path src,
float dx,
float dy) |
protected void |
addPath(android.graphics.Path src,
android.graphics.Matrix matrix) |
protected void |
addRect(float left,
float top,
float right,
float bottom,
android.graphics.Path.Direction dir) |
protected void |
addRect(android.graphics.RectF rect,
android.graphics.Path.Direction dir) |
protected void |
addRoundRect(float left,
float top,
float right,
float bottom,
float[] radii,
android.graphics.Path.Direction dir) |
protected void |
addRoundRect(float left,
float top,
float right,
float bottom,
float rx,
float ry,
android.graphics.Path.Direction dir) |
protected void |
addRoundRect(android.graphics.RectF rect,
float[] radii,
android.graphics.Path.Direction dir) |
protected void |
addRoundRect(android.graphics.RectF rect,
float rx,
float ry,
android.graphics.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(android.graphics.RectF oval,
float startAngle,
float sweepAngle) |
protected void |
arcTo(android.graphics.RectF oval,
float startAngle,
float sweepAngle,
boolean forceMoveTo) |
protected void |
close() |
protected void |
computeBounds(android.graphics.RectF bounds,
boolean exact) |
protected void |
cubicTo(float x1,
float y1,
float x2,
float y2,
float x3,
float y3) |
void |
fillBounds(android.graphics.RectF bounds)
Fills the given
RectF with the path bounds. |
protected android.graphics.Path.FillType |
getFillType() |
java.util.List<ShadowPath.Point> |
getPoints() |
protected void |
incReserve(int extraPtCount) |
protected boolean |
isConvex() |
protected boolean |
isEmpty() |
protected boolean |
isInverseFillType() |
protected boolean |
isRect(android.graphics.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,
android.graphics.Path dst) |
protected boolean |
op(android.graphics.Path path1,
android.graphics.Path path2,
android.graphics.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(android.graphics.Path src) |
protected void |
setFillType(android.graphics.Path.FillType fillType) |
protected void |
setLastPoint(float dx,
float dy) |
protected void |
toggleInverseFillType() |
protected void |
transform(android.graphics.Matrix matrix) |
protected void |
transform(android.graphics.Matrix matrix,
android.graphics.Path dst) |
@Implementation protected void __constructor__(android.graphics.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 java.util.List<ShadowPath.Point> getPoints()
Path
@Implementation protected void rewind()
@Implementation protected void set(android.graphics.Path src)
@Implementation(minSdk=19) protected boolean op(android.graphics.Path path1, android.graphics.Path path2, android.graphics.Path.Op op)
@Implementation(minSdk=21) protected boolean isConvex()
@Implementation protected android.graphics.Path.FillType getFillType()
@Implementation protected void setFillType(android.graphics.Path.FillType fillType)
@Implementation protected boolean isInverseFillType()
@Implementation protected void toggleInverseFillType()
@Implementation protected boolean isEmpty()
@Implementation protected boolean isRect(android.graphics.RectF rect)
@Implementation protected void computeBounds(android.graphics.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(android.graphics.RectF oval, float startAngle, float sweepAngle)
@Implementation protected void arcTo(android.graphics.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(android.graphics.RectF rect, android.graphics.Path.Direction dir)
@Implementation protected void addRect(float left, float top, float right, float bottom, android.graphics.Path.Direction dir)
@Implementation(minSdk=21) protected void addOval(float left, float top, float right, float bottom, android.graphics.Path.Direction dir)
@Implementation protected void addCircle(float x, float y, float radius, android.graphics.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(android.graphics.RectF rect, float rx, float ry, android.graphics.Path.Direction dir)
@Implementation(minSdk=16) protected void addRoundRect(android.graphics.RectF rect, float[] radii, android.graphics.Path.Direction dir)
@Implementation(minSdk=21) protected void addRoundRect(float left, float top, float right, float bottom, float rx, float ry, android.graphics.Path.Direction dir)
@Implementation(minSdk=21) protected void addRoundRect(float left, float top, float right, float bottom, float[] radii, android.graphics.Path.Direction dir)
@Implementation protected void addPath(android.graphics.Path src, float dx, float dy)
@Implementation protected void addPath(android.graphics.Path src)
@Implementation protected void addPath(android.graphics.Path src, android.graphics.Matrix matrix)
@Implementation protected void offset(float dx, float dy, android.graphics.Path dst)
@Implementation protected void offset(float dx, float dy)
@Implementation protected void setLastPoint(float dx, float dy)
@Implementation protected void transform(android.graphics.Matrix matrix, android.graphics.Path dst)
@Implementation protected void transform(android.graphics.Matrix matrix)
public void fillBounds(android.graphics.RectF bounds)
Fills the given RectF
with the path bounds.
bounds
- the RectF to be filled.