@Override @Pure public Node drawShape(MapMultiPoint element, RectangularShape2afp<?, ?, ?, ?, ?, ?> bounds) { final Path[] paths = createPaths(element, bounds); final Path path1 = paths[0]; final Color color = GisFxTools.rgb(element.getColor()); path1.setFill(color); path1.setStroke(color); if (paths.length > 1) { final Path path2 = paths[1]; path2.setFill(null); path2.setStroke(color); final Group shape = new Group(); shape.getChildren().add(path1); shape.getChildren().add(path2); return shape; } return path1; }
@Override @Pure public Node drawShape(MapPoint element, RectangularShape2afp<?, ?, ?, ?, ?, ?> bounds) { final Path[] paths = createPaths(element, bounds); final Path path1 = paths[0]; final Color color = GisFxTools.rgb(element.getColor()); path1.setFill(color); path1.setStroke(color); if (paths.length > 1) { final Path path2 = paths[1]; path2.setFill(null); path2.setStroke(color); final Group shape = new Group(); shape.getChildren().add(path1); shape.getChildren().add(path2); return shape; } return path1; }
@Override @Pure public Node drawShape(MapPolygon element, RectangularShape2afp<?, ?, ?, ?, ?, ?> bounds) { final Path fxPath = createPath(element, bounds); final Color color = GisFxTools.rgb(element.getColor()); fxPath.setFill(color); fxPath.setStroke(color); return fxPath; }
path2.setFill(Color.RED); path2.setStroke(Color.RED); path2.setStrokeWidth(1);
@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; }
path.getElements().add(e7); path.setFill(Color.BLACK);
(backgroundShape, tuple) -> { backgroundShape.setStrokeWidth(0); backgroundShape.setFill(tuple._1); backgroundShape.getElements().setAll(getRangeShape(tuple._2)); },
path.setFill(Color.GRAY); path.setStroke(Color.TRANSPARENT); root.getChildren().add(path);
clip.setFill(YELLOW);