Menu

#2 Layout, Tunkelang

open
nobody
None
5
2006-12-06
2006-12-06
Jim
No

Now have 2 layout options
Tunkelang
And Minimize Connection Lengths (Note: Just rearranges which connector the connection is hooked up to, NOT the shapes)

Buncha changes, including:
Connections now have a collection, within the model
Connection now has links to the key shapes

Layout:
VERY primitive, though open source code I found online. RUDE conversion from Java, I got it to do what I needed (For a graph with each shape connected)
Code commented out for "Other" graph options

Really a progress preserve, apparently there are books devoted to "Layout" algorithms, and I didn't go buy one

I don't really understand the algorithm, just copied it, and got to do what I needed

Key advantages of current code:
Connection objects now have a collection (roughly equal to the Edges collection in other libraries)
Shape objects now have an usable collection (roughly equal to the Nodes collection in other libraries)

SOME kind of layout is now available, and more can certainly be added in

Note layout is kinda random, if you don't like the picture the first time, push the button again, and see if you like it better

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.