Lines Matching refs:Path
23 * of a path, and/or to find the position and tangent along it, call
26 * Note that once a path is associated with the measure object, it is
27 * undefined if the path is subsequently modified and the the measure object
28 * is used. If the path is modified, you must call setPath with the path.
35 * Create a PathMeasure object associated with the specified path object
37 * path's length, and the position and tangent of any position along the
38 * path.
40 * Note that once a path is associated with the measure object, it is
41 * undefined if the path is subsequently modified and the the measure object
42 * is used. If the path is modified, you must call setPath with the path.
44 * @param path The path that will be measured by this object
45 * @param forceClosed If true, then the path will be considered as "closed"
48 public PathMeasure(Path path, boolean forceClosed) {
49 // note: the native side makes a copy of path, so we don't need a java
51 native_instance = native_create(path != null ? path.ni() : 0,
56 * Assign a new path, or null to have none.
58 public void setPath(Path path, boolean forceClosed) {
59 // note: the native side makes a copy of path, so we don't need a java
62 path != null ? path.ni() : 0,
67 * Return the total length of the current contour, or 0 if no path is
76 * corresponding position and tangent. Returns false if there is no path,
77 * or a zero-length path was specified, in which case position and tangent
83 * @return false if there was no path associated with this measure object
98 * corresponding matrix. Returns false if there is no path, or a zero-length
99 * path was specified, in which case matrix is unchanged.
101 * @param distance The distance along the associated path
117 public boolean getSegment(float startD, float stopD, Path dst, boolean startWithMoveTo) {
129 * Move to the next contour in the path. Return true if one exists, or
130 * false if we're done with the path.