开发者

Changing interactive mode Edge Shape in JUNG

开发者 https://www.devze.com 2023-04-01 17:02 出处:网络
I am aware of the ability using an EdgeShapeTransformer to change the look of edges: vv.getRenderContext().setEdgeShapeTransformer(new EdgeShape.L开发者_运维百科ine()); // for example

I am aware of the ability using an EdgeShapeTransformer to change the look of edges:

vv.getRenderContext().setEdgeShapeTransformer(new EdgeShape.L开发者_运维百科ine()); // for example

However I am looking for how to change the way the line looks while dragging from one node to another to create an edge interactively. By default the 'hovering' edge which is not yet linked to another node is a large curved line. See the example here for what I mean.


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.)

0

精彩评论

暂无评论...
验证码 换一张
取 消