- java.lang.Object
-
- com.github.weisj.jsvg.util.PathUtil
-
public final class PathUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static @Nullable java.lang.invoke.MethodHandle
trimPathHandle
-
Constructor Summary
Constructors Modifier Constructor Description private
PathUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static @Nullable java.lang.invoke.MethodHandle
lookupTrimPathMethod()
static @NotNull SVGShape
parseFromPathData(@NotNull java.lang.String data, FillRule fillRule)
static @NotNull java.awt.geom.Path2D
setPolyLine(@Nullable java.awt.geom.Path2D path, float @NotNull [] points, boolean closed)
static void
trimPathToSize(@NotNull java.awt.geom.Path2D path)
-
-
-
Method Detail
-
lookupTrimPathMethod
@Nullable private static @Nullable java.lang.invoke.MethodHandle lookupTrimPathMethod()
-
parseFromPathData
@NotNull public static @NotNull SVGShape parseFromPathData(@NotNull @NotNull java.lang.String data, FillRule fillRule)
-
setPolyLine
@NotNull public static @NotNull java.awt.geom.Path2D setPolyLine(@Nullable @Nullable java.awt.geom.Path2D path, float @NotNull [] points, boolean closed)
-
trimPathToSize
public static void trimPathToSize(@NotNull @NotNull java.awt.geom.Path2D path)
-
-