Tags

This example is my experiment using javafx.scene.shape.Circle in JavaFX.

Figures below uses 3 circles only to create a 3D Object and to change the visual view of the circles you have to set the StrokeLineCap of the circles, the end cap styles: StrokeLineCap.BUTT, StrokeLineCap.ROUND, and StrokeLineCap.SQUARE and you need to set the StrokeDashArray aswell by adding lengths of the dash segments.

I posted a few lines of code below:


circle.setStrokeLineCap(StrokeLineCap.BUTT)
circle.getStrokeDashArray().addAll(1.0, 13.0);
circle.setStrokeWidth(215);
circle.setRadius(100);


Advertisements