I have a requirement to plot a few Nodes (Circles) and connect them with a link (Cubic Curve) based on some logic (somewhat like in the image link below)
I've a GridPane with circles drawn in 2 columns (doesn't matter for how many rows). The GridPane is then added to an AnchorPane. I've been able to do this part.
Now, I want to connect the circles present in the same row with a cubic curve. The curve should start and end on the circle boundaries (not center, as shown in the image below). However, I'm not able to get the curve start and end at the circle boundaries. I'm using Circle.getlayoutX, Circle.getlayoutY for generating the start and end points of the cubic curve. I guess this is where I'm wrong.
Please note that there is no requirement for dragging the nodes around on the pane, I only need to draw them. Thanks!