改进JUNG图的渲染 [英] Improve the rendering of a JUNG graph

查看:135
本文介绍了改进JUNG图的渲染的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jung直观地显示大型数据集(1000个节点)但是当我放大或缩小或移动节点时系统变得非常迟缓。有没有改进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 ?

推荐答案

我用来改善图形渲染的方法是过滤图的边缘。每次尝试移动图形时,框架都会进行大量计算以重新定位每个顶点和边缘,这会导致性能不佳。
可以通过将AbstractPopupGraphMousePlugin succesor添加到您正在使用的DefaultModalGraphMouse对象来完成过滤。只需覆盖handlePopup(MouseEvent mouseEvent)。

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

这篇关于改进JUNG图的渲染的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆