Java android.graphics PathMeasure fields, constructors, methods, implement or subclass

Example usage for Java android.graphics PathMeasure fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.graphics PathMeasure.

The text is from its open source code.

Constructor

PathMeasure(Path path, boolean forceClosed)
Create a PathMeasure object associated with the specified path object (already created and specified).
PathMeasure()
Create an empty PathMeasure object.

Method

floatgetLength()
Return the total length of the current contour, or 0 if no path is associated with this measure object.
booleangetPosTan(float distance, float pos[], float tan[])
Pins distance to 0 <= distance <= getLength(), and then computes the corresponding position and tangent.
booleannextContour()
Move to the next contour in the path.
voidsetPath(Path path, boolean forceClosed)
Assign a new path, or null to have none.