public class Path extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Path.Direction |
static class |
Path.FillType |
| Modifier and Type | Method and Description |
|---|---|
void |
addArc(RectF oval,
float startAngle,
float sweepAngle) |
void |
addCircle(float x,
float y,
float radius,
Path.Direction dir) |
void |
addOval(RectF oval,
Path.Direction dir) |
void |
addPath(Path src) |
void |
addPath(Path src,
float dx,
float dy) |
void |
addPath(Path src,
Matrix matrix) |
void |
addRect(float left,
float top,
float right,
float bottom,
Path.Direction dir) |
void |
addRect(RectF rect,
Path.Direction dir) |
void |
addRoundRect(RectF rect,
float[] radii,
Path.Direction dir) |
void |
addRoundRect(RectF rect,
float rx,
float ry,
Path.Direction dir) |
void |
arcTo(RectF oval,
float startAngle,
float sweepAngle) |
void |
arcTo(RectF oval,
float startAngle,
float sweepAngle,
boolean forceMoveTo) |
void |
close() |
void |
computeBounds(RectF bounds,
boolean exact) |
void |
cubicTo(float x1,
float y1,
float x2,
float y2,
float x3,
float y3) |
protected void |
finalize() |
Path.FillType |
getFillType() |
void |
incReserve(int extraPtCount) |
boolean |
isEmpty() |
boolean |
isInverseFillType() |
boolean |
isRect(RectF rect) |
void |
lineTo(float x,
float y) |
void |
moveTo(float x,
float y) |
void |
offset(float dx,
float dy) |
void |
offset(float dx,
float dy,
Path dst) |
void |
quadTo(float x1,
float y1,
float x2,
float y2) |
void |
rCubicTo(float x1,
float y1,
float x2,
float y2,
float x3,
float y3) |
void |
reset() |
void |
rewind() |
void |
rLineTo(float dx,
float dy) |
void |
rMoveTo(float dx,
float dy) |
void |
rQuadTo(float dx1,
float dy1,
float dx2,
float dy2) |
void |
set(Path src) |
void |
setFillType(Path.FillType ft) |
void |
setLastPoint(float dx,
float dy) |
void |
toggleInverseFillType() |
void |
transform(Matrix matrix) |
void |
transform(Matrix matrix,
Path dst) |
public Path()
public Path(Path src)
public void reset()
public void rewind()
public void set(Path src)
public Path.FillType getFillType()
public void setFillType(Path.FillType ft)
public boolean isInverseFillType()
public void toggleInverseFillType()
public boolean isEmpty()
public boolean isRect(RectF rect)
public void computeBounds(RectF bounds, boolean exact)
public void incReserve(int extraPtCount)
public void moveTo(float x,
float y)
public void rMoveTo(float dx,
float dy)
public void lineTo(float x,
float y)
public void rLineTo(float dx,
float dy)
public void quadTo(float x1,
float y1,
float x2,
float y2)
public void rQuadTo(float dx1,
float dy1,
float dx2,
float dy2)
public void cubicTo(float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
public void rCubicTo(float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
public void arcTo(RectF oval, float startAngle, float sweepAngle, boolean forceMoveTo)
public void arcTo(RectF oval, float startAngle, float sweepAngle)
public void close()
public void addRect(RectF rect, Path.Direction dir)
public void addRect(float left,
float top,
float right,
float bottom,
Path.Direction dir)
public void addOval(RectF oval, Path.Direction dir)
public void addCircle(float x,
float y,
float radius,
Path.Direction dir)
public void addArc(RectF oval, float startAngle, float sweepAngle)
public void addRoundRect(RectF rect, float rx, float ry, Path.Direction dir)
public void addRoundRect(RectF rect, float[] radii, Path.Direction dir)
public void addPath(Path src, float dx, float dy)
public void addPath(Path src)
public void offset(float dx,
float dy,
Path dst)
public void offset(float dx,
float dy)
public void setLastPoint(float dx,
float dy)
public void transform(Matrix matrix)
Copyright © 2008-2013. All Rights Reserved.