java.lang.Object
org.jhotdraw8.geom.FXSvgPaths
Provides methods for parsing and generating SVG path strings from JavaFX paths.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends PathBuilder<?>>
TbuildPathElements(T builder, Iterable<javafx.scene.shape.PathElement> pathElements) static StringpathElementsToDoubleSvgString(Iterable<javafx.scene.shape.PathElement> elements) static StringpathElementsToFloatSvgString(Iterable<javafx.scene.shape.PathElement> elements) static StringpathElementsToSvgString(Iterable<javafx.scene.shape.PathElement> elements, NumberConverter nb) static List<javafx.scene.shape.PathElement> This parser preserves more of the semantics thanSvgPaths.buildSvgString(PathBuilder, String), becausePathBuilderdoes not understand relative path commands and horizontal and vertical lineto commands.static List<javafx.scene.shape.PathElement> transformPathElements(List<javafx.scene.shape.PathElement> elements, javafx.scene.shape.FillRule fillRule, javafx.scene.transform.Transform fxT)
-
Method Details
-
pathElementsToDoubleSvgString
-
pathElementsToFloatSvgString
-
pathElementsToSvgString
public static String pathElementsToSvgString(Iterable<javafx.scene.shape.PathElement> elements, NumberConverter nb) -
svgStringToPathElements
public static List<javafx.scene.shape.PathElement> svgStringToPathElements(String str) throws ParseException This parser preserves more of the semantics thanSvgPaths.buildSvgString(PathBuilder, String), becausePathBuilderdoes not understand relative path commands and horizontal and vertical lineto commands.- Throws:
ParseException
-
buildPathElements
public static <T extends PathBuilder<?>> T buildPathElements(T builder, Iterable<javafx.scene.shape.PathElement> pathElements) -
transformPathElements
-