Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在荣格中使用圆形布局。单击按钮我可以创建一个新节点,但它与之前的节点重叠。新节点会在同一位置生成。请帮助我为新创建的节点动态分配位置
CircleLayout 是一个静态布局:如果向图中添加新顶点,则需要创建一个新的 CircleLayout 实例。
除此之外,我不知道您在创建顶点时如何为顶点分配位置,但这是您的代码,而不是我们的代码。:)