Book a Demo

Author Topic: New Edge type: "Custom"  (Read 5235 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
New Edge type: "Custom"
« on: September 04, 2007, 09:36:02 pm »
Elsewhere (such as: [size=13]New Edge type: AssociationEnd[/size])  I suggest that EA specifically support the edge type of AssociationEnd.

One of the reasons this was suggested (as mentioned in the above post) is the we users don't have sufficient control over rendering of Edges to be able to change it to suit our particular needs.  Part of this stems from the UML requirement to specifically render certain types of relationships in certain normative manners.  However, EA is more than a UML modelling tool.

It seems to me that there is the need for a "Custom" edge type that allows access to the full spectrum of rendering possibilities - end shape, line type, etc from which the user could create any combination of features.  For example, a dotted line with a generalization shape at one end, and a composite (filled) diamond at the other.

Thoughts? Votes?
Paolo
[size=0]©2007 Paolo Cantoni, -Semantica-[/size]
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: New Edge type: "Custom"
« Reply #1 on: September 05, 2007, 04:31:43 am »
Initially, ...
EEEEEEEEEEEEEEAAAAAAAAAAAAAAARRRRRRRRRGGGGGGGGHHHHHHHHHH!!!!!!
(refer to search +999 days re my thoughts on colored shirts)

...

on reflection, this is exactly what I was always talking about "edges are people too".

So, yes add my vote.

bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: New Edge type: "Custom"
« Reply #2 on: September 05, 2007, 10:06:18 am »
And mine.

See also my comments in the cited post.

David
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: New Edge type: "Custom"
« Reply #3 on: September 05, 2007, 01:23:28 pm »
Quote
It seems to me that there is the need for a "Custom" edge type that allows access to the full spectrum of rendering possibilities - end shape, line type, etc from which the user could create any combination of features.  For example, a dotted line with a generalization shape at one end, and a composite (filled) diamond at the other.

If that's really what you want, try out this shape script.
Code: [Select]
shape main
{
   noshadow = true;
   // hide the stereotype used to draw this shapescript
   HideLabel("middlebottom");
   setlinestyle("DASH");
   lineto(100,0);
}

shape source
{
   // composition diamond
   noshadow = true;
   setfillcolor(getUserBorderColor());
   startpath();
   moveto(0,0);
   lineto(8,-4);
   lineto(16,0);
   lineto(8,4);
   lineto(0,0);
   endpath();
   fillandstrokepath();
}

shape target
{
   // generalisation arrow
   noshadow = true;
   startpath();
   moveto(0,0);
   lineto(10,-5);
   lineto(10,5);
   lineto(0,0);
   endpath();
   fillandstrokepath();
}

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: New Edge type: "Custom"
« Reply #4 on: September 05, 2007, 07:01:16 pm »
Thanks Simon!

This hits the spot!

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: New Edge type: "Custom"
« Reply #5 on: September 06, 2007, 06:17:11 am »
Sweet!
No, you can't have it!