From: Illumineo <Net...@ho...> - 2004-09-28 05:17:11
|
Martin, It's only now that I see your mail of the 26th, sorry for this late reply. My mother is dying of cancer and it absorbs me now and then. The user-defined-connections (UDC): the only thing I have in my hands not is the stuff you can find in v1b and which you have been modelling since then (I guess). So, no there is not anything ready. I have to ask though how you see these UDC's because in v2 there are two types of connections: standard and rectangular, both with all the other connection attributes (arrow, colors...). Is this a UDC? I guess you see a UDC as an inherited connections class but in this case I understand that this is part of a Visio-like idea, which I'm not frantic about as you know. This is 'cause it does not support any data flow, a freely moving UDC does not enforce connector-based connections. The easiest way to implement a freely moving UDC is by using the Shape class which would give a thing that 'looks' like a connection but is really just a shape and, hence, not forced to belong to any connectors. For the other two items: I think I can implement shape-dependent context-menus is a snap, as well as the delegates for user-defined actions on the Entity level. I like the 'family' idea of layout algorithms. It is something I already tried if you look at older downloads (circular algorithm, and an algorithm I found in DrDobb's). Unfortunately they gave hyperbolic results. The easy way is to look at the Java libraries out there, many many good graph libs in Java. In that respect, we still have to go catch a lot of stuff Java developers already did. Best regards, Francois |
From: Martin C. <mar...@ei...> - 2004-10-12 16:39:57
Attachments:
smime.p7s
|
Hi Francois, I've implemented the user defined connection for the GraphControl. I've checked the code into CVS. There is a new function CreateTypedConnection which does all the necessary work. This is called when the user drags a Connection. To get the GraphControl to use a different Connection insert the following code: graphControl1.ConnectionAssembly = "MyAssembly"; graphControl1.ConnectionType = "MyConnection"; Replace "MyAssembly" with the name of the shape library containing the connection. Set "MyConnection" to the name of the Connection class. All comments welcome! Regards, Martin |
From: Martin C. <mar...@ei...> - 2004-09-28 09:44:49
Attachments:
smime.p7s
|
Hi Francois, Sorry to hear about your mother, I lost my Grandmother to cancer a few years ago, I know how hard it can be. Maybe user defined connections is the wrong term. I don't want to let the user drag and drop there own connections but rather I would like to be able to tell the GraphControl to use a Connection that I have defined, in place of the standard one. For example I have used a spline curve connection in the past. I also want to add additional properties to the connection for the project that I'm working on. These kinds of things would apply to anyone trying to build an application on top of Netron. A developer of a UML app, would need additional properties for the multiplicity. When can I have the shape dependant context menus and user defined actions? :-) I too have looked at the Java libraries for guidance, there is a lot of good stuff implemented here. When I get time I think I'll try porting some of these. Regards, Martin Illumineo wrote: > > Martin, > > It's only now that I see your mail of the 26th, sorry for this late reply. > My mother is dying of cancer and it absorbs me now and then. > > The user-defined-connections (UDC): the only thing I have in my hands not is > the stuff you can find in v1b and which you have been modelling since then > (I guess). So, no there is not anything ready. I have to ask though how you > see these UDC's because in v2 there are two types of connections: standard > and rectangular, both with all the other connection attributes (arrow, > colors...). Is this a UDC? I guess you see a UDC as an inherited connections > class but in this case I understand that this is part of a Visio-like idea, > which I'm not frantic about as you know. This is 'cause it does not support > any data flow, a freely moving UDC does not enforce connector-based > connections. The easiest way to implement a freely moving UDC is by using > the Shape class which would give a thing that 'looks' like a connection but > is really just a shape and, hence, not forced to belong to any connectors. > > For the other two items: I think I can implement shape-dependent > context-menus is a snap, as well as the delegates for user-defined actions > on the Entity level. > > I like the 'family' idea of layout algorithms. It is something I already > tried if you look at older downloads (circular algorithm, and an algorithm I > found in DrDobb's). Unfortunately they gave hyperbolic results. The easy way > is to look at the Java libraries out there, many many good graph libs in > Java. In that respect, we still have to go catch a lot of stuff Java > developers already did. > > Best regards, Francois > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Netron-graphlib mailing list > Net...@li... > https://lists.sourceforge.net/lists/listinfo/netron-graphlib > > |