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