0

我知道使用 EdgeShapeTransformer 改变边缘外观的能力:

vv.getRenderContext().setEdgeShapeTransformer(new EdgeShape.Line()); // for example

但是,我正在寻找如何在从一个节点拖动到另一个节点以交互创建边缘时更改线条的外观。默认情况下,尚未链接到另一个节点的“悬停”边缘是一条大曲线。请参阅此处的示例了解我的意思。

4

1 回答 1

1

CubicCurveEdgeEffects is where it is done. There is an EdgeEffects interface that can be implemented to do other things instead. It is used by the SimpleEdgeSupport class via the EditingGraphMousePlugin. (Credit to Tom Nelson, offline communication.)

于 2011-09-01T22:08:41.867 回答