return fxPath.toString();
}
public static String convertRectangle(final Rectangle RECTANGLE) {
final StringBuilder fxPath = new StringBuilder();
final Bounds bounds = RECTANGLE.getBoundsInLocal();
if (Double.compare(RECTANGLE.getArcWidth(), 0.0) == 0 && Double.compare(RECTANGLE.getArcHeight(), 0.0) == 0) {
fxPath.append("M ").append(bounds.getMinX()).append(" ").append(bounds.getMinY()).append(" ")
.append("H ").append(bounds.getMaxX()).append(" ")
.append("V ").append(bounds.getMaxY()).append(" ")
.append("H ").append(bounds.getMinX()).append(" ")
.append("V ").append(bounds.getMinY()).append(" ")
.append("Z");
} else {
double x = bounds.getMinX();
double y = bounds.getMinY();
double width = bounds.getWidth();
double height = bounds.getHeight();
double arcWidth = RECTANGLE.getArcWidth();
double arcHeight = RECTANGLE.getArcHeight();
double r = x + width;
double b = y + height;
fxPath.append("M ").append(x + arcWidth).append(" ").append(y).append(" ")