So, there are two things that JUNG visualization doesn't always scale very well right now:
- iterative power layouts
- : figuring out which node or edge (if any) refers to hover and click events.
It looks like you're working now.
Depending on your requirements, you have several options:
- (a) disable mouse events or at least hover events
- (b) hack into the visualization system so that the target search for the event is not O (m + n).
Simple solutions for (b) basically just split the viewport into small pieces and send events only to those elements that are in the same fragment as the pointer. (Obviously, the less pieces you make, the more memory is required.)
We had plans to do (b) (and the design sketched) for a while, but they worked on other things. Anyone who wants to help with a more permanent solution, please contact me.
source share