Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public final class PathData
- Object
- PathData
Parses SVG path data (the d attribute) into a GeneralPath.
Supports every command of SVG 1.1 in absolute and relative form, implicit repeats,
and elliptical arcs, which are converted to cubic curves. Figma’s fillGeometry uses the
same syntax. Malformed data ends the path at the last complete command, as browsers do,
rather than throwing.
Methods
public static GeneralPath parse(String d) | Parses path data. |
Inherited methods
Method details
parse
public static GeneralPath parse(String d)Parses path data.
Parameters
dString- the path data
Returns
the path; empty when
d is null or has no valid command