Darrell Norton's Blog [MVP]

Sponsors

The Lounge

News

  • Darrell Norton pic

    MVP logo

    View Darrell Norton's profile on LinkedIn

    Currently Reading:

    weewar.com

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Open source tree diagramming control for .NET

Francois has released Lithium, a tree diagramming control for .NET.

Features:

  • Automatic layout of the tree both horizontally and vertically.
  • The standard add/delete/edit mouse actions.
  • Various types of connections; the traditional rectangular connections, the default straight line, Bezier connections (popular in mind-mapping applications).
  • Flexible import/export of XML data using .Net's XmlSerializer class.
  • Depth First Traversal (DFT) and Breadth First Traversal (BFT) of the tree.
  • The visitor pattern allows you to traverse the graph and perform actions (see the colouring example or the XML export example).
  • Expand/collapse branches (sub-branches persisting in their state).
  • Various hotkeys to easily edit the diagram.
  • Easy to understand and, hence, easy to extend or modify architecture.
  • 'seek new parent' on moving shapes or branches, i.e. on moving a sub-branch you get visual feedback about a possible new parent. If no parent is found the sub-branch will be connected back to its previous parent.
  • Editing of properties via the property grid.
  • Various examples are given on how to use the visitor interface.
  • Random graph generation, random node addition.
  • Lots of comments in the code which, in addition to this article, should make it easy to adapt the control in your own applications.

The requisite screenshot:

[via Howard van Rooijen]


Posted 04-07-2005 7:46 AM by Darrell Norton
Filed under:

[Advertisement]

Comments

shebert wrote re: Open source tree diagramming control for .NET
on 04-07-2005 8:22 AM
Great find, Darrell. I wonder if anyone is using this in ASP.NET yet?
Darrell Norton wrote re: Open source tree diagramming control for .NET
on 04-08-2005 7:25 AM
When I need to do so, I'll definitely start with this.
Tim Haines wrote Cool Tools
on 05-04-2005 3:25 PM