android.graphics
Class PathMeasure

java.lang.Object
  extended by android.graphics.PathMeasure

public class PathMeasure
extends Object


Field Summary
static int POSITION_MATRIX_FLAG
           
static int TANGENT_MATRIX_FLAG
           
 
Constructor Summary
PathMeasure()
           
PathMeasure(Path path, boolean forceClosed)
           
 
Method Summary
protected  void finalize()
           
 float getLength()
           
 boolean getMatrix(float distance, Matrix matrix, int flags)
           
 boolean getPosTan(float distance, float[] pos, float[] tan)
           
 boolean getSegment(float startD, float stopD, Path dst, boolean startWithMoveTo)
           
 boolean isClosed()
           
 boolean nextContour()
           
 void setPath(Path path, boolean forceClosed)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

PathMeasure

public PathMeasure()

PathMeasure

public PathMeasure(Path path,
                   boolean forceClosed)
Method Detail

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.