You need to make the correct calculation to build a Bezier curve. The curve should not fall on the components, but should bend around them. In the screenshot - as needed. Well, plus the algorithm that is being built.

enter image description here

Path2D.Float path = new Path2D.Float(); List<Point2D.Float> points = заполняю лист точками; for (int i = 3; i < points.size(); i += 3) { path.curveTo(points.get(i - 2).x, points.get(i - 2).y, points.get(i - 1).x, points.get(i - 1).y, points.get(i).x, points.get(i).y); } 
  • Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. - Kromster
  • What actually fails to do something? Or do you want to be done for you? - Klimenkomud
  • It seems to me to bend around the components, at least you need to know the coordinates of their borders - iksuy

0