android.graphics
Class PathMeasure
java.lang.Object
android.graphics.PathMeasure
public class PathMeasure
- extends Object
POSITION_MATRIX_FLAG
public static final int POSITION_MATRIX_FLAG
- See Also:
- Constant Field Values
TANGENT_MATRIX_FLAG
public static final int TANGENT_MATRIX_FLAG
- See Also:
- Constant Field Values
PathMeasure
public PathMeasure()
PathMeasure
public PathMeasure(Path path,
boolean forceClosed)
setPath
public void setPath(Path path,
boolean forceClosed)
getLength
public float getLength()
getPosTan
public boolean getPosTan(float distance,
float[] pos,
float[] tan)
getMatrix
public boolean getMatrix(float distance,
Matrix matrix,
int flags)
getSegment
public boolean getSegment(float startD,
float stopD,
Path dst,
boolean startWithMoveTo)
isClosed
public boolean isClosed()
nextContour
public boolean nextContour()
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable
Copyright © 2008-2012. All Rights Reserved.