Book a Demo

Author Topic: Shape script kills edge notation rendering  (Read 3327 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Shape script kills edge notation rendering
« on: September 02, 2008, 12:12:11 am »
I've reported a bug that using a shape script destroys any alternate notation (for example: Information Engineering or IDEF1X) rendering for edges.

In thinking about possible solutions to this problem, it seemed to me that part of the problem is that there is no way to say to EA - please draw the native shape.

Hang on!  There's a drawing method: drawnativeshape(); but as the documetnation says: it's not supported for edge scripts.

I think that if it was implemented for edges, it could solve a number of problems.  In particular, drawnativeshape() in the end shapes (source or target) could draw the appropriate glyphs.

It seems to me this could seriously extend the utility of shape scripts.

What do others think?

Paolo
« Last Edit: September 02, 2008, 12:12:34 am by PaoloFCantoni »
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: Shape script kills edge notation rendering
« Reply #1 on: September 02, 2008, 01:25:44 am »
Paolo,

AFAICS DrawingNativeShape has two limitations that might be problems here (or elsewhere, as they were for me).

First, the shape is always that of the 'underlying' classifier, before stereotypes are considered.

Second, once the default rendering engine takes over the shape script has no control over options like text, or what is shown.

Rereading my "first" problem above, this might be an issue for you regardless. It only seems to work with classifiers. [In my experience; I'd love to be proven wrong here.]

David
No, you can't have it!