开发者

JGraph - overriding cell drag

开发者 https://www.devze.com 2022-12-22 15:23 出处:网络
This is quite a long shot, I know it\'s a question about a very specific package. I\'m trying to stop nodes from dragging into a certain area of the graph.

This is quite a long shot, I know it's a question about a very specific package.

I'm trying to stop nodes from dragging into a certain area of the graph.

I have written code to detect when the mouse is dragged ov开发者_运维百科er a node, however it is a bit of a hack. I am trying to get the node that the mouse is dragging and its XY co-ordinates but have no idea how to do it.

I can't find any methods to override this, the marquee handler doesn't get called for a node drag. I'm looking at overriding the BasicUI class, but don't know


You would be better off posting at the JGraph forum.

0

精彩评论

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

关注公众号