开发者

Improve the rendering of a JUNG graph

i am using jung to visually display large data sets, (1000s of nodes) but the system becom开发者_StackOverflowes very laggy when I zoom in or out, or move a node. Is there anyway to improve the rendering of graphs in JUNG ?


The way that I used to improve rendering on graphs was to filter the edges of the graph. Every time you try to move the graph the framework do enormous calculations to reposition every vertex and edge and this causes bad performance. The filtering could be done with adding AbstractPopupGraphMousePlugin succesor to the DefaultModalGraphMouse object you are using. Simply override the handlePopup(MouseEvent mouseEvent).


I do not know specifically for graphs, but the usual options are

  1. Only process what is actually shown on screen (zoom in)

  2. Hide details when zooming out

  3. Only update part of the screen that have actually changed content (move a node)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜