Draw Circles and Curves which connect those circles

倖福魔咒の 提交于 2019-12-02 14:32:52

问题


I've a requirement to draw a few Circles and Curves connecting those circles. The circles have to be drawn in rows and columns fashion, so I guess using a GridPane would be a good choice. However, once all the circles have been drawn, how do I add curves to connect circles belonging to different columns on this GridPane?

I cannot use GridPane.add(node, row, column) for curves cuz that would add the curves to GridCells, neither does GridPane have .getchildren.add() method.

Is there a better design to this problem? Should I chose a different Pane that can help me plot circles in rows and columns along with the curves connecting them?

来源:https://stackoverflow.com/questions/43239975/draw-circles-and-curves-which-connect-those-circles

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!