public class PathParser
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PathParser.PathDataNode
Each PathDataNode represents one command in the "d" attribute of the svg
file.
|
| Constructor and Description |
|---|
PathParser() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canMorph(PathParser.PathDataNode[] nodesFrom,
PathParser.PathDataNode[] nodesTo) |
static PathParser.PathDataNode[] |
createNodesFromPathData(java.lang.String pathData) |
static android.graphics.Path |
createPathFromPathData(java.lang.String pathData) |
static PathParser.PathDataNode[] |
deepCopyNodes(PathParser.PathDataNode[] source) |
static void |
updateNodes(PathParser.PathDataNode[] target,
PathParser.PathDataNode[] source)
Update the target's data to match the source.
|
public static android.graphics.Path createPathFromPathData(java.lang.String pathData)
pathData - The string representing a path, the same as "d" string in svg file.public static PathParser.PathDataNode[] createNodesFromPathData(java.lang.String pathData)
pathData - The string representing a path, the same as "d" string in svg file.public static PathParser.PathDataNode[] deepCopyNodes(PathParser.PathDataNode[] source)
source - The array of PathDataNode to be duplicated.source.public static boolean canMorph(PathParser.PathDataNode[] nodesFrom, PathParser.PathDataNode[] nodesTo)
nodesFrom - The source path represented in an array of PathDataNodenodesTo - The target path represented in an array of PathDataNodenodesFrom can morph into nodesTopublic static void updateNodes(PathParser.PathDataNode[] target, PathParser.PathDataNode[] source)
target - The target path represented in an array of PathDataNodesource - The source path represented in an array of PathDataNode