NOTE: Missing library added.
This is a demo of a simple diagram editor i've made some time ago. It's only the first part of the diagram editor, but it is very easy to extend and implement new features. It's made in OOP.
For more information please visit:
http://wolfbit.com/blog/2010/06/yuu-diagram-editor-wannabe/
Hope it's useful for you.