Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Improve the rendering of a JUNG graph

Tags:

java

jung

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

like image 723
main2010 Avatar asked Apr 29 '10 10:04

main2010


1 Answers

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

like image 68
Dimitar Ivanov Avatar answered Oct 27 '22 07:10

Dimitar Ivanov