Forums

Full Version: sub tree view - frogeyefilter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This demo - a modification of the beautiful TreeView demo from the prefuse library - displays a subtree of the underlying tree within a limited distance from the clicked node.

The original TreeView uses the FisheyeTreeFilter in order to determine the group of visible items. This filter always shows all parents of the clicked node up to the tree root.

In this demo, we use the brand new FrogeyeTreeFilter, which acts like the GraphDistanceFilter from the prefuse library with the difference that nodes which are at maximal distance from the clicked node are always child nodes within the group of the visible nodes.

In this demo the frog distance is set to 2, which has the effect that
  • the parent node of the clicked node is visible
  • the siblings of the clicked node are visible
  • the children and grand children of the clicked node are visible

The FrogeyeTreefilter is a byproduct of my experiments with distance filters for directed graphs. Since this particular application might be interesting for some prefusians I thought to post it. The underlying GraphDistanceDirectedSpheresFilter is not yet fully tested but seems to work fine if used as in this demo by the FrogeyeTreeFilter.

be well
Reference URL's