Forums

Full Version: ExpandOnMouseOverControl
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This small demonstration for the TreeView demo was made to show how to expand nodes.
It is part of a reply to the sourceforge thread:
https://sourceforge.net/forum/forum.php?..._id=343013

It is only necessary to manipulate the group Visualization.FOCUS_ITEMS or any other group the <i>FisheyeTreeFilter</i> is configured to work on.

To expand a node on MouseOver you need to press the "shift" key.
Since this is only a short demo there is no function that minimizes nodes again and if your tree moves fast let go of the shift key since several MouseOver events might be reported, resulting in some realy wired flickering and panic-like focussing by prefuse.

You can add it like every other control listener:
Code:
addControlListener(new ExpandOnMouseOverControl("filter"));

[attachment=317]

Greetings,
Marcus
This version only reacts on nodes.
Since TreeView demo hasn“t set edges to non-interactive this caused a strange behavior.

[attachment=318]

Guest

Works perfectly! Thanks for sharing!
Reference URL's