Skip to content

Commit

Permalink
Refactor API in class FXSvgPaths.
Browse files Browse the repository at this point in the history
  • Loading branch information
Werner Randelshofer committed Apr 2, 2024
1 parent 3bf0ccb commit 8c92a38
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ private FXSvgPaths() {

}

public static @NonNull String pathElementsToDoubleSvgString(@NonNull List<PathElement> elements) {
public static @NonNull String pathElementsToDoubleSvgString(@NonNull Iterable<PathElement> elements) {
NumberConverter nb = new NumberConverter();
return pathElementsToSvgString(elements, nb);
}

public static @NonNull String pathElementsToFloatSvgString(@NonNull List<PathElement> elements) {
public static @NonNull String pathElementsToFloatSvgString(@NonNull Iterable<PathElement> elements) {
NumberConverter nb = new NumberConverter(Float.class);
return pathElementsToSvgString(elements, nb);
}

public static @NonNull String pathElementsToSvgString(@NonNull List<PathElement> elements, NumberConverter nb) {
public static @NonNull String pathElementsToSvgString(@NonNull Iterable<PathElement> elements, NumberConverter nb) {
StringBuilder buf = new StringBuilder();
char next = 'Z'; // next instruction
double x = 0, y = 0;// current point
Expand Down

0 comments on commit 8c92a38

Please sign in to comment.