public class SVGPathParser
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SVGPathParser.MarkerType
Enum representing the types of SVG path markers.
|
Constructor and Description |
---|
SVGPathParser() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContent()
Gets the content string after the length has been resolved and the viewport has been taken into account.
|
java.util.List<javafx.geometry.Point2D> |
getMarkerList()
Return the list of markers.
|
java.util.List<javafx.geometry.Point2D> |
getMarkerList(SVGPathParser.MarkerType type)
Returns the coordinates for the specified marker type. - START: First MoveTo point - MID: All intermediate vertices (endpoints of segments) -
END: Last point of the path
|
void |
parse(java.lang.String content,
Viewport viewport)
Updates the internal Path and calculates marker coordinates from the SVG path data.
|
java.util.List<javafx.scene.shape.SVGPath> |
parsePathContent(java.lang.String content,
Viewport viewport)
Parse a path content.
|
public java.util.List<javafx.scene.shape.SVGPath> parsePathContent(java.lang.String content, Viewport viewport)
content
- the path contentviewport
- the viewportpublic java.lang.String getContent()
public java.util.List<javafx.geometry.Point2D> getMarkerList()
public java.util.List<javafx.geometry.Point2D> getMarkerList(SVGPathParser.MarkerType type)
type
- The MarkerType to retrieve coordinates forpublic void parse(java.lang.String content, Viewport viewport)
content
- the path contentviewport
- the viewportCopyright © 2021, 2022, 2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence