Forums

Full Version: graph view with overview panel
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The GraphView demo from the prefuse downloads already contains the implementation of a graph overview panel, but it is not active because it is commented out.

So for the case you missed this hidden treasure, I thought to post the graphview demo here with this treasure revealed.

The main step to realize the overview panel is as simple as:
Code:
Display overview = new Display(m_vis);
overview.setSize(290,290);
overview.addItemBoundsListener(new FitOverviewListener());
where the in the GraphView demo implemented FitOverViewListener class takes care that the graph is always displayed as a whole in the panel.

Further required steps are just to include the overview into the GUI.

[attachment=99]

You might want to use this demo to get more clear about the design of the prefuse toolkit, which is based upon the information visualization reference model (prefuse toolkit structure). In particular this demo might help you to understand which functionality acts on the level of the visualization and by that effects both displays (like neighborhood highlight control). Other functions like dragging nodes act on the level of the display and by that can differ between the two display panels (no dragging in the overview panel for example).

Guest

I would really appreciate if someone who allready implemented the typical rectangle on the overview, depicting the part of the graph shown in the detailed view together with an interaction, that a drag and drop of the rectangle moves the viewport of the detailed view, could post the necessary additional code lines.
Hello Guest,

hope you are happy. For your own benefit, I would recommend to post questions in the prefuse sourceforge forum rather than in this forum, maybe including a link to the demo in pap your question is related to. There are more people around and also we want to keep things together as much as possible as mentioned in the pap introduction above.

cheers

martin
Reference URL's