@Override @Pure public Node drawShape(MapPolyline element, RectangularShape2afp<?, ?, ?, ?, ?, ?> bounds) { final Path fxPath = createPath(element, bounds); final Color color = GisFxTools.rgb(element.getColor()); fxPath.setFill(null); fxPath.setStroke(color); if (element.isWidePolyline()) { fxPath.setStrokeWidth(element.getWidth()); } else { fxPath.setStrokeWidth(1); } fxPath.setStrokeLineCap(StrokeLineCap.ROUND); fxPath.setStrokeLineJoin(StrokeLineJoin.ROUND); return fxPath; }
underlineShape.setStroke(attributes.color); underlineShape.setStrokeWidth(attributes.width); underlineShape.setStrokeLineCap(attributes.cap); if (attributes.dashArray != null) { underlineShape.getStrokeDashArray().setAll(attributes.dashArray);