Diagram Auto-Layouting [1], basically the "connections" act like springs and the "objects" act like repulsive charges. A simulation is ran and as the system approaches an equilibrium state, the diagram starts "looking good" and well "layouted".
[1] http://en.wikipedia.org/wiki/Force_based_layout PS: Using the algorithms used by "dot" (graphviz) is not really an option for me, it is my bachelor thesis so the tasks are pretty specific. On Wed, Jul 9, 2008 at 8:54 PM, Lars Clausen <[EMAIL PROTECTED]> wrote: > > On Jul 9, 2008, at 8:47 PM, Fred Morcos wrote: > >> So basically I am stuck with string comparison of all shapes that were >> ever created, currently existing and ever to come? >> >> On Wed, Jul 9, 2008 at 8:34 PM, Lars Clausen <[EMAIL PROTECTED]> wrote: >>> >>> On Jul 9, 2008, at 7:50 PM, Fred Morcos wrote: >>> >>>> Is it possible to get the type of an object without using a returned >>>> string (object_get_type)? I want to loop over all the selected objects >>>> and count the number of "connection objects" and the number of "other >>>> normal objects" without having to go through this: >>>> >>>> (pseudo code) >>>> if (objtype == "Standard - Line" || "UML - Generalization" || "UML - >>>> Dependency" || etc...) >>> >>> Many of the "connection objects" and "normal objects" inherit from a few >>> top >>> classes - Line, Arc, Polyline resp. Element. >>> However, not all do, and some few objects have aspects of both types >>> (Lifeline, for instance). > > Maybe. What are you trying to accomplish? > > -Lars > _______________________________________________ > Dia-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/dia-list > FAQ at http://live.gnome.org/Dia/Faq > Main page at http://live.gnome.org/Dia > > -- Fred Morcos http://fredmorcos.blogspot.com/ http://fredmorcos.googlecode.com/ _______________________________________________ Dia-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia
